Solved

De-compile program

Posted on 2013-12-04
4
161 Views
Last Modified: 2014-03-20
Hi, we had a small application made for us  (I think made with delphi) which we never received the code for and now cannot contact the programmer. We need to make changes to it and was wondering if it would be easy to decompile the exe,
0
Comment
Question by:maxkelpie
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39697440
More than likely, you won't get the exact source code back because usually when code is built into an executable it is done so with instructions to the compiler to make optimizations where it can. If the code was obfuscated during compilation, then you certainly won't get back the original source code.

I am not experienced with Delphi, so hold out for more responses from others who may have experience with decompilation of that language.
0
 
LVL 14

Expert Comment

by:Giovanni Heward
ID: 39697586
Check out the tutorial @ http://thelegendofrandom.com/blog/archives/1472

IDR (Interactive Delphi Reconstructor)
DeDe ( Delphi Decompiler )
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 39698117
Decompiled C++ is very tough to read. You lose all comments of course, and most names are mangled (even with Delphi). Also, the optimizer does things like inline functions and unroll for loops, so the code will be a nasty mess. (If an irresponsible person wrote it in the first place, it may have been pretty messy to start with).

In short, if you want to make some small tweak and go on, it will take some time, but you can do it.
If you want to make larger changes and continue to maintain the code, it would probably save time to just rewrite it from scratch.

What kind of contract did you have with the programmer? Is he legally obligated to provide you the code if he abandons the project? If not, make sure to build a clause like that into future contracts. (Or just have the code be deliverable along with the application).
0
 
LVL 14

Expert Comment

by:Giovanni Heward
ID: 39698406
make sure to build a clause like that into future contracts.

Excellent point.  A legal means to this end would be to require the source code to be placed in escrow by a trusted third party fiduciary, to be released to you in the event of x, y, or z.

I've personally used https://www.escrowtech.com/ for this purpose.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How does a lexer and parser works 2 83
EvenOdd challenge 10 88
countHi2 challenge 7 52
What language/protocol is the Angular Chat? 2 55
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now