 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Einhuhn Cheater
Reputation: 0
Joined: 06 Apr 2022 Posts: 44
|
Posted: Mon May 27, 2024 10:58 am Post subject: Can anyone explain me this in the code? |
|
|
I have found now the Effect Arrow Code.
Code:
[ENABLE]
aobscanmodule(INJECT,DrakensangTRoT.exe, ,44 8B 87 04 01 00 00 48 8B CB)
alloc(newmem,$1000,INJECT)
label(code)
label(return)
newmem:
code:
mov r8d,[rdi+00000104]
jmp return
INJECT:
jmp newmem
nop 2
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db 44 8B 87 04 01 00 00
unregistersymbol(INJECT)
dealloc(newmem)
What is this?
aobscanmodule(INJECT
and this?
alloc(newmem,$1000,INJECT)
and this?
INJECT:
jmp newmem
nop 2
And this?
INJECT: db 44 8B 87 04 01 00 00
I hope anyone can explain me this
|
|
| Back to top |
|
 |
Do0ks How do I cheat?
Reputation: 0
Joined: 04 Apr 2024 Posts: 1
|
Posted: Wed May 29, 2024 8:30 pm Post subject: Re: Can anyone explain me this in the code? |
|
|
| Einhuhn wrote: | What is this?
aobscanmodule(INJECT
and this?
alloc(newmem,$1000,INJECT)
and this?
INJECT:
jmp newmem
nop 2
And this?
INJECT: db 44 8B 87 04 01 00 00
I hope anyone can explain me this |
1) Performs an Array of Bytes scan within the specified module "(DrakensangTRoT.exe)". It searches for the specific sequence of bytes within the module. The 'INJECT' is the label or the name given to the address where the byte sequence is found
2) Allocates a block of memory ($1000 bytes) for the 'newmem' label, which will be used to hold the new code. The memory is allocated close to the INJECT address to ensure the jump to this new memory.
3) jmp newmem inserts a jump instruction that redirects execution to the newmem block. nop 2 inserts two No Operation instructions to pad out the rest of the original instruction's size that has been overwritten by the jump.
4) Restores the original bytes at the INJECT address when the cheat is disabled. db stands for "define byte" and is used to write the byte sequence directly into the code at the INJECT address. This just ensures that the game returns to its original state by placing the original bytes back into memory.
|
|
| Back to top |
|
 |
|
|
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
|
|