Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a program to decompile Delphi? [closed]

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.

There was one big problem, though. I happen to know that the program he was decompiling was written in Delphi, which is full of concepts that are difficult to translate into C. But I was really impressed by the decompiler's output, and it made me wonder. Is there anything that can do that for Delphi?

The best decompiling tool I've seen for Delphi is DeDe. It can do a lot of things, but it doesn't even try to produce Object Pascal code as its output, and it hasn't been updated since Delphi 6. Is there anything better out there?

like image 749
Mason Wheeler Avatar asked Dec 02 '08 19:12

Mason Wheeler


People also ask

Is decompiling code possible?

It is also not possible to decompile all programs. Furthermore, it is not easy to separate data and code because both are represented similarly in most current computer systems. A type of reverse engineering, a decompiler performs the opposite operations of a compiler.

Is it possible to decompile binary?

In certain scenarios, yes you can get the original or near original set of code back from an executable or script. Certain development platforms are easier to do what is called decompiling.

Can you decompile third party software?

Can you decompile the third party code to remove the bug? a. Yes, I can decompile the code as the delay may result in an escalation by the client.

Is it possible to decompile C code?

No, it is not possible to decompile back to C. The best you can do is get the assembly code. Since you lost the source code (and that happened to me a couple times too!) you will just have to rewrite it.


2 Answers

I don't think there are any machine code decompilers that produce Pascal code. 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).

like image 86
Vladimir Panteleev Avatar answered Oct 23 '22 03:10

Vladimir Panteleev


You can use IDR it is a great program to decompile Delphi, it is updated to the current Delphi versions and it has a lot of features.

like image 25
Hanan N. Avatar answered Oct 23 '22 02:10

Hanan N.