This Google search:

http://www.google.com/search?hl=en&l...22&btnG=Search

turned up Offline NT Password & Registry Editor:

http://home.eunet.no/~pnordahl/ntpasswd/

which is a Linux app and includes full source code.