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 


Recreating APIs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Mar 05, 2008 10:03 pm    Post subject: Recreating APIs Reply with quote

My head's hurting right now, and I'm not feeling well, so this might be a stupid idea, but I wanted to get it down before I forgot it.

Anyways, all these people keep talking about how some APIs are patched by GG in certain dlls, blah blah.

So what if you like, disassembled the dlls, found the addresses of the functions (GetProcAddress()?), and simply copied the bytes?

Does GG only block the actual kernel32.dll, or does it completely block all the operations that access that?

Seems like they'd have a hell of a time if it was the latter, and we started creating dlls with such code.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Wed Mar 05, 2008 10:09 pm    Post subject: Reply with quote

The problem with just copying the bytes is the fact that most of the addresses/pointers used in jmps/movs/calls etc. are static. That means after copying the bytes to their new location, you would have to scan through and manually fix them.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Wed Mar 05, 2008 10:20 pm    Post subject: Reply with quote

x0r wrote:
All DLLs come with reloc tables.


I never said they didn't, I am just saying that if you simply memcpy the function into a buffer then arbitrarily exectute it, you're going to have some problems. Wink
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 programming 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