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 


[Unpacking help] Preventing Overwrites of DRx Registers

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

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Sat Jul 05, 2008 6:00 am    Post subject: [Unpacking help] Preventing Overwrites of DRx Registers Reply with quote

I'm trying to unpack this program. I need to use hardware debuggers to debug it because it does CRC checks so int3 breakpoints will get detected. But, the program somehow always clears the DRx registers, causing my breakpoints to fail. I'm thinking it uses the SEH to do this because there are a lot of access violations and then the breakpoints disappear. I put an int3 breakpoint on SetThreadContext, but it never gets a hit.

How do I prevent this so I can debug the program? Btw, the packer is like a custom packer.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sun Jul 06, 2008 1:09 am    Post subject: Reply with quote

Hook ZwContinue().
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Jul 06, 2008 8:27 am    Post subject: Reply with quote

or hook the interrupt1 handler in kernelmode (might require dbvm if it also checks the IDT in kernel for changes)
then set the global debug flag in DR7, and each time it is read to or written to, it'll break, and you can fake the edit
keep in mind that with this method you'll be processsurfing, since each taskswitch will cause a DRx access, so check which process before you set the breakpoint to break on something.

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