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 CE Alloc Memory around modBaseAddr in 64Bit app?

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

Joined: 12 Jun 2016
Posts: 96

PostPosted: Sat Jun 06, 2020 2:18 am    Post subject: How CE Alloc Memory around modBaseAddr in 64Bit app? Reply with quote

I'm using C++ to do some simple hack test.
And using VirtualAllocEx to get memory.
This works fine in 32 bit game I think.

When I try to test some 64bit game.
I noticed when I use VirtualAllocEx,
I always get memory address at about

07F50015
08000000

while CE always get around

13FFF0000

And 64 bit game baseAddress is
140000000

And the code address I want to inject is about 1402FAE50

So when calling jmp,the address near is costing 5 bytes
and the long one will cost 14 bytes.

So I want to ask how CE get Alloc Memory around modBaseAddr in 64Bit app?

Is there some win32 API can do this?or parameter?

Or some kind of way to search memory hole and just use it for free?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 25985
Location: The netherlands

PostPosted: Sat Jun 06, 2020 2:51 am    Post subject: Reply with quote

The second parameter of VirtualAllocEx lets you specify the base address

There are 2 requirements for it to work though:
1: The memory address must be free
2: The address must be on the allocation granularity windows uses (right now 64KB, so the address has to end with 4 0's )

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Sat Jun 06, 2020 3:56 am    Post subject: Reply with quote

Thanks I think I get it working now.
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