A friend of mine wrote a complete suite for War3 logins (cdkey and passwords). I'm glad somebody finally did it! :)
You can find information on how to use it, binaries, and source (released under GPL), here:
http://bncsutil.ionws.com/
Mirror: http://www.zeroforce.net -> downloads -> Needed Files