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 


code caves in autoassembly

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

Joined: 09 Mar 2013
Posts: 22
Location: Behind you

PostPosted: Thu Jul 18, 2013 11:42 pm    Post subject: code caves in autoassembly Reply with quote

Alright, before i ask anything let me give some details. I am trying to find an array of bytes, and use a codecave to have it do whatever it is i want before those bytes are used.

let me try and explain in assembly terms. Basically what i'm looking for is wherever ?? ?? ?? ?? ?? bytes are in memory, i want it to jmp to the codecave, store the flags/registers, run the code i want, xor everything, put the flags and registers back, run the original bytes, and jmp back to where the bytes were and run like normal.

my problem is how would i go about doing this in auto assembly? im not sure how the autoassembly works and i wanted to ask you guys before just trying to figure it out on my own. does it run the assembly BEFORE the bytes? or afterwards. and i'll probably need help on the storing of registers/flags. the best i could come up with was label a name and just dump them onto it for storage.

my code (which is terribly incomplete) looks something like this
[ENABLE]
alloc
label(storage)

storage,registers
storage,flags
* * * * * (whatever bytes i want here)
xor registers,registers
xor flags,flags
push storage
?? ?? ?? ?? ?? original bytes here
[DISABLE]
?? ?? ?? ?? ?? original bytes here
dealloc


p.s. im very sorry if im asking too much, or if i sound like a noob. honestly i AM a noob.

_________________
-TNC
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