Repository navigation
The fifth 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 (10 MB; the PDB inside is 71 MB). It holds the PDB and a short README. It
replaces v4: same GUID, more names, and two faults in v4 fixed.
New in v5
- Guessed names, marked
?. About 15,800 names now end in?, such asAVUI::Object::IsType?and
States::AdvanceIE::Enter?. Nothing in the exe gives these names; they come from reading what the code does.
Treat one as a hint about what the function is for, and check the code before you build on it. A guess is only
used where nothing better is known.- 51 guesses at virtual function slots name about 11,700 functions, because every class derived from the one
named gets the name for that slot: the reflection system'sConstruct?,GetValue?andInvoke?, the UI
library'sGetType?,IsType?,MeasureOverride?andArrangeOverride?,AddRef?andRelease?, the state
machines'Enter?, and more. - 43 single functions, taken from the ones the rest of the game calls most.
- About 280 functions that only return a class's UI type object are
Class::GetStaticType?. - The reason for each guess is beside it in
slots-guess.txt
and
names-guess.txt.
- 51 guesses at virtual function slots name about 11,700 functions, because every class derived from the one
- Shared one-line functions are named by what they do. The linker folded identical functions into one address,
so an empty function orreturn 0sits in thousands of unrelated vtables. v4 gave each one the name of whichever
class came first: the most shared empty function is in 49,481 vtable slots and was called
EntityModel::AIWorldComponent::AIBlockDataLoaded. 215 of these are nowstub_do_nothing,stub_return_0,
stub_get_qword_at_18and so on. - Import thunks fixed. v4 named 717 "import thunks" in the middle of functions, on a tail-call jump one byte
into the instruction. The code after one showed as, say,malloc+Nwhen it belongs to zlib'szcalloc. Those
names are gone, and 50 real thunks that were missed are named,SwitchToThreadamong them. - Five more constructors and destructors, and the virtual functions of
std::error_categoryand the PPL task
base, all certain and so without the mark.
Virtual functions left as Class::vfN drop from 27,669 to 15,776.
Names that change from v4: the 215 shared functions (now stub_...), the 717 thunk names that are removed,
and vfN and sub_ placeholders that now have a real or guessed name. If you would rather have no ? in the
names, set GUESS = "" in gen.py and rebuild.
The weakest guesses
RTTI::ValueandRTTI::TypeHandleare made-up class names: neither has a vtable, so the exe gives none.StateMachine::Behavior::Enter?is a majority vote. The game's own strings say Enter for three classes, OnEnter
for two and Execute for one.CloneCore?andCloneCurrentValueCore?,MeasureOverride?andArrangeOverride?, andadd_PropertyChanged?
andremove_PropertyChanged?are pairs with the same shape. Which is which follows WPF's order.UIPage::OnInitialized?fits what the pages do, but another start-up event would fit too.- The
FMOD::MemPoolnames andFMOD::invokeErrorCallback?were not checked against FMOD's source.
What's in it
- About 417,000 names:
- RTTI vtables and records, virtual functions, constructors and destructors;
- catch blocks and unwind actions, named after their function;
- the methods and properties the game registers with its reflection system;
- 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;
- guesses, marked
?; sub_names for everything else.
- About 79,000 are real names of code and vtables, 108,000 are RTTI records, 89,000 are catch blocks and unwind
actions, and about 16,000 are guesses (12,000 functions, and the catch blocks and chunks named after them). The
rest areClass::vfNandsub_<address>placeholders. - Every function's size, so debuggers know where each one ends. The small functions without unwind data have a
name but no size. - 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 with v5):
python lookup.py <pdb folder> <exe> 0x1412CC7A0, using
lookup.pyfromsymbols/. - Ghidra (tried with 12.2 and v2): import the exe, then put the PDB beside it before auto-analysis, or use
File > Load PDB File. - x64dbg (tried with v2), attached to
azimuth.exewith 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 with v2):
target modules addthe exe, then
target modules load --file forza_durango_release_final.exe --slide 0, thenimage lookup -a <address>. - WinDbg, IDA (not tried yet): put the PDB beside the exe or on your symbol path.
v5 is written the same way as the earlier releases and is the same size as v4. Names ending in ? are new, and
how Ghidra, x64dbg and lldb show them has not been tried.
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. If you know a class's vtable layout, add it to symbols/slots.txt and every class derived from it
gets the names. If you can confirm a guess, move its line from names-guess.txt to names.txt, or from
slots-guess.txt to slots.txt, and the ? goes.
Checksums (SHA-256)
FH2-symbols-pdb.zip:52cfa47fabd3aa26cb5f752b1c1c11da63a48c0c338690644cf0213bded2e752forza_durango_release_final.pdb:fc9ce4f330ba622309f79cfb227d8c484cac66be6b0142be6eed0ebd4035b77d