| View previous topic :: View next topic |
| Author |
Message |
bhfff Cheater
Reputation: 0
Joined: 19 Jan 2017 Posts: 30
|
Posted: Sat Dec 16, 2017 1:10 pm Post subject: Plugin/feature suggestion - Change register in autoassembler |
|
|
It would be really cool to have this functionallity, something like
flag("Address","flagname","value")
unflag("address")
So the "Change register at this location" could also be used in scripts :) |
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Dec 16, 2017 1:25 pm Post subject: |
|
|
Not sure I understand. Sounds like a normal code injection. | Code: | newmem:
mov eax,#100 //changes eax register
code:
//original instructions |
Or you wanted to use the debugger? | Code: | debug_setBreakpoint(address, 4, bptWrite, function()
EAX = 100
debug_continueFromBreakpoint(co_run)
return 1
end) |
|
|
| Back to top |
|
 |
bhfff Cheater
Reputation: 0
Joined: 19 Jan 2017 Posts: 30
|
Posted: Sat Dec 16, 2017 1:45 pm Post subject: |
|
|
| Zanzer wrote: | Not sure I understand. Sounds like a normal code injection. | Code: | newmem:
mov eax,#100 //changes eax register
code:
//original instructions |
Or you wanted to use the debugger? | Code: | debug_setBreakpoint(address, 4, bptWrite, function()
EAX = 100
debug_continueFromBreakpoint(co_run)
return 1
end) |
|
Lua makes the game run slower and I can not change the eip using assembly |
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Sat Dec 16, 2017 1:51 pm Post subject: |
|
|
| bhfff wrote: | | I can not change the eip using assembly |
then let it jump to where you want, or maybe call 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 |
|
 |
bhfff Cheater
Reputation: 0
Joined: 19 Jan 2017 Posts: 30
|
Posted: Sat Dec 16, 2017 1:57 pm Post subject: |
|
|
| OldCheatEngineUser wrote: |
then let it jump to where you want, or maybe call it. |
I don't know (yet) how calls work as I tried a lot of times, but sadly each time the game crashed
For example, I don't know the difference between ret, ret4 and ret8
(So you have an idea of my poor knowledge)
edit: I can't let it jump because my game has an integrity check |
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Sat Dec 16, 2017 2:11 pm Post subject: |
|
|
the standalone/plain ret is returning without modifying the stack, while retx is return with clearing previously pushed parameters before that call.
you dont have to worry about this, just place a ret at the end of your subroutine. _________________
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 |
|
 |
|