Pennock's Fiero Forum
  Totally O/T - Archive
  View .exe code

T H I S   I S   A N   A R C H I V E D   T O P I C
  

Email This Page to Someone! | Printable Version


View .exe code by Silentassassin185
Started on: 05-01-2007 07:42 PM
Replies: 12
Last post by: Formula on 05-02-2007 11:21 PM
Silentassassin185
Member
Posts: 3186
From: Joplin, Mo
Registered: Nov 2003


Feedback score: (5)
Leave feedback





Total ratings: 93
Rate this member

Report this Post05-01-2007 07:42 PM Click Here to See the Profile for Silentassassin185Send a Private Message to Silentassassin185Direct Link to This Post
I have an .exe file i was wanting to look at the code. How would I go about this? If it matters any I know the programming language used. TIA
Mike

------------------
SOLORED -1988 Fiero 2.5 auto awaiting a 3800
LT -1987 Ford Ranger 31x10x15 DD
2LOBLAK -1986 Fiero Project car 327 TPI v8

IP: Logged
PFF
System Bot
IEatRice
Member
Posts: 5234
From: US
Registered: Oct 2004


Feedback score: N/A
Leave feedback





Total ratings: 119
Rate this member

Report this Post05-01-2007 07:54 PM Click Here to See the Profile for IEatRiceSend a Private Message to IEatRiceDirect Link to This Post
It's been years since I've done anything like this (so I don't remember the programs I used, sorry), but the process was called reverse engineering. Also some hex editors will allow you to view some code / function.
IP: Logged
Silentassassin185
Member
Posts: 3186
From: Joplin, Mo
Registered: Nov 2003


Feedback score: (5)
Leave feedback





Total ratings: 93
Rate this member

Report this Post05-01-2007 07:56 PM Click Here to See the Profile for Silentassassin185Send a Private Message to Silentassassin185Direct Link to This Post
I figured possibly a decompiler might work? I havent had time to research it enough. Studying for finals >_< I'll do some looking into some hex editors and see what I can find. Thanks
IP: Logged
Jax184
Member
Posts: 3524
From: Vancouver, Canada
Registered: Jun 2005


Feedback score: N/A
Leave feedback





Total ratings: 111
Rate this member

Report this Post05-01-2007 08:00 PM Click Here to See the Profile for Jax184Click Here to visit Jax184's HomePageSend a Private Message to Jax184Direct Link to This Post
For the most part, you're out of luck. A hex editor will give you a little peek inside, but it's not the same as actually having the source code.
What language is it in?
IP: Logged
Silentassassin185
Member
Posts: 3186
From: Joplin, Mo
Registered: Nov 2003


Feedback score: (5)
Leave feedback





Total ratings: 93
Rate this member

Report this Post05-01-2007 08:07 PM Click Here to See the Profile for Silentassassin185Send a Private Message to Silentassassin185Direct Link to This Post
Its C+ or C++ if I recall correctly.
IP: Logged
IEatRice
Member
Posts: 5234
From: US
Registered: Oct 2004


Feedback score: N/A
Leave feedback





Total ratings: 119
Rate this member

Report this Post05-01-2007 08:07 PM Click Here to See the Profile for IEatRiceSend a Private Message to IEatRiceDirect Link to This Post
yeah but most programs that are compiled have some sort of decompile protection so people can't steal their source code and sell their same product with a different name. Reverse engineering actually runs the program and produces the source code as it runs, it wont be 100% code but it'll be most of it.
IP: Logged
fieroluv
Member
Posts: 1951
From: Ft Wayne, IN USA
Registered: Jul 2002


Feedback score: N/A
Leave feedback





Total ratings: 52
Rate this member

Report this Post05-01-2007 08:10 PM Click Here to See the Profile for fieroluvSend a Private Message to fieroluvDirect Link to This Post
I have used Wdasm32 and softice. What do you plan on doing with the code once you decompile it. But I will tell you there is absolutely no way to get it back to source code. You can only decompile it to the point to where you can see the functions of the program and all of the program calls and traps.
IP: Logged
Silentassassin185
Member
Posts: 3186
From: Joplin, Mo
Registered: Nov 2003


Feedback score: (5)
Leave feedback





Total ratings: 93
Rate this member

Report this Post05-01-2007 08:13 PM Click Here to See the Profile for Silentassassin185Send a Private Message to Silentassassin185Direct Link to This Post
I just wanna know how it works. A buddy got it from a professor and gave it to me and its got me intrigued. He calls it the magic square or something weird like that. I got the basics down I think just wanna see how the code works out.
IP: Logged
fieroluv
Member
Posts: 1951
From: Ft Wayne, IN USA
Registered: Jul 2002


Feedback score: N/A
Leave feedback





Total ratings: 52
Rate this member

Report this Post05-02-2007 02:42 PM Click Here to See the Profile for fieroluvSend a Private Message to fieroluvDirect Link to This Post
Ok I stand corrected, I just found a program that might actually do what you are looking to accomplish. It's called DCC32, here is a link that talks about what it does. It looks like it will decompile it back to C source.
IP: Logged
Pyrthian
Member
Posts: 29569
From: Detroit, MI
Registered: Jul 2002


Feedback score: (5)
Leave feedback





Total ratings: 342
Rate this member

Report this Post05-02-2007 03:06 PM Click Here to See the Profile for PyrthianSend a Private Message to PyrthianDirect Link to This Post
old dos tools are great for this. most have hex viewers, so you can view it that way. but, I expect what you really want is to look at the actual "program", not the hex values. for that, you need to know what it was compiled with. not in. there are usually several different compilers for any given language. luckily, these days w version stamps & auther stamps - theres usually a compile stamp too. and, many copyrighted software will hide this to prevent reverse engineering.
IP: Logged
AP2k
Member
Posts: 2408
From:
Registered: May 2006


Feedback score: N/A
Leave feedback

Rate this member

Report this Post05-02-2007 04:03 PM Click Here to See the Profile for AP2kSend a Private Message to AP2kDirect Link to This Post
You want a disassembler like gdb. The source is going to be straight x86 assembly.

If you want the computer to try to decompile it, you can use Boomerang or REC.
IP: Logged
PFF
System Bot
cunninghamsean
Member
Posts: 876
From: Dahlgren, VA
Registered: Jan 2002


Feedback score: N/A
Leave feedback

Rate this member

Report this Post05-02-2007 09:46 PM Click Here to See the Profile for cunninghamseanSend a Private Message to cunninghamseanDirect Link to This Post
Sometimes you can view what is going on if you force the computer to dump with the program running. You can then read the dump. You will not get full source, but it will give you an idea of what is going on.
Sean
IP: Logged
Formula
Member
Posts: 5343
From:
Registered: Jul 99


Feedback score: (2)
Leave feedback





Total ratings: 96
Rate this member

Report this Post05-02-2007 11:21 PM Click Here to See the Profile for FormulaSend a Private Message to FormulaDirect Link to This Post
I use hex editors and watch what values are changing with movement, change in time, etc... It doesn't really help with the source but its fun to edit
IP: Logged



All times are ET (US)

T H I S   I S   A N   A R C H I V E D   T O P I C
  

Contact Us | Back To Main Page

Advertizing on PFF | Fiero Parts Vendors
PFF Merchandise | Fiero Gallery
Real-Time Chat | Fiero Related Auctions on eBay



Copyright (c) 1999, C. Pennock