Staredit Network > Forums > Technology & Computers > Topic: Logic defiance (ASM)
Logic defiance (ASM)
This topic is locked. You can no longer write replies here.
Jul 19 2009, 8:57 pm
By: Heinermann  

Jul 19 2009, 8:57 pm Heinermann Post #1

SDE, BWAPI owner, hacker.

The code:
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  


The description:
Code
esi is a string pointer
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.


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.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Roy