DE Decompiler 26.8: From Analytics to Symbolic Tracing
When you open a compiled VCL application with hundreds of procedures, the first question is often where to look. Once you find a relevant procedure, the question changes: which instruction, branch or value supports your reading of it? DE Decompiler 26.8 adds two ways to answer those questions. The Analytics Report helps narrow the search across an application. Tracing follows the evidence for a statement at a selected machine-code address.
This walkthrough uses Catalog Review, a small Delphi Win32 VCL application built for the example. The task is to find the code that checks the catalog index and determine what the status label can display. Everything shown here comes from static analysis of the executable.
Download Catalog Review (Win32 EXE and Delphi source, ZIP). The ZIP contains the exact executable used below and its Delphi source. Open the EXE in the decompiler to reproduce the analysis without running it.
1. Find the procedure in Analytics
Open the executable in the Analytics edition and analyze it with procedure processing enabled. Select Analytics in the project tree and choose Grouped view. The report sorts recognized activity into categories such as Working with files and Working with registry. Start with the filename catalog-index.txt. The procedure name and its string references distinguish the index check from other routines that handle catalog files.
Under Working with files, choose TfrmCatalogReview.btnReviewClick_5E8184. The report lists the filename at 005E81D0 and the two captions at 005E8200 and 005E823C. All three addresses point to strings in the executable image.
String references are expanded by default in Grouped view. Use Search in a long report, switch to Compact view for a denser overview, or choose Report text for keyboard navigation and copying. The selected view is remembered. Double-click the procedure to open its code. After inspecting it, use Back or Esc to return to the same report position.
See the same report in Compact view
2. Follow the file check into the recovered code
Read the statements around the file check before interpreting a string reference. In this example, GetFileAttributesW reads attributes for catalog-index.txt. The conditional compares the result with $FFFFFFFF, the failure sentinel for that Win32 API. One branch sets the VCL status label to Catalog index is ready. The other sets it to Catalog index was not found.
The two strings describe what the program displays. A failure from GetFileAttributesW can have several causes, so the second caption alone is insufficient to establish that the file was absent. The call and the comparison establish precisely what the application tests. An actual file path or a run-time result would need separate evidence.
The recovered handler begins at 005E8184. The ready caption assignment is at 005E81B1. Make a note of both addresses so you can distinguish the procedure entry from the call site you want to inspect.
3. Trace the value passed to the label
If instruction addresses are hidden, enable Add Addresses in Tools → Options. Put the caret on the address of the assignment with the ready message and press F4 or choose Trace to this address. The Tracer window puts the reconstructed statement beside the available register, variable and stack information. Resize the window or move the dividers to read long values. Use Search to locate a variable and copy a complete value for your notes.
At 005E81B1, the tracer identifies the call as TControl.SetText. In this Win32 listing, EAX holds the receiver Self.lblStatus and EDX carries the UnicodeString literal Catalog index is ready from $005E8200. In Variables, fileAttributesW points back to the earlier call to GetFileAttributesW. The conditional in the listing ties that result to the selected caption.
Read the origin and evidence alongside each value. A literal recovered from a binary address gives a different kind of evidence from an inferred type or an entry register whose value is unknown. The Next button moves to the next available analysis step. The tracer reconstructs a symbolic state from the executable and the selected procedure. A branch that depends on data available only at run time remains conditional.
How to read the rest of the report
Analytics 26.8 recognizes more Windows API and Delphi runtime calls and includes more private procedures when fast decompilation is enabled. The network categories are a useful example of its approach. An identified socket import, including one imported by ordinal, or a recognized HTTP or socket-library call can provide direct evidence. Supported calls through dynamically loaded API addresses can also be identified. The separate possible-network category shows the calling paths and evidence when the analysis can only establish a candidate. Similar method names alone carry less weight.
Use the category to find a procedure, the references to find an address and the listing or disassembly to check the call path. Large reports now keep the results already collected and display a notice when some routines or results could not be analyzed. Treat that notice as a limit on the coverage of the report.
What changed in native-code recovery
- Branches and loops. Win32 and Win64 recovery keeps more values tied to the branches that produce them. Nested counters, pointer advances, early exits and shared cleanup are represented more faithfully. Compound conditions preserve the order of short-circuit tests and the memory reads they guard. Updates in
repeat..untilloops are less likely to disappear or be shown twice. - Types, arithmetic and data. The engine retains more signedness and width information for integer overflow, division, remainder and wide values used in Win32 code. It also keeps floating-point results through later operations. More Unicode and ANSI string operations appear as source-like expressions, and dynamic arrays retain element types, bounds and indexed accesses more accurately. Typed-file operations preserve record size and source or destination.
- Classes and calls. More Delphi class metadata now contributes parameter passing modes and return types, including metadata from both method tables. Class views expose dynamic dispatch selectors and targets, implemented interfaces and the offsets and types of managed fields. Constructors, virtual calls, string results and WinAPI output buffers are recognized more accurately. This reduces cases where a reused result appears to make a second call or an unrelated register becomes an argument.
- Classic C++Builder. Version 26.8 recognizes more Win32 VCL executables built with the classic compiler in RAD Studio 13. Listings recover more Unicode string operations,
Trimresults and cleanup paths. The recovered code is shown in Delphi-like Pascal. C++Builder code decompilation covers compatible classic Win32 builds and Delphi code decompilation covers Win32 and Win64.
These changes are visible at familiar call sites. In supported Win64 patterns, LeftStr and RightStr retain the input string and character count. A recovered Length or High can make an array bound readable again where the relationship is established. In Win32, more uses of TBinaryReader.ReadString and FormatFloat keep the returned string connected to the next statement that uses it. API calls that write text preserve the distinction between ANSI and Unicode buffers, including later reads from the same buffer.
Code recovery in larger Delphi procedures
In the Win32 Batch Review example, TfrmBatchReview.InventoryClick reads each measurement through Self.Reading and advances the index before evaluating the record. The recovered repeat..until shows which path ends the scan with Break, which paths continue with the next record, and which values feed the count, sum and maximum. The handler then converts the results to status messages with IntToStr.
TfrmBatchReview.ReviewClick shows how one API result drives several decisions in a longer handler. The listing retains the return value of GetFileAttributesW, first checks its failure sentinel $FFFFFFFF and then tests the directory and read-only bits. The recovered case shows the four possible messages, including the ready message that uses the filename read earlier.
Forms, navigation and large binaries
VCL previews now retain more of the saved DFM state: dates and times, tree nodes, list rows and icons, database-grid columns, button glyphs and action-driven properties. Menu previews preserve checked, disabled and hidden states and lead back to the associated handlers. The update also improves Japanese captions in older forms and handles more bitmap variants and partially damaged resources so the rest of the form stays available.
Private-procedure discovery, repeated decompilation and export to a single Pascal file are faster in the cases targeted by this release. More complex procedures use less temporary memory. The HEX Editor can navigate by virtual address or file offset. The optional MCP plugin handles Unicode text, function reads and error reporting more reliably. Stability fixes cover low-memory recovery, prefixed machine instructions, tracing errors and online database setup on Windows 7.
Choose an edition for the task
Free Lite lets you inspect VCL forms, native disassembly and string references. Standard adds high-level code recovery. Tracing adds the symbolic tracer, and Analytics includes Tracing and the Analytics Report. Use the same file to compare what each level of inspection adds to your investigation.
Download Free Lite · Compare editions · Tracing manual · Analytics manual · Full changelog