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 


How to deal with rdi+rdx registers for Pointer Generation?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue Jan 19, 2021 12:09 pm    Post subject: How to deal with rdi+rdx registers for Pointer Generation? Reply with quote

[ENABLE]

aobscanmodule(Swapper,TestGame.exe,80 3C 17 00 75 F7 48 89 55 C7) // should be unique
alloc(newmem,$1000,"TestGame.exe"+33C453)

label(code)
label(return)
globalalloc(_FindPTR,12)

newmem:

code:
// What i shall place here to make the code generate pointer to the last accessed address by this OPCODE?
cmp byte ptr [rdi+rdx],00
jne TestGame.exe+33C450
jmp return

Swapper:
jmp newmem
nop
return:
registersymbol(Swapper)

[DISABLE]

Swapper:
db 80 3C 17 00 75 F7

unregistersymbol(Swapper)
dealloc(newmem)


What i shall place here to make the code generate pointer to the last accessed address by this OPCODE?


ANSWER TO MYSELF AND OTHERS:

code:
push rax
lea rax,[rdi+rdx]
mov [_AllocatedPTRSymbol],rax
pop rax

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
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