Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2004, 09:27
Wackyass
 
Posts: n/a
Breaking DLL with OLLY

Hello all,

I used to use SoftIce on another box which had Win98 but I refuse to put DriverStudio on my XP box so I am happy with Olly and the rest of the gang of tools. HOWEVER, I have a certain application which loads dll's of course on initial loading BUT there are DIFFERENT dlls that load after program execution which I wish to break into to in particular 1 that is packed with Neolite 2 but then there is a custom packing routine after that which I want to investigate. I would have changed to CC on program start and intercept with Softice and I ALREADY tried the option in OLLY to break on new module load which did not work. The main executable is hanging when I shift F9 and then olly hangs saying that it's receiving no response. I also replaced dll entry bytes to EB FE and couldn't attach to it either. Any other suggestions would be greatly appreciated. Also, I have already successfully unpacked and examined the Neolite part no problem with LoadDLL in Olly which is how I found out about the custom packed part. But after rebuilding the imports I still couldn't get a dead listing but the Resources and Text strings were all available.

Thanks ahead of time!
Wackyass

Last edited by Wackyass; 09-30-2004 at 10:43. Reason: Forget to mention I tried LoadDLL
Reply With Quote
  #2  
Old 09-30-2004, 12:08
deXep deXep is offline
Friend
 
Join Date: Aug 2004
Posts: 42
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
deXep Reputation: 0
Maybe u need loaddll.exe, download it from ollydbg homepage
Reply With Quote
  #3  
Old 09-30-2004, 13:05
Wackyass
 
Posts: n/a
I edited my post but the edit hasn't shown up and at the bottom it says:

Last edited by Wackyass : 09-29-2004 at 22:43. Reason: Forget to mention I tried LoadDLL

I already used that which is how I unpacked neolite in no time but the rest of the custom packing can not be unpacked further unless it is getting certain data from the host process. Which means that I need to halt operation and step through while running which was easy with Softice on bpint 3 but I don't know how to go about it other than what I have already tried.

Wackyass
Reply With Quote
  #4  
Old 09-30-2004, 13:49
Innocent
 
Posts: n/a
Olly

Ok I would suggest you uninstall and install the program again to start over fresh. You can use the option in olly: options-> debugging options -> events -> and set Break on new module (DLL). Once you break on the dll, alt+e and double click on it. Right click on the entry point and select new origin here. Then start your unpacking or whatever.
Reply With Quote
  #5  
Old 09-30-2004, 13:50
Wackyass
 
Posts: n/a
Was able to break on INT 03 But Hangs

Ok, after doing some more investigating and older techniques I was able to break on int 03 by replacing the dll entry point to CC and unchecking the exception for int 03 in Olly. HOWEVER, I am unable to attach to the process since it is hung in memory and Olly shows this Yes/No dialog box:

-->
In order to perform action that is not supported by OS, OllyDbg has injected short piece of code into the debugged application, but received no response within 5 seconds. Do you want to wait for another 5 seconds? (If you answer No, the consistency and stability of program is not guaranteed and you should restart it as soon as possible).
-->


Any help from this point would be greatly appreciated.

Wackyass
Reply With Quote
  #6  
Old 04-26-2005, 16:48
goggles99 goggles99 is offline
Friend
 
Join Date: Aug 2004
Posts: 62
Rept. Given: 5
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 1
Thanks Rcvd at 4 Times in 4 Posts
goggles99 Reputation: 0
Lightbulb

Sorry to bump an old thread, but I thought this may help someone else too.

I actually found this thread on Google while searching for this OllyDbg error. There isn't much out there on it but it is very annoying and makes setting breakpoints impossible (since OllyDbg keeps looping witht his error message).

Quote:
In order to perform action that is not supported by OS, OllyDbg has injected short piece of code into the debugged application, but received no response within 5 seconds. Do you want to wait for another 5 seconds? (If you answer No, the consistency and stability of program is not guaranteed and you should restart it as soon as possible).
I found out that I got this error only when the "Decode registers for any IP" option was checked under Options -> Debugging Options -> Registers tab.

I havn't debugged OllyDbg yet to find out exactly what is causing this error.

Beware, I didn't check this option manually. I have found that a couple of settings seem to sometimes "activate" somehow once in a while.

Hope this is helpfull to someone else looking for help or at least something to keep in mind in case you ever encounter this problem...

Last edited by goggles99; 04-26-2005 at 16:57.
Reply With Quote
  #7  
Old 04-27-2005, 09:26
omidgl omidgl is offline
Friend
 
Join Date: Jul 2004
Posts: 86
Rept. Given: 10
Rept. Rcvd 4 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 5 Times in 5 Posts
omidgl Reputation: 4
Lightbulb

Use this option ---> Debugging Options > Events > Break on new module (DLL)

Regards
O M I D
Reply With Quote
  #8  
Old 04-27-2005, 09:47
NeOXOeN NeOXOeN is offline
Friend
 
Join Date: Jan 2005
Posts: 273
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 2
Thanks Rcvd at 18 Times in 18 Posts
NeOXOeN Reputation: 3
First of all i dont understand what its your real problem ?, topic says something but after reading text i understood you want something else:P

First of all i would like to ask you ..did you unpacked exe packed NeOLite.?

Secondly you are loaded dll which is part of app ..in main exe ,so in order you will be able to break in dll you need to find a place when app loads its own DLL.How does app do that ,there are really a lot of ways that you can load dll ,use google if you are not sure how

Thirdly its not necessary that you can load dll independently into olly ,since main app is using it.Above all dll its just packed nothing else.Sice would probably manage it better in olly you need to be sure in which contexts are you breaking it.Sice does job for you .

4th after breaking you need to change bytes back and set ignore error in debug option and ( right context ),and one more thing OLLy is not the tool for you :P you need to learn it how to use it, its has its good and bad point .
I preffer SIce :P


And about dead listing you should changes characheristis of sections(any peditor will do) and use IDa. I am sure you will be able to find it.


Above all there alredy unpackers out which would do job for you ,since apprently you dont know what you are doing :P
Use that it will help you in better understanding


But i would like to suggest to you that you read some tuts about unpacking there are a lot good ones avalible on this forum and i am sure there is one about NeOlite unpacking too



Bye NeO
Reply With Quote
  #9  
Old 04-27-2005, 16:34
nikola nikola is offline
Friend
 
Join Date: Jan 2004
Location: Your head
Posts: 115
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
nikola Reputation: 0
@omidgl: "and I ALREADY tried the option in OLLY to break on new module load which did not work"

@Wackyass: I'm still not clear what you are trying to do. You are saying that your dll is multilevel packed and you unpacked neolite part? Becouse... if so, i think that you done a very hard work. When you load dll, try finding OEP. When you get to OEP, dump it and retrieve IAT. Thats when surely both Neolite and custom layer are unpacked becouse dll got to DllMain().
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
breakpoints not breaking in olly.. abitofboth General Discussion 2 11-17-2005 19:13
DS3 not breaking britedream General Discussion 30 08-28-2003 09:42


All times are GMT +8. The time now is 03:19.


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