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 


having trouble understanding how auto assembly works

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Thu Aug 17, 2017 7:45 pm    Post subject: Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) { allocating 2kb inside that process for your code }
label(returnhere) { returnhere is used to return to where you jumped from }
label(originalcode) { original code just a copy of the original instruction }
label(exit) { exit will be used to redirect the working thread to returnhere }

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
{ every label under newmem is un the allocated memory block }

originalcode: { by default ce make a copy of the code just in case }
mov [ebx+00001D10],0

exit: { redirect it to returnhere }
jmp returnhere

"isaac-ng.exe"+10DBE5: { original instruction location }
jmp newmem { using 5 bytes to the jump and noping the extra ones }
nop
nop
nop
nop
nop
returnhere:
{ after executing your code the thread must continue it work and execute the process code thats why returnhere is here }
{ in this case returnhere will jump to "isaac-ng.exe"+10DBEB }

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem) { releasing the allocated memory }
"isaac-ng.exe"+10DBE5: { moving the original instruction into it place }
mov [ebx+00001D10],0000001E
//Alt: db C7 83 10 1D 00 00 1E 00 00 00


so first it will allocate memory
then user defined label to jump to them whenever you want
newmem is the new memory and every label and instruction under newmem will be in the allocated memory
it will start executing from newmem then originalcode to exit
on exit it will be redirected to returnhere so it jump back to where you jumped from and continue executing process instructions
you can get rid of exit label but make sure you place "jmp returnhere" after you code

im not good in explaining and teaching, but i hope you got it.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
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