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 


Can anyone explain me this in the code?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Einhuhn
Cheater
Reputation: 0

Joined: 06 Apr 2022
Posts: 44

PostPosted: Mon May 27, 2024 10:58 am    Post subject: Can anyone explain me this in the code? Reply with quote

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
View user's profile Send private message
Do0ks
How do I cheat?
Reputation: 0

Joined: 04 Apr 2024
Posts: 1

PostPosted: Wed May 29, 2024 8:30 pm    Post subject: Re: Can anyone explain me this in the code? Reply with quote

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
View user's profile Send private message Send e-mail
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