Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2005, 23:53
ReVeR
 
Posts: n/a
VBOX upnacking question

hello.
i tired to unpack VBOX recently, and i ran into a problem....when i am setting a breakpoint on the .code section...my program has like 4 of the .code section.
So i set teh bp on the one at 04010000. But when it breaks it breaks hell knows where, to some string declaration or something.

A/w My question is, is this normal to have more then one .code section?
and how do i know on whihc one to set BP on?
Thx
Reply With Quote
  #2  
Old 03-07-2005, 09:16
D-Jester's Avatar
D-Jester D-Jester is offline
VIP
 
Join Date: Nov 2003
Location: Ohio, USA
Posts: 269
Rept. Given: 39
Rept. Rcvd 61 Times in 41 Posts
Thanks Given: 0
Thanks Rcvd at 4 Times in 4 Posts
D-Jester Reputation: 61
Code:
Memory map
Address    Size       Owner      Section    Contains                     Type   Access    Initial
00400000   00001000   Thisapp-              PE header                    Imag   R         RWE
00401000   00D5B000   Thisapp-   .text      code                         Imag   R         RWE
0115C000   00207000   Thisapp-   .rdata                                  Imag   R         RWE
01363000   000BC000   Thisapp-   .data      data                         Imag   R         RWE
0141F000   00172000   Thisapp-   .rsrc      resources                    Imag   R         RWE
01591000   00016000   Thisapp-   PREVIEW    SFX,imports,exports          Imag   R         RWE
Use memory Breakpoints they can be effective when all else fails. Almost...well always as far as I know when you want to break on the OEP section, it should be the first section (not the PE Header) often with the section header as ".text".

Vbox is easy...
Load app, clear IsDebuggerPresent Byte, Run the app until the trial screen appears, set a "BP FreeLibrary" when you break set a memory breakpoint on the code section, run...and your at the OEP, dump the app, change entrypoint to OEP, run the packed app not under a debugger, rebuild imports with ImpREC using "Hook", and "Trap Flag", any unresolved imports shouuld be "PeekMessage", and "GetMessage"

Read my tutorial on VBOX 4.6 for a detailed overview.

http://www.exetools.com/forum/showthread.php?t=5953

But since you don't have download privledges yet, if you PM with your email I will be nice enough to send it to you.

Quote:
Originally Posted by ReVeR
...is this normal to have more then one .code section?
This is not uncommon, its just a charateristic of a packed application where one code section unpacks/decrypts the other before executing it.

Regards...
__________________
Even as darkness envelops and consumes us, wrapping around our personal worlds like the hand that grips around our necks and suffocates us, we must realize that life really is beautiful and the shadows of despair will scurry away like the fleeting roaches before the light.

Last edited by D-Jester; 03-07-2005 at 09:19.
Reply With Quote
  #3  
Old 03-10-2005, 20:32
ReVeR
 
Posts: n/a
k, thx alot, i think i solved my problem, though i haven't gotten teh app unpacked, i analysed the code it broke on wheh i put the mem break point. And now it is no longer gibberish, but a normal code...so i will try to dump it tonight and see if it workes...
Thx for te info.
Reply With Quote
  #4  
Old 06-13-2005, 21:04
ivanov ivanov is offline
uninvited_guest
 
Join Date: Aug 2004
Location: Lubljana
Posts: 180
Rept. Given: 58
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 46
Thanks Rcvd at 15 Times in 12 Posts
ivanov Reputation: 3
D-Jester,
is there any generic manual unp for vbox? my target is protected with vbox 4.10, how to reach the OEP using Olly? btw, is your tuts applicable for this version?

Last edited by ivanov; 06-13-2005 at 21:13.
Reply With Quote
  #5  
Old 06-14-2005, 01:32
N0P's Avatar
N0P N0P is offline
Friend
 
Join Date: Aug 2003
Location: [CPU]
Posts: 100
Rept. Given: 19
Rept. Rcvd 13 Times in 12 Posts
Thanks Given: 16
Thanks Rcvd at 58 Times in 23 Posts
N0P Reputation: 13
Quote:
Originally Posted by ivanov
D-Jester,
is there any generic manual unp for vbox? my target is protected with vbox 4.10, how to reach the OEP using Olly? btw, is your tuts applicable for this version?
this tut is applicable for (IMHO) all vBox craps (maybe privilege) or you can try eCRap OEP verify plugin for PEID by MAXX...
http://www.exetools.com/forum/showthread.php?t=4160

Last edited by N0P; 06-14-2005 at 01:35.
Reply With Quote
  #6  
Old 06-14-2005, 20:58
ivanov ivanov is offline
uninvited_guest
 
Join Date: Aug 2004
Location: Lubljana
Posts: 180
Rept. Given: 58
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 46
Thanks Rcvd at 15 Times in 12 Posts
ivanov Reputation: 3
yes, i have followed that tuts and also the one from D-jester. It "seemed" I reached the OEP, but no exe's worked. Please, I need more guidance. Here is my target:
h__ttp://www.qfile.de/dl/33934/target.rar.html.
Reply With Quote
  #7  
Old 06-14-2005, 21:13
hobferret's Avatar
hobferret hobferret is offline
Senile Member
 
Join Date: Apr 2003
Location: Alien area near Albuquerque, NM
Posts: 302
Rept. Given: 42
Rept. Rcvd 58 Times in 34 Posts
Thanks Given: 0
Thanks Rcvd at 19 Times in 19 Posts
hobferret Reputation: 58
Hi

From what I remember of VBOX4.1, the entry point is from the PREVIEW section

