Sponsored by: â–ˆ Sparkhost - Hosting Without Compromises! â–ˆ Hybrid Performance Web Hosting â–ˆ Spark Host Stream Hosting â–ˆ Hybrid IRC & IRCd Server Shell Accounts
How To Decompile/unpack A C++ Exe File
#1
Posted 19 May 2004 - 09:16 AM
Indeed, i would like to know how to unpack/decompile a C++ exe file !!!!
When a use an Hex editor program i got only ASCII characters....
Thanx a lot
#2
Posted 19 May 2004 - 09:31 AM
but hey man, if your willing to readup hardcore on asm and stuff i say give it a try, no harm in trying.
best of luck!
#3
Posted 19 May 2004 - 10:09 AM
i'll try to grab and test your ida pro utilitie if u telle it's hard enough to translate the ASM, damn i won't be able to do it but i'll have a look anyway
thanx a lot man
#4
Posted 19 May 2004 - 10:33 AM
I don't know if you're aware(I suspect from the nature of your post not), but, unlike say Java you can't just decompile a C++ file, the executable isnt a simple step away from getting the source code due to the nature of the compilation process (unless its been compiled in debug mode? Not sure on that).Indeed, i would like to know how to unpack/decompile a C++ exe file !!!!
I'm not an expert by any means, however I believe that decompiling a C++ source is not as easy as you might believe, its not like you can grab a windows .exe file and decompile it, thats why so many vulnerabilities are still hidden away in there
#5
Posted 19 May 2004 - 11:19 AM
#6
Posted 19 May 2004 - 11:21 AM
Unpacking refers to when a .exe is packed with a packer to protect the .exe from being dissasembled. Usually the packers also compress the .exe down on size as well.
If you're dissasembling something you'll be looking right at the code of the .exe. IDAPro will work, or WinDASM32 or even Olly (my favorite). Although Olly is a debugger more than a dissembler.
#7 Guest_F34R_*
Posted 19 May 2004 - 12:11 PM
#8
Posted 19 May 2004 - 01:20 PM
actually i'd like to be able to dissaembling the exe in order to be able to read the ASCII characters which means nothing for me......
anyaway i'm gonna try all those tools
thanx dudes
#9
Posted 19 May 2004 - 01:51 PM
If you want to Dead List an .exe use WinDASM 32. If you want to debug it, use Olly (my prefernce) or SoftICE.ok JDog45 i might have been more specific about my question
actually i'd like to be able to dissaembling the exe in order to be able to read the ASCII characters which means nothing for me......
anyaway i'm gonna try all those tools
thanx dudes
#10 Guest_archphase_*
Posted 19 May 2004 - 06:52 PM
My suggestion, buy Kris Kasperskys book, he teaches you how to use IDA like a Pro. He also has like 150-200 pages on just disassembling C++ from recognizing constructers, etc.
#11
Posted 20 May 2004 - 02:51 AM
I can recommend that book too, complex but worth the effort. Hacker dissasembling uncovered it's called.RE C++ is a bitch, each compiler has its own specified, bout only unified thing is ECX holds this pointer.
My suggestion, buy Kris Kasperskys book, he teaches you how to use IDA like a Pro. He also has like 150-200 pages on just disassembling C++ from recognizing constructers, etc.
#12
Posted 20 May 2004 - 06:21 AM
#13
Posted 07 July 2005 - 07:18 PM
1)Find a way to get to OEP as fast as you can.
2)Dump your EXE/DLL at OEP.
3)Fix the import table.
4)Fix OEP and other necessary things, and everything is fine...
I'd suggest you starting with UPX. And use olly as a debugger. Some compilers really have problem with system-level debuggers, which are hard to handle by a newbie(I also have problem with them). And if you unpack a proggy with a system-level debugger, it will be harder to decide whether your imports are all right or not. You dump a file, but don't fix the imports, but the file works perfect on your computer, then send it to a friend, and he/she gets an error on the EXE. That's why I prefer olly for unpacking purposes.
belgther... aka... belgther
#14
Posted 08 July 2005 - 05:04 AM
good luck, the file can have been crypted.
#15
Posted 06 November 2005 - 08:08 AM
you can try this debuggers
win dasm32
ida pro
softice
ollydbg
and don´t forget gdb
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












