Log in

View Full Version : Here is the keygen code for Moving Picture


goatass
November 4th, 2000, 16:28
Hi everybody, it's been a couple weeks since we started this project and since then all of the people that participated managed to register the program. Here is the code for the keygen written in MASM.

.data
szDrive db "C:\",0
szBuffer dd 0
szCaption db "Moving Picture - KeyGen by Goatass"

.data?
szKey db 10 dup(?) ;an array of characters

.code
start:

;int 3 ;my personal break point for testing

invoke GetVolumeInformationA, addr szDrive, NULL, NULL, addr szBuffer, NULL, NULL, NULL, NULL
mov eax, dword ptr [szBuffer] ;saves the returned serial number of my C: drive
xor edx, edx ;all this code was taken out of the actual program
mov ecx, 5f5e100h
div ecx
mov eax, edx

cdq
mov ecx, 03h
idiv ecx
add eax, 1e35h

invoke dwtoa, eax, ADDR szKey ;converts the Hex value to decimal
invoke MessageBox,NULL,ADDR szKey, ADDR szCaption, MB_OK ;shows the serial number

This is it, very simple, I only showed the keygen code I didn't show any of the non-relevant code that goes along with an ASM program. If you want the full code e-mail me and I'll send it to you.

goatass

e-nigma
November 16th, 2000, 02:25
Hi!
While compiling this asm file, the compiler returned an error message;

invoke dwtoa, eax, ADDR szKey ;converts the Hex value to decimal

it didn't understand "dwtoa" is and neither do I?
I think you miss typed the word?

thanks
e-nigma

?ferret
November 16th, 2000, 22:02
dwtoa...DWord To Ascii (I believe)....Are you using MASM or TASM?

ThRaX
November 16th, 2000, 22:28
You gotta include the m32.inc, and m32.lib files I believe...They c ome with MASM32

e-nigma
November 17th, 2000, 10:32
after including masm32.inc and .lib file. It worked.
dwtoa is defined in the file.

thanks,
e-nigma

____________________
The One Who Ask Remains Fool For 5 Minutes,
The One Who Doesn't Ask Remain Fool Forever. - A Chinese Proverb