Go Back   EXETOOLS FORUM > General > General Discussion


Thread Tools Display Modes
Old 06-09-2019, 15:27
jonwil jonwil is offline
Join Date: Feb 2004
Posts: 279
Rept. Given: 2
Rept. Rcvd 18 Times in 6 Posts
Thanks Given: 1
Thanks Rcvd at 15 Times in 7 Posts
jonwil Reputation: 18
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?
Reply With Quote
Old 06-09-2019, 16:29
RiRye RiRye is offline
Join Date: Mar 2017
Location: US
Posts: 18
Rept. Given: 0
Rept. Rcvd 2 Times in 1 Post
Thanks Given: 13
Thanks Rcvd at 17 Times in 6 Posts
RiRye Reputation: 2
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.

Last edited by RiRye; 06-09-2019 at 16:30. Reason: Ass -> as
Reply With Quote
Old 06-10-2019, 15:44
Nacho_dj's Avatar
Nacho_dj Nacho_dj is offline
Join Date: Mar 2005
Posts: 193
Rept. Given: 12
Rept. Rcvd 169 Times in 30 Posts
Thanks Given: 25
Thanks Rcvd at 63 Times in 17 Posts
Nacho_dj Reputation: 100-199 Nacho_dj Reputation: 100-199
Check here the Collaborative RCE Tool Library to get two tools more:
Best regards

Reply With Quote
Old 06-10-2019, 20:15
xobor xobor is offline
Join Date: May 2002
Location: Slovakia
Posts: 101
Rept. Given: 6
Rept. Rcvd 4 Times in 4 Posts
Thanks Given: 1
Thanks Rcvd at 5 Times in 4 Posts
xobor Reputation: 5
dede and ida - is all that you need

best regards
Reply With Quote
Old 06-13-2019, 03:12
zeffy zeffy is offline
Join Date: Jul 2017
Posts: 26
Rept. Given: 0
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 110
Thanks Rcvd at 66 Times in 23 Posts
zeffy Reputation: 3
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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT +8. The time now is 07:37.

Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX