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 


Allocating memory in a specific region

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

Joined: 19 May 2014
Posts: 74

PostPosted: Thu Sep 17, 2015 6:53 am    Post subject: Allocating memory in a specific region Reply with quote

Greetings

I am fooling around with x64 game, and as I used the template for code injection I found out this:

alloc(newmem,512,"gamedll_x64_rwdi.dll"+5E2119)

My research, aka finding Dark Byte's post, says it's because the jmp newmem can't jump such a long distance, and the third parameter in alloc is the region the memory will be allocated to.

But how does that work? I mean allocating memory adds in bytes at the end of the program, or so I figure, simply making it bigger, but since it's in an additional area there is no risk of any conflicts. But in a region, it means the memory is allocated somewhere in between bytes which correspond to opcodes, or how?

I mean, adding just one byte somewhere inside a functional procedure shifts the reading matrix of the entire game so it's a guaranteed instacrash. How is allocating memory in this manner, to a specific region, different?

Cheers!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Sep 17, 2015 7:18 am    Post subject: Reply with quote

it doesn't allocate at that exact spot. ,it just picks an unallocated block of memory nearby the given address, and allocates the memory there (no shifting required)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Thu Sep 17, 2015 2:03 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5615276
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Noobrzor
Advanced Cheater
Reputation: 0

Joined: 19 May 2014
Posts: 74

PostPosted: Thu Sep 17, 2015 4:18 pm    Post subject: Reply with quote

I thank you for answers.
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