OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Thu Aug 17, 2017 7:45 pm Post subject: |
|
|
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. |
|
|