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 


[Suggestion]Assembly code scanner, for AutoAssembler

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sat Jan 26, 2013 6:16 pm    Post subject: [Suggestion]Assembly code scanner, for AutoAssembler Reply with quote

I was wondering,
In Memory View you got that feature to find Assembly code,
Can't we use that in auto assembler?
Like
instead using AoBscan..
we could use
Code:

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
Assemblyscan(hack,{mov [code..],value
                   mov value,[code..]
                   mov value2,value
                   test value,value2
                   je Somewhere..})
newmem:
//mov [code..],value
nop
nop
nop
//mov value,[code..]
nop
nop
nop
//mov value2,value
nop
nop
nop
//test value,value2
nop
nop
//je Somewhere, don't jmp to far, so its size is 2 bytes :P.
nop
nop

originalcode:
//mov [code..],value
//mov value,[code..]
//mov value2,value
//test value,value2
//je Somewhere..

exit:
jmp returnhere

hack:
jmp newmem
returnhere:




_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Jan 26, 2013 8:37 pm    Post subject: Reply with quote

You know, that would be very inefficient.

There's nice article here:
http://www.strchr.com/machine_code_redundancy

Look at those
03C3 - add eax, ebx
01D8 - add eax, ebx

and those
83C0 01 - add eax,1
81C0 01000000 - add eax,1
05 01000000 - add eax,1

As you see, one code can have more than one opcode.

_________________
Back to top
View user's profile Send private message MSN Messenger
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sat Jan 26, 2013 11:23 pm    Post subject: Reply with quote

Oh I see now...
Well gotta stick with the aobscan :p

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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