Code
xor ecx, ecx
rnamLoop:
call getSeed
cmp al, 25
jg rnamLoop
add al, 0x61
mov [esi + ecx], al
inc cx
cmp cx, 3
jl rnamLoop
rnamLoop:
call getSeed
cmp al, 25
jg rnamLoop
add al, 0x61
mov [esi + ecx], al
inc cx
cmp cx, 3
jl rnamLoop
The description:
Code
esi is a string pointer
ecx is a counter
getSeed stores a random number in eax
ecx is a counter
getSeed stores a random number in eax
The problem:
Code
The string is not modified and the jump condition is always true with jl and jnz, and always false with jg and jz. (the last line)
The request:
Code
Help? lulz
Extra notes:
Code
The input is the same as the output ASM.
Have debugged the program.
Annoying.
Have debugged the program.
Annoying.
EDIT: fixed the loop problem. One of the kernel functions (GetTickCount) was modifying the ECX register. Problem remaining: the new value is not being written to the destination. (mov [esi + ecx], al).
EDIT2: Found the problem to the above. It is now fixd. Lock plz.
Post has been edited 2 time(s), last time on Jul 19 2009, 9:36 pm by Heinermann.