I came across this on delphi.about.com web site and thought it useful to add it a a reference here.
The program firstly is intended for the companies, engaged by development of anti-virus software. It can also help programmers to recover lost source code of programs appreciably. The current version of the program can process files (GUI and console applications), compiled by Delphi compilers of versions Delphi2 – Delphi2009. Decompiling Delphi at mentions a number of Delphi 'decompilers': Dede, RevendPro, MRIP, DfmExplorer, Exe2Dpr. As far as I know none of these decomile to delphi source code; the best that they do is well commented assembler with strings (etc) displayed correctly.
- Most 'Delphi decompilers' parse form and RTTI data, but do not actually decompile the machine code. I can only recommend using something like DeDe (or similar software) to extract symbol information in combination with a C decompiler, then translate the decompiled C code to Delphi (there are many source code converters out there).
- Decompiling Delphi software, free downloads. Decompiling Delphi shareware, freeware, demos: RichView (Delphi version). Reverse Engineering (Decompiling) Delphi Applications- DelphiGear.cn. When a Delphi project is compiled and linked to produce a standalone executable file, most of the names used in the program are converted to addresses.
- Decompiling Delphi Program Someone just sent me a decompile of a program into C. It was a very good decompile, producing nice, mostly readabe C code (if you overlook the fact that none of the variables or functions had a human-readable name) that mostly looked like it would actually compile.
Decompilation? Reverse? Cracking?`
Simply speaking, decompilation is the inverse of compilation: translating an executable file into a higher level language. Suppose you lose your Delphi project's source and you only have the executable file: reverse engineering (decompilation) is useful if the original sources are not available. Hm, 'sources not available', does this mean that we can decompile other people's Delphi projects? Well, yes and no..
Is true decompilation possible?No, of course not. Fully automated decompilation is not possible - no decompiler could exactly reproduce the original source code. When a Delphi project is compiled and linked to produce a standalone executable file, most of the names used in the program are converted to addresses. This loss of names means that a decompiler would have to create unique names for all the constants, variables, functions, and procedures. Even if a certain degree of success is achieved, the generated 'source code' lacks meaningful variable and function names. Obviously, source language syntax no longer exists in the executable. It would be very difficult for a decompiler to interpret the series of machine language instructions (ASM) that exist in an executable file and decide what the original source instruction was.
Why and when to use.Reverse engineering can be used for a several reasons, some of which are: . Recovery of lost source code . Migration of applications to a new hardware platform . Determination of the existence of viruses or malicious code in the program . Error correction when the owner of the application is not available to make the correction. . Recovery of someone else's source code (to determine an algorithm for example).
Is this legal?Decompiler Programme Delphi
Reverse engineering is NOT cracking, although it is sometimes difficult to draw the fine line between those two. Computer programs are protected by copyright and trademark laws. Different countries have different exceptions to the copyright owner's rights. The most common ones state that it is ok to decompile: for the purposes of interpretability where the interface specification has not been made available, for the purposes of error correction where the owner of the copyright is not available to make the correction, to determine parts of the program that are not protected by copyright. Of course you should be very carefull / contact your lawyer if you are in doubt whether you are permitted to disassemble some program's exe file. Note: if you are looking for Delphi cracks, key generators or just serial numbers: you are on the wrong site. Please bear in mind that everything you find here is written/presented for exploration / educational purposes only.
Decompiling Delphi Program Download
Goto part twoGoto part three
Decompiling executable files, no matter the programming language they have been compiled in, is a tedious job. DeDe (DelphiDecompiler) brags on performing this particular task fast and neat. As no software can retrieve the source code 100% in both consistency and accuracy, any program that can get closer to that perfect score is, indeed, useful.
While it can be used for some illegal activities implying decompilation of projects you don't actually own and use of them to generate income, DeDe is really meant for the recovery of your lost source code, correction of errors, malicious code checking or the application migration to newer platforms.
Code decompilation is based on reversed engineering that cannot create an automated perfect copy of the source because of the conversion operations that take place during the compilation process. Most of the variable names used in the program are turned into addresses. What DeDe does is providing you with the DFM files (containing the details of the objects included in a form) that you can open and edit with Delphi.
It also brings the published methods to the workbench alongside ASM (assembly language) code that features comments and references to classes methods calls, imported function calls, components in the unit or strings. DeDe allows you to generate a Delphi project folder that comprises the retrieved DFM, PAS and DPR files.
The simple interface of the application incorporates a various set of tools dedicated to help you get the most of your Delphi PE executable. You can easily build DSF (DynamicSkinForm) files from your DCU (Delphi Compiled Unit) as well as your BPL (Borland Package Library). DeDe also offers a PE Editor, DOI Builder (Delphi Offset Info) or a RVA Converter (Relative Virtual Address).
Being on of the top picks in its Softpedia category, DeDe has gained its popularity amongst programmers by delivering great results every time it has been called upon. W32DASM may be the leader and the first choice of many; however, DeDe's features and speed of execution just cannot be ignored when looking for a piece of software to analyze and decompile your Delphi executables.