score_under
|
|
Posted on: January 25, 2009, 12:33:08 pm |
|
|
Joined: Aug 2008
Posts: 308
|
Since we all love it so much, (or am I the only one? ) you can either try figuring these out *without looking them up* or making your own: (All values in hex, executing on an x86-compatible processor.) 1. test eax,eax setne al and eax,1 2. cmp al,0A sbb al,69 das and eax,0ff 3. An extension of the last: mov ebx, stringvariable mov ecx, 0DEADF00D xor edx,edx push 8 loop1: cmp dword[esp],0 je endloop1 rol ecx,4 mov al, cl and al, 0F cmp al, 0A sbb al, 69 das mov byte [edx+ebx],al inc edx dec dword[esp] and ecx,0FFFFFFF0 jmp loop1 endloop1: mov byte [edx+ebx],0 add esp,4
4. Simple one for simple folk: xor eax,eax not eax xor ecx,ecx dec ecx xor eax,ecx ; It's like poetry: purposely long-winded but gets there in the end
|
|
« Last Edit: January 25, 2009, 12:36:09 pm by score_under »
|
Logged
|
|
|
|
|
|
|
|
score_under
|
|
Reply #5 Posted on: January 26, 2009, 04:50:00 pm |
|
|
Joined: Aug 2008
Posts: 308
|
That's the same, only in more bytes. (And without a ret ) So yeah. "return 1;".
|
|
|
Logged
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #7 Posted on: January 26, 2009, 09:44:35 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
How can you not love the beauty of my ASM?
cuz it's ugly :3
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #10 Posted on: January 27, 2009, 04:08:10 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Says who?
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
score_under
|
|
Reply #14 Posted on: January 28, 2009, 01:06:19 pm |
|
|
Joined: Aug 2008
Posts: 308
|
ASM is beautiful. It's how the processor works, and anything as awesome as a CPU is beautiful. And anti-decompiler patches are retarded. If you game gets decompiled, it won't matter because it'll be by nobody.
I know. The main concern for having games decompiled is that if a hacker completely unbalances an online game, people will no longer want to play it. Also, some people try to implement registration systems in their games, and it would be disastrous if someone cracked that. clr gm
EAX is currently: xor eax,eax EAX is currently:
|
|
|
Logged
|
|
|
|
|