Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ASM Obsfucation

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
azfk
Cheater
Reputation: 0

Joined: 26 May 2009
Posts: 37

PostPosted: Mon Sep 21, 2009 9:32 pm    Post subject: ASM Obsfucation Reply with quote

I'm trying some small assembly obsfucation somewhat like this:

Code:
jmp below
db e8
db 8A
db 7B
db 04
below:

push 0
...


Well, I thought that would work, so I tried pumping that out in assembly, but using masm32, it doesn't work, I want the disassembler to see something like this at first glance:

Code:


jmp blah.402839
call 40b7a8
push 0


Hmm..
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Mon Sep 21, 2009 10:14 pm    Post subject: Reply with quote

Don't know that much but I'm pretty sure there isn't a 4 byte CALL (E8), you gotta add that last 2 0's.

Should look like this:

DB E8
DB A8
DB B7
DB 40
DB 00

_________________
Back to top
View user's profile Send private message
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Wed Sep 23, 2009 7:47 am    Post subject: Reply with quote

lurc wrote:
Don't know that much but I'm pretty sure there isn't a 4 byte CALL (ECool, you gotta add that last 2 0's.

Should look like this:

DB E8
DB A8
DB B7
DB 40
DB 00

That's the idea. the last byte will be taken from the PUSH command (0x6A) and the next instruction will be ADD since the disassembler thinks that 0x00 is part of the next instruction.
Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Wed Sep 23, 2009 8:07 am    Post subject: Reply with quote

What error are you receiving?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Sep 23, 2009 12:31 pm    Post subject: Reply with quote

Not sure if I'm remembering this right, but can you not accomplish this by just mashing everything into the data section? It'll just come up as bytes when disassembled.

Pretty sure I've had this happen to me before
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Sep 23, 2009 1:14 pm    Post subject: Reply with quote

yes you can merge data + code section with masm's linker

also, i guess this is what you're trying to achieve :
Code:
include \masm32\include\masm32rt.inc

.code
    Start:

jmp @f
db 0e8h
db 8Ah
db 7Bh
db 04

  @@:

push 0

ret

end Start


the ret is placed there so olly doesn't mess up the analysis.







ignore the top messed up bit of the screenshots. i messed up in paint but i'm too lazy to reupload
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites