Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2008, 08:12
Mitchjs
 
Posts: n/a
help unpacked .dll now crashes

hello all,

I have a program, that is packed with pecompact, and i unpack it no problem
it also has an inported .dll which is also packed, i unpacked that no problem

now when i run the app, it loads the unpacked version of the dll
but it crashed, in the ModuleEntyPoint code of the .dll

prob something i dont understand with PE files, or maybe how its unpacked now

there is more sections in the pe file after its unpacked
i used UnPECompact2 to unpack it

mitch
Reply With Quote
  #2  
Old 04-26-2008, 19:27
asterix asterix is offline
Friend
 
Join Date: Feb 2003
Posts: 98
Rept. Given: 1
Rept. Rcvd 4 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 4 Times in 4 Posts
asterix Reputation: 4
try to unpack dll manually and remember, dll should has relocations
Reply With Quote
  #3  
Old 04-27-2008, 03:03
Archer's Avatar
Archer Archer is offline
retired
 
Join Date: Aug 2005
Posts: 239
Rept. Given: 1
Rept. Rcvd 46 Times in 19 Posts
Thanks Given: 3
Thanks Rcvd at 387 Times in 57 Posts
Archer Reputation: 46
You may try to unpack with QuickUnpack. Try to find out the reason of crash.
Reply With Quote
  #4  
Old 04-28-2008, 07:41
Exocist Exocist is offline
Friend
 
Join Date: May 2002
Posts: 19
Rept. Given: 1
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
Exocist Reputation: 0
I've dumped many PECompact dll's successfully. Any problems have almost always been in the relocations area. If it is a relocations issue search for the great program called "Relox".

1) load .dll into default base address, dump at OEIP, call "dumped_10000000.dll"
2) modify target .dll to new base address, say 0x20000000 (can do this with PECompact targets fine)
3) load .dll again, dump at OEIP, call "dumped_20000000.dll"
4) start Relox, load dump1 in slot1 then dump2 in slot2.
5) Do a compare in Relox and it will rebuild relocations for you
6) Use Relox to add new .reloc section to your "dumped_10000000.dll"

Good luck!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SoftICE crashes with NVIDIA 81.x/82.x drivers Kerlingen General Discussion 17 03-11-2006 15:22
Ida2Sice crashes Softice?! bEaST General Discussion 0 09-07-2005 22:17
Armadillo crashes Olly Flagmax General Discussion 19 01-28-2005 09:47
OllyScript 0.85 and Olly 1.10 crashes ??!? Shub-Nigurrath General Discussion 6 07-11-2004 19:10


All times are GMT +8. The time now is 16:59.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )