Skip to content

Game symbols v2: destructors, zlib and SQLite

Choose a tag to compare

@Trinculo54 Trinculo54 released this 03 Dec 03:09
a8013d3

The second release of the PDB for forza_durango_release_final.exe, the Forza Horizon 2 build that Azimuth runs
(24 Nov 2015, TimeDateStamp 0x565501ED, SizeOfImage 0x3A18000). It carries the exe's own GUID and age, so tools
accept it as the game's real PDB.

Download: FH2-symbols-pdb.zip (5 MB; the PDB inside is 36 MB). It holds the PDB and a short README. It
replaces v1: same GUID, more names.

New in v2

  • Destructors. Slot 0 of most vtables is the class's scalar deleting destructor. About 7,500 of these now read
    Class::`scalar deleting destructor' instead of Class::vf0. The 1,367 destructors they call read
    Class::~Class, named after the vtable each one stores, so a class with a trivial destructor shows its base
    class's.
  • More library code. 521 functions found by byte matching (v1 had 369), now including zlib 1.2.7 and
    SQLite 3.6.19. Matching is also stricter: functions with the same code but different data are told apart, and
    short matches that could be chance are gone.
  • Stack-cookie checks named by hand: __security_check_cookie, __GSHandlerCheck, __report_gsfailure and
    __security_cookie.
  • The TrackPresentation11 destructor now has its namespace: Presentation11::TrackPresentation11.

What's in it

  • About 224,000 names:
    • RTTI vtables, virtual functions and destructors;
    • exports and imports;
    • "Class::Method" strings the game logs;
    • names gathered from mod source code and notes;
    • standard library, C runtime, zlib and SQLite functions found by byte matching;
    • sub_ names for everything else.
  • Every function's size, so debuggers know where each one ends.
  • No types, local variables or source lines.

Use it

Azimuth maps the game into azimuth.exe by hand, so the game is not a module and no tool finds this PDB by itself.

  • Crash addresses, no debugger (tried): python lookup.py <pdb folder> <exe> 0x1412CC7A0, using lookup.py
    from symbols/.
  • Ghidra (tried with 12.2): import the exe, then put the PDB beside it before auto-analysis, or use
    File > Load PDB File.
  • x64dbg (tried), attached to azimuth.exe with the game running:
    virtualmod forza_durango_release_final.exe, 140000000, 3A18000, then
    symload forza_durango_release_final.exe, <path to the pdb>. Leave with Debug > Detach.
  • lldb on a platform minidump (tried): target modules add the exe, then
    target modules load --file forza_durango_release_final.exe --slide 0, then image lookup -a <address>.
  • WinDbg, IDA (not tried yet): put the PDB beside the exe or on your symbol path.

Chapter 15 of the guide has the
details.

Add names

Found a name? Add it to symbols/names.txt and rebuild with gen.py, or send it as a pull request so the next
release has it.

Checksums (SHA-256)

  • FH2-symbols-pdb.zip: a458feaebcd9845729830054471945380fca6172cd3c89803d612a6d5d1e6d5a
  • forza_durango_release_final.pdb: 40e725825e68833a64d3435cba28a355775f7f8c88a7599969071fbea1998635