I'll have a look trough this, the use of DecToHex might prove usefull.

Also if you want a good tool that changes any xp license key use this: KeyFinder 1.5b3
Or goto the site for more info: http://www.magicaljellybean.com