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 


Large Offset in Pointer

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

Joined: 07 Jun 2010
Posts: 35

PostPosted: Thu Apr 14, 2016 4:42 am    Post subject: Large Offset in Pointer Reply with quote

I have a rather large offset
and cheat engine won't let me input the pointer:

[05B25358]+807B1348
(05B25358 points to 7FFF0000 in this case)
7FFF0000 + 807B1348 = 1007A1348 (9 placeholders)



Normally, addresses have 8 placeholders, but I'm
trying to hack a 64-bit game. When I try to use code
injection to get the address instead, it only gives me
007A1348 instead of 1007A1348. How do I bypass the
8 placeholder limitation?



Code:
alloc(missilemem,128)
label(missile)
registersymbol(missile)

missilemem:
push rax
mov rax,[05B25358]
add rax,807B1348
mov [missile],rax
pop rax
ret

missile:

createthread(missilemem)

_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4290

PostPosted: Thu Apr 14, 2016 9:37 am    Post subject: This post has 1 review(s) Reply with quote

With regards to the add instruction, there is no addressing mode that allows you to add an imm64 value to a register. The maximum it allows you is an imm32. The only time the add instruction modifies the upper 32 bits of a register is when it needs to sign extend it due to it being negative. Interestingly enough, it doesn't modify the upper 32 bits if it's a positive result.

Regardless of that, just move the value you're adding into another 64-bit register and add that to rax.
Code:
mov rax,7FFF0000
mov rcx,807B1348
add rax,rcx
mov [missile],rax
ret

PS:You don't have to push/pop rax if you're in your own thread. You should be returning an NTSTATUS if you're going to return so that ntdll.RtlExitUserThread can clean up the thread, but evidently it doesn't matter since nothing uses it. If you're still concerned about that, just zero out eax just before the ret and you'll be fine.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
efficacy28
Cheater
Reputation: 0

Joined: 07 Jun 2010
Posts: 35

PostPosted: Thu Apr 14, 2016 11:27 pm    Post subject: Reply with quote

Thank you for the information Smile +rep
_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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