hi all, can someone tellme how to multiply  EAX by mybuffer?

for two numbers i make
MOV eax,[2*2]
IMUL eax,ecx
and then i have to mutiply eax again with a value stored in mybuffer...
Posted on 2007-08-30 04:33:49 by 5k3l3t0r

mov ecx, dword ptr
mul ecx

mul multiplies eax with whatever you use with it.
Posted on 2007-08-30 06:47:17 by JimmyClif
ok, tk you vry much...
Posted on 2007-08-30 08:18:28 by 5k3l3t0r

mul dword ptr    ; unsigned multiply
imul dword ptr   ; signed multiply
Posted on 2007-08-30 16:28:28 by dsouza123
Or, if you are using MASM syntax AND you have declared the mybuffer variable as a dword,
mul mybuffer

Posted on 2007-08-30 22:09:55 by Raymond
I guess "mybuffer" would be a string coming from the user, either on commandline or from some EDIT control? If that's the case, you need to conver this ASCII string to a machine integer before you can use it for arithmetic.

The easy way, if getting from an EDIT control, is GetDlgItemInt.
Posted on 2007-08-31 05:06:34 by f0dder
hi f0dder... you understand my prob... convert ASCII to integer...
in my other post in the forum i ask how to get the character from one string
and i have this reply:

mov al, ; 3 = 4 - 1
mov ,al

mybuffer receive the value in a getsystemtime parameter (wyear)

mybuffer=current year, but i just want the last character (year=2007 and i need 7)
mov al,
mov ,al...

ok, i will try to explin better... sory but my english is not very good...

this is to make a kgen for an old keygenme (abexcrackme4) the algo is the first number of the year (2) the hour (09) the last number of the year (7) and then multiply the hour by 5 (09*5) and then multiply the result by the last number of the year ( (09*5)*7) and you have the correct serial= at this hour the correct serial is 2097315,
the only thing i need to finish the kgen(it's my first,  is this calculation: eax*the result in mybuffer2...grrrrrrrrr.

i have to pass the last number of the year, to mybuffer2 as an integer but how to???
please helpme to finish this...

bye ;( ,sorry if i'm borrow you with mi simple questions...

Posted on 2007-09-05 06:21:26 by 5k3l3t0r