Delphi: Decompiler Dede
DeDe is a specialized reverse engineering tool that targets the unique architecture of Borland Delphi executable files ( .exe , .dll , .bpl ). Delphi applications are compiled directly to native machine code, making them difficult to analyze with standard decompilers. DeDe solves this by parsing the executable's internal structures to reveal how the application was built. Key Capabilities
class ComponentType(Enum): TFORM = "TForm" TBUTTON = "TButton" TEDIT = "TEdit" TMEMO = "TMemo" TLABEL = "TLabel" TCOMBOBOX = "TComboBox" TLISTBOX = "TListBox" TCHECKBOX = "TCheckBox" TRADIOBUTTON = "TRadioButton" TPANEL = "TPanel" TMAINMENU = "TMainMenu" TTIMER = "TTimer" UNKNOWN = "Unknown"
for offset in range(start, end): if offset + 1 >= len(self.file_data): continue
Can create a partial Delphi project folder containing forms ( .dfm ), assembly code ( .pas ), and the project file ( .dpr ). How Dede Works
# Detect component end elif line.upper() == 'END': if indent_stack: indent_stack.pop() current_component = indent_stack[-1] if indent_stack else None
Dede acts as an analyzer rather than a full source-code reconstructor. It cannot recreate the original high-level Pascal code, but it provides the next best thing. delphi decompiler dede
Identifies Try-Except and Try-Finally blocks, helping to reconstruct program flow.
When analyzing an unknown Delphi binary with DeDe, a typical workflow looks like this:
: It identifies specific methods linked to UI buttons and actions (e.g.,
return mapping.get(type_upper, ComponentType.UNKNOWN)
While DeDe has not seen official updates since the early 2000s, it still enjoys a loyal following among legacy Delphi analysts. Its peak period of use coincided with the Delphi 5–7 era, but it remains a valuable reference for reverse engineering older Win32 binaries. DeDe is a specialized reverse engineering tool that
DeDe provides assembly code for the core logic rather than the original Pascal source.
: The tool can generate a Delphi project folder containing retrieved DFM, PAS, and DPR files, though the PAS files contain the aforementioned ASM code rather than high-level logic. Technical Utilities :
Without a dedicated tool, opening a Delphi binary in a standard disassembler like IDA Pro looks like a massive, chaotic sea of native assembly code. This is where DeDe changes the game. What is DeDe?
The DeDe Delphi Decompiler is a foundational tool for analyzing legacy Object Pascal binaries. By extracting visual forms, mapping event handlers, and utilizing RTTI data, it transforms chaotic assembly into an organized architectural map. While modern, updated binaries require newer tools like IDR, understanding DeDe provides essential insight into the mechanics of Delphi reverse engineering. If you want to dive deeper into this topic, let me know: Do you need a comparison with like IDR? Share public link
The DeDe interface is split into several tabs, each serving a specific reverse engineering purpose: its application may violate software licenses
Identify the visual component responsible for the action you want to analyze (like a "Submit" button). Look at its events to find the exact memory offset of the executing code.
Allows modification and recompilation of form files.
Reverse engineering occupies a legally gray area in many jurisdictions. While DeDe itself is a tool with legitimate uses, its application may violate software licenses, copyright laws, or anti‑reverse‑engineering clauses in end‑user agreements. It is your responsibility to ensure that your use of DeDe is lawful and ethical.
Considered by many to be the spiritual successor to DeDe. IDR handles newer Delphi versions much better and executes profound analysis of internal knowledge bases to resolve VCL methods.