Do you know the tool “XP Key” from the blue List Group? Well this tool generates Keys for Microsoft Windows XP, Visio and Office XP. As the Keys are generated in real-Time, not every Key is a valid one.. so you can enter “Num. of Searches” and “Max. Keys to find”. So far so good, the only drawback is, you can enter maximal 999 Keys to search:
![]()

But I want my Computer to search the whole night for Keys, so I tried to debug this Tool. I use Ollydbg (http://www.ollydbg.de/).. I started the debugger and loaded XPKey.exe. Obvious the number 999 is to search, so I searched for “all constants”:

Tataaa.. 2 times a Push 3E7 (=999 as decimal) before a “CALL” command means, this 999 is used as a parameter for a function, so lets change this 0x3E7 to 0x7EFF (=32511 as decimal). Press CTRL+E on the old function and update both. The result should look like this:

Now select the Menu point “Copy to executable” / “All modifications”, a new Window should appear. Close this Window and the debugger ask you to save this file. I think you should say yes here, so save it and run it.
Damn I still cannot enter the numbers directly to the text field bigger than 999, but with the Spin Control (up/down arrows) I can increase it. But this sucks.. as I don’t want to wait, until the numbers are up to 30000. Lets use Resource Hacker (http://www.angusj.com/resourcehacker/) and check out our new File..
Select the Spin Control and edit this control (CTRL + O).

You can see, the Style UDS_WRAP is not selected by default. What is UDS_Wrap?
“Causes the position to wrap if it is incremented or decremented beyond the end or beginning of the range.”
This should solve our Problem. Instead of entering a Big Value, enter 0, then decrease the Counter -> it will Wrap the counter to the biggest number.
So Select “Action” / “Update all Resources” and Save the new File.

Now my Computer has a lot to do..