The last 2 instructions I think (if I remember correctly) are:-

PUSH FFFFFFFF
CALL EAX - - > To EIP

LONG TIME AGO vbox4.1

/hobferret

If you have a dump and it wont run, have you fixed the IAT

Last edited by hobferret; 06-14-2005 at 21:21. Reason: Forgot IAT bit
Reply With Quote
  #8  
Old 06-14-2005, 21:38
ivanov ivanov is offline
uninvited_guest
 
Join Date: Aug 2004
Location: Lubljana
Posts: 180
Rept. Given: 58
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 46
Thanks Rcvd at 15 Times in 12 Posts
ivanov Reputation: 3
right,hobferret.
i have reached that section and jump into the call, do nothing and dumped the process using OllyDump. After fixing IAT, i got only one valid imported function and the exe is not working/error.
Reply With Quote
  #9  
Old 06-14-2005, 21:54
hobferret's Avatar
hobferret hobferret is offline
Senile Member
 
Join Date: Apr 2003
Location: Alien area near Albuquerque, NM
Posts: 302
Rept. Given: 42
Rept. Rcvd 58 Times in 34 Posts
Thanks Given: 0
Thanks Rcvd at 19 Times in 19 Posts
hobferret Reputation: 58
Hey man

If you only have one reference in the IAT it has gotta be wrong

When at the IAT check to see where the calls are from, do a search for FF25 and you should find the IAT area, make a note of it and use that in Imprec

/hobferret
Reply With Quote
  #10  
Old 06-15-2005, 04:00
Jay Jay is offline
VIP
 
Join Date: Feb 2002
Posts: 249
Rept. Given: 31
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 15
Thanks Rcvd at 13 Times in 5 Posts
Jay Reputation: 3
Quote:
Originally Posted by ivanov
yes, i have followed that tuts and also the one from D-jester. It "seemed" I reached the OEP, but no exe's worked. Please, I need more guidance. Here is my target:
h__ttp://www.qfile.de/dl/33934/target.rar.html.
hey ivanov,
target requires at least 2 non-system dll's not included in the archive.
vboxp410.dll
GEAR32PD.dll
Reply With Quote
  #11  
Old 06-15-2005, 05:57
D-Jester's Avatar
D-Jester D-Jester is offline
VIP
 
Join Date: Nov 2003
Location: Ohio, USA
Posts: 269
Rept. Given: 39
Rept. Rcvd 61 Times in 41 Posts
Thanks Given: 0
Thanks Rcvd at 4 Times in 4 Posts
D-Jester Reputation: 61
Hello ivanov, please PM me with a download link for the FULL package, I can't run this on my system without its dependacies.

Thanks
__________________
Even as darkness envelops and consumes us, wrapping around our personal worlds like the hand that grips around our necks and suffocates us, we must realize that life really is beautiful and the shadows of despair will scurry away like the fleeting roaches before the light.
Reply With Quote
  #12  
Old 06-15-2005, 18:03
hobferret's Avatar
hobferret hobferret is offline
Senile Member
 
Join Date: Apr 2003
Location: Alien area near Albuquerque, NM
Posts: 302
Rept. Given: 42
Rept. Rcvd 58 Times in 34 Posts
Thanks Given: 0
Thanks Rcvd at 19 Times in 19 Posts
hobferret Reputation: 58
Hi ivanov

Likewise, PM the link

Don't know what exactly the program is but sounds like some old Adobe thing

/hobferret
Reply With Quote
  #13  
Old 06-16-2005, 00:35
ivanov ivanov is offline
uninvited_guest
 
Join Date: Aug 2004
Location: Lubljana
Posts: 180
Rept. Given: 58
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 46
Thanks Rcvd at 15 Times in 12 Posts
ivanov Reputation: 3
I have tried Lunar_Dust tuts "Unpacking VBOX 4.6.2 (Privilege Client)
Semi - Manually�..". I don't fixed the import table, just change the EP manually after dumping the program using LordPE. It works fine on Win XP SP2. But, I cannot run it on Win ME. It seems IAT is the problem, but I am not sure to fix it, :-).

The only imported function I see when loading the original program into ImpRec, entering the OEP I just found (using Lunar_Dust tuts, or the one that PEiD suggested), is Kernel32.dll. I don't know why ..:-).
Reply With Quote
  #14  
Old 06-16-2005, 04:21
hobferret's Avatar
hobferret hobferret is offline
Senile Member
 
Join Date: Apr 2003
Location: Alien area near Albuquerque, NM
Posts: 302
Rept. Given: 42
Rept. Rcvd 58 Times in 34 Posts
Thanks Given: 0
Thanks Rcvd at 19 Times in 19 Posts
hobferret Reputation: 58
Hi ivanov

Is it by any chance set last error

/hobferret
Reply With Quote
  #15  
Old 06-16-2005, 04:44
hobferret's Avatar
hobferret hobferret is offline
Senile Member
 
Join Date: Apr 2003
Location: Alien area near Albuquerque, NM
Posts: 302
Rept. Given: 42
Rept. Rcvd 58 Times in 34 Posts
Thanks Given: 0
Thanks Rcvd at 19 Times in 19 Posts
hobferret Reputation: 58
OK ivanov

Just very quickly unpacked target with Ollydbg

OEP==0056EA64

IAT
START@006C6018
END@006C6E84

So I don't know why you are only "seeing" one function

Forgot how easy VBOX 4.1 was

/hobferret
Reply With Quote
Reply


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
Vbox 4.6.2 LetMeIn General Discussion 4 10-29-2004 11:10


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


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