Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Reverse engineering Delphi executables? (https://forum.exetools.com/showthread.php?t=19233)

jonwil 06-09-2019 15:27

Reverse engineering Delphi executables?
Does anyone have any pointers on how to reverse engineer Borland Delphi executables? (I dont have a clue what version of Delphi my program was built with). Any files that will help recognize Delphi functions in the exe? Or dump information about forms and units?

RiRye 06-09-2019 16:29

IDR is a good place to start, should do most of what you are looking for that is Delphi specific.


There are also a few IDA plugins/scripts to help you out as well depending on your needs.

Nacho_dj 06-10-2019 15:44

Check here the Collaborative RCE Tool Library to get two tools more:

Best regards


xobor 06-10-2019 20:15

dede and ida - is all that you need

best regards

zeffy 06-13-2019 03:12

IDR can be good for viewing class metadata and generating scripts that can (sometimes) improve IDA results, although they usually need to be manually edited to fix some bogus results.

With IDA I've noticed sometimes it doesn't automatically detect a Delphi executable, so you can improve the analysis by:

- Open the executable but uncheck automatic analysis.
- Options -> Compiler to Delphi with calling convention Fastcall.
- Set the default string literals to Delphi or Delphi (16 bits), depending on how recent the executable is.
- View -> Open Subviews -> Type libraries, remove the defaults.
- View -> Open Subviews -> Signatures, remove the default and add the flirt signatures for your target (for example "bds" for Delphi 6/7), and mssdk32/64.
- Finally, start the analysis.

This can help quite a bit, although the flirt signatures tend to have a lot of false positives for VCL functions, so just be aware.

Coldzer0 06-22-2019 21:22

Check this out

phroyt 06-25-2019 13:41

What I suggest:
- If program is packed, you need to dump first.
- Use IDR autodetect mode.
- Let it take the time needed to recover the unit list
- Try to understand the events and method table

With some luck you can generate the source code for a good amount of routines.

OBS.: Sometimes you need to fix the Entry Point and the Parameters of function prototypes.

Use Resource Hacker to check the procedures binded to events on forms and their components.

All times are GMT +8. The time now is 14:01.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX