aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


docs/binary-inventory.md (14610B)


Target binary inventory

This is the historical 13.2 inventory. The selected target's inventory is Anarchy Online 14.9.1.

Inspected 2026-10-14. The selected installation is client-target, whose verified version marker is 13.2, not the pristine 11.0 CD installation and not a verified 13.24 build. See versions and patches. The recursive inventory finds 51 EXE/DLL files, all at the installation root. All are x86 PE32 (Machine=0x14c, optional-header magic 0x10b). Original files were only read.

Reproduction and scope

Run python tools/client/inventory.py with pefile installed. The environment used for this report has a stale venv executable; this command uses its installed packages with the available bundled Python:

$env:PYTHONPATH='C:/path/to/ao/venv/Lib/site-packages'
& 'python3' tools/client/inventory.py

The generated, local-only local/client/inventory.json contains every import and export name/ordinal/address, forwarded exports, normal and delay dependency edges, PE directories, section sizes/flags/entropy, compiler clues, and SHA-256 identities. This run used pefile 2024.8.26; the script records its version in the JSON. No game code or assets are included in this document. Import dependencies are static evidence; they do not prove that every imported API executes. DLL-name strings and loader imports are hints, not a complete dynamic-load graph.

First reconstruction candidates

Module Size Exports Boundary and limitation
dr.dll 20,480 4 MD5Init, MD5Update, MD5Final, updcrc; five CRT/Kernel imports and no static game-DLL dependencies. Strong isolated differential-test candidate, but no inventoried module statically imports it.
yr.dll 20,480 1 linecrypt; seven CRT/Kernel imports. Also has no static importer in this inventory.
hr.dll 20,480 21 WrapperTime_t and DeltaTimer_t; timeGetTime, CRT and Kernel imports. Imported by aar.dll, er.dll, kkr.dll, so a replacement can exercise the actual game dependency graph. Requires C++ member ABI and floating-point behavior.
tr.dll 20,480 14 Call-stack classes, vtables and a global singleton; imported by sr.dll. Adds data exports and C++/SEH dependencies despite its size.
ir.dll 24,576 2 answer_challenge, encrypt; imported by ddr.dll. CRT and WSOCK32!htonl; more external state than the hash routines.

dr.dll export RVAs are updcrc=0x1000, MD5Init=0x1040, MD5Update=0x1070, MD5Final=0x1130; preferred base 0x10000000. Its imports are malloc, free, _initterm, _adjust_fdiv, and DisableThreadLibraryCalls. An isolated test of it must not be described as a verified game launch with a translated DLL.

Game and platform boundaries

Clientr.exe is the small game bootstrap; Anarchy.exe is the launcher. The existing client behavior documents the game process's positional connection arguments. The largest game modules are kkr.dll (1,843,200 bytes), bbr.dll (1,720,320), ddr.dll (659,456), and llr.dll (446,464). bbr.dll exposes the rendering classes and imports DirectDraw; ddr.dll, ffr.dll, er.dll, and ACE expose networking dependencies.

Boundary Observed evidence
Graphics bbr.dll imports DirectDrawCreate, DirectDrawCreateEx, DirectDrawEnumerateExA. Existing analysis of this same hashed image establishes DirectDraw7/Direct3D7 GUIDs, device exports, and COM call sites; see recovered Direct3D contract and graphics discovery callbacks. An import table alone would not identify the interface version.
Audio mmr.dll and pr.dll import Miles Mss32.dll; Miles imports wave/MIDI/mixer WINMM APIs and has DSOUND.DLL plus loader strings. DirectSound is a dynamic-loading candidate, not a traced call in this inventory.
Input/windowing Clientr.exe imports CreateWindowExA, the Win32 message loop, GetAsyncKeyState, GetCursorPos, and SetCapture. No EXE/DLL statically imports DINPUT; this does not exclude a dynamically loaded path.
Networking ACE imports Winsock2 socket, send/receive, event and overlapped-I/O APIs plus MSWSOCK!AcceptEx/TransmitFile; several game modules import Winsock directly. nr.dll imports byte-order helpers, not socket operations.
Filesystem bbr.dll imports file creation, size, mapping and unmapping; other modules import CRT file operations.
Threads/synchronization ACE imports _beginthreadex, thread control, events, mutexes and critical sections; llr.dll imports critical-section operations.
Time hr.dll and er.dll use timeGetTime; pr.dll also uses timeSetEvent/timeKillEvent; bbr.dll imports performance counters.
COM Graphics calls use COM vtables; launcher/patcher/tool modules import OLE libraries. Preserving vtable layout and native callbacks matters even where no CoCreateInstance import exists.
Exceptions Clientr.exe, bbr.dll, kkr.dll, llr.dll and other game modules import __CxxFrameHandler and/or _except_handler3; Clientr.exe installs an unhandled-exception filter.

An abbreviated static dependency graph follows. Arrows mean PE import-table edges; the JSON retains all edges and symbols, including cycles.

graph TD
    Clientr[Clientr.exe] --> ddr[ddr.dll]
    Clientr --> bbr[bbr.dll]
    Clientr --> ccr[ccr.dll]
    Clientr --> eer[eer.dll]
    Clientr --> ffr[ffr.dll]
    Clientr --> mmr[mmr.dll]
    Clientr --> ace[ace.dll]
    ddr --> ir[ir.dll]
    ddr --> er[er.dll]
    eer --> kkr[kkr.dll]
    eer --> llr[llr.dll]
    kkr --> bbr
    kkr --> hr[hr.dll]
    er --> hr
    aar[aar.dll] --> hr
    Clientr --> aar
    ffr --> nr[nr.dll]
    nr --> ace
    mmr --> pr[pr.dll]
    mmr --> miles[Mss32.dll]
    pr --> miles
    bbr --> ddraw[DDRAW.dll]
    ace --> winsock[WS2_32.dll]
    ddr --> winsock

LoadLibraryA and GetProcAddress occur in ACE, Miles, launcher/patcher, runtime and utility modules. ar.dll imports GetProcAddress alone. No game module has a nonempty delay-import directory; mfc42.dll does. Runtime tracing is required to resolve names built at runtime and callbacks invoked through loaded modules.

Compiler, layout, and reconstruction risks

48 modules advertise linker 6.0; the remaining versions are 2.55, 5.12 and 6.20. Game C++ exports are Microsoft decorated names and commonly import MSVCRT/MSVCP60. These strongly suggest Visual C++ 6-era ABI dependencies, not a guarantee that every function was built by one exact compiler. The distribution includes release/debug ACE and CRT variants. Embedded PDB path strings in runtime libraries include vc98; aced.dll names C:\Work\Anarchy\external\ACE_wrappers\ace\aced.pdb.

Game DLLs have base-relocation directories and many use preferred base 0x10000000; simultaneous loading necessarily relocates colliding modules. The replacement cannot assume every pointer is a fixed preferred address. Decorated function names, thiscall register arguments, x87 returns, C++ exceptions, CRT object ownership, data exports, vtables, and callbacks must survive cross-module calls. Several modules export hundreds or thousands of symbols. Preserving import/export names alone does not preserve the ABI.

No module has a nonempty PE TLS directory. That does not exclude runtime thread-local storage. Anarchy.exe, both patcher copies, dxdiag.exe, SpeedRead.exe, and intro.exe have no base-relocation directory.

intro.exe is a clear packing outlier: sections UPX0/UPX1 are writable and executable, UPX1 entropy is 7.924 bits/byte (rounded), and it has a 28,261,376-byte overlay. No other inventoried section is both executable and writable, or executable with entropy above 7. This is not proof that the remaining modules have no packing or self-modifying code; that requires code and runtime analysis. Large zero-filled areas trigger pefile warnings on small game DLLs, and aced.dll has abundant 0xcc bytes. These heuristics alone do not establish malformed binaries.

Complete file identities

Times below are the PE COFF timestamps in UTC, not filesystem modification times or independently verified release dates. Imports/exports are fully enumerated in the local JSON; the export count includes data exports.

Module Bytes PE timestamp (UTC) Exports SHA-256
aar.dll 98304 2001-11-22 12:41:53 193 354f92be881498b731e4298b60c7062a2abc84283b6790ccad05ddc849d4d411
ace.dll 1171456 2000-04-25 12:29:23 5397 a1a0d96a5ff605f6611b8584204dad855914b1cbeedc0389f3a68279e015c22d
aced.dll 1790019 2000-04-03 16:05:40 5424 e94315a8e72677cba67a49c7b897f07537f58648f7f0a2daf82d478e29302dfa
acemfc.dll 1175552 2000-11-13 12:16:53 5397 f0a1ab1d8a8e10e8809e4db8dbe6de09a12ee1637a5480b3d739cabe6ee0eb85
Anarchy.exe 614400 2001-11-19 11:08:50 3 c6a2cf31836c81e34c6c55f377ac651b5e2dacee45d79aec8045974bd9eacb6d
AnarchyPatcher.exe 798720 2001-11-13 15:49:02 1 c14fa8be29c2b4d052f863aaeb7ff5c0c3de2d6291f33511cf7b3d07a4d303bf
ap.exe 798720 2001-11-13 15:49:02 1 c14fa8be29c2b4d052f863aaeb7ff5c0c3de2d6291f33511cf7b3d07a4d303bf
ar.dll 65536 2001-11-21 09:08:23 91 fd670f029bca56f03178d13fb95549cced5173d07242195b787bbf9a6de2c307
bbr.dll 1720320 2001-11-26 14:49:22 3739 0c61958075bb39a1848736aa515d81fd0830dfab706c2896d99d5d6ded45823d
br.dll 32768 2001-11-21 09:09:05 96 77cd07df6fce686bffc0fa124f0194178e0c38360dd6fa3025a3ebd5f0d89e78
ccr.dll 266240 2001-11-27 11:36:56 777 36f6ac506b254d94f77485c8ad18c9b032aaeb63e497d299dd9f47b2186de54f
Clientr.exe 49152 2001-11-27 11:37:35 0 1bc236ced3a56a575c03a98579ea3f5e0eca878d3fadf2eebe864e2d7861135c
cr.dll 24576 2001-11-21 09:08:38 84 ea4b87a20b4700dc71b216024e44c536deb24be07ed41e0301bcc07fe50db3d6
ctreestd.dll 323584 1999-01-21 14:58:03 207 727ef5cc050ee5fc519e5f9a0cc2bb819a54f5eed0aac990d97a678b427b3fd5
ddr.dll 659456 2001-11-27 11:37:12 772 5a985f040d0aff34b31ec7083c4a1b75f322498db0bb54ff940fbb8f9691d736
dr.dll 20480 2001-11-21 09:09:27 4 e43d7323092d4b6ce6039a787ab4925621ad09ff2775728d8bd33356f93faa0a
dsetup.dll 44544 2000-10-25 20:48:34 16 6a47422832cd4889bd8bfcf2322952aab7856e62d458f221bb0b6146b27e1a44
dxdiag.exe 1558288 1999-09-09 00:03:26 0 b675d31ef17b0da259f3f90db1d0e17e4e2b144c01d2acae89fdeac33e7a88de
eer.dll 106496 2001-11-27 11:36:52 343 51aad8ccf356b84f160fc4cd21554fd7ca51c44b2a0c83cfd04457abeeac6ae5
er.dll 118784 2001-11-22 12:41:40 193 b7f1bc2a137c1a0f33c37ce738f55aa53a2464b1d4e53ffbc2203ffe98a4c37b
ffr.dll 110592 2001-11-26 14:49:48 190 ce23256643e4a7c04007409bbc1ab9c1818de7c2cb9d24bd58196e56ab436c38
ggr.dll 131072 2001-11-26 14:49:45 229 516dfd54afc8e79dbdee8fae7a6eeebdf8081f29366f7adea1e51c8303ab0e96
hhr.dll 73728 2001-11-22 12:42:09 169 86d7e84bb92752f8ce50e256aa633661152e5b6f7481065389c28f171306e3d4
hr.dll 20480 2001-11-21 09:08:35 21 eaf5dcd428234a395245aedc1f77098e7774cc8fec01914c4bec87ca89192078
iir.dll 20480 2001-11-26 14:52:43 18 b8aa8b3cdd35f2434e2af46d5d65ecbb4316dd52b736a5dc34a5f406f9daecc3
intro.exe 28382720 2001-02-18 01:55:03 0 0e23f498323ca7bafb9c1da11760df3a4c9d51d04411ca41767305358cfa7135
ir.dll 24576 2001-11-21 09:09:29 2 1270dbc45b92f71044346059251b9053de2953f278a97aa8ac3d501ae3ec5e97
jjr.dll 28672 2001-11-26 14:52:35 41 78c191f485c034b4ed0e88613cf04a962cfbe74f7ace346a7f3eb28a66c5d0e3
kkr.dll 1843200 2001-11-27 11:35:54 713 b0e0173b5dbe129c6ad53eadd4467a0f53796993e613fecb9b2aaa6fc9a403ac
kr.dll 143360 2001-11-21 09:08:52 240 ee45dde28414bb3f1477676bdf92ed52a58f9b5f4af4ad71315e53a00c5b34f8
llr.dll 446464 2001-11-26 14:49:53 1128 de8065b9f69726c0272c799d67ff764b47fbb6054adf992e50ac209283450ae2
lr.dll 61440 2001-11-22 12:41:24 49 348d6e3b99ae9cd3c3abe436a3a1fabd3703137a4979443def60377fe472bf96
mfc42.dll 995383 1998-09-26 17:45:26 6388 0bd4d2b2fab316e2b6167cba5029721eb5848087645ef44f2ccb09f1108383fd
mmr.dll 57344 2001-11-26 14:49:49 76 2d5c75d0b1817beaa989df532fbc51f1c46acd9328dc51faa4696251d0975365
mr.dll 40960 2001-11-21 09:08:59 143 f2057e6b18a6b2488d1bde3c63539a5e3ff1e3ce5388b57275028093abceced6
Mss32.dll 349184 2000-10-23 20:29:32 336 24c0a90dbff552102c09f671853e7247cf20de6e845254d5db625de961e4ae94
MSVCP60.DLL 401462 1998-06-17 18:52:10 2104 2b6b93c2d66969eb00258e2b5ad6172decebada096e3b1b077a3380c80e4a072
msvcp60d.dll 516173 1998-06-17 16:26:48 2104 68deb8cad3c055beebd3748aaed06e8ad4a365c18ac198ac6bc7c3ac7cd3496f
msvcrtd.dll 385100 1998-09-25 05:15:59 792 5c9066f82a8f8c9492d8605c7108ca3b10b959873a70813d17a52a26e97aac4d
nnr.dll 61440 2001-11-26 14:49:43 98 a2bb9298c3dc1845557ba88591a0b3766b9b4dc91ced16a45078274fc793bc37
nr.dll 53248 2001-11-22 12:41:38 169 2ac46ad1b145b8993d3afd46d002722019343c20d37bf2949309eaaf69bf24a2
oor.dll 40960 2001-11-27 11:36:59 48 cb056a9f374289ada6dd282a2773f8f60ad5db6e23f3fdc458b2ceee08585cab
or.dll 28672 2001-11-22 12:41:17 25 352559f6a57988f9c81c48e1ccb3dd72d6859e6cdba6315e17ec19850012ed73
PATCHW32.DLL 181760 2000-02-29 18:41:23 12 1a04c2c849c67c38319f3c267bc656061a30cab9f9149b5efb086b20cb83bf1c
ppr.dll 110592 2001-11-22 12:42:50 71 c0287692f30405ecd22014b01f481e0178a3e44737297bf66fb507200bfe2ccf
pr.dll 94208 2001-11-21 09:10:01 146 6231f5670d32fffee0497989d703c79cf5945eb4cb620cc0bec6795e05ed0195
qqr.dll 143360 2001-11-26 14:49:41 473 e3359e16eff793e179f5cac880135c0e18361a60a9721eb4ec48167ed5cbddc4
SpeedRead.exe 57344 2001-11-14 08:18:46 55 7066c630b03938c3bbe9c24938a5a539063a9ad716bf8dcd00bf8560d9486e40
sr.dll 28672 2001-11-21 09:10:16 56 b7bb7ebd8cf1ca4c4ba37b8af1d7173b2427e6f337659e4d6a2f9a86895ca68c
tr.dll 20480 2001-11-21 09:10:10 14 bcbac8fa15eb072a60eab0595922990f6047d689202f07cf49092ba538b383a0
yr.dll 20480 2001-11-21 09:09:43 1 2e5f8e5496bf9d91286b9e2b04c6831dfb15625705aab250d4480f997b9f8126