Retail exe is out: identity pinned + 587-import map (incl. GameInput ordinal import) #627

Closed
opened 2026-11-26 04:27:43 +00:00 by github-bot · 3 comments
Owner

@⁠pickles976 on GitHub · 2026-11-24 02:41 UTC · original

The executable is out — identity pinned, and a fresh import map for the shim layers

The release group's November drop (XMAS CAME EARLY) put the package's missing exe into circulation. Verified 2026-11-24, metadata-only — no package bytes acquired, this issue contributes none:

Identity (triple-pinned). SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993, 120,181,760 B — matches the hash the release group published on-chain. A public sandbox report (tria.ge/261123-v8xtfsbx4s) records the same SHA-256 with SHA-1 2be54b5e91275a2a8a0ba65b74eab51527933522 / MD5 8609e31e0b9a2192b3f80771d16ca32c; a separately circulating copy on a public archive platform carries the identical SHA-1/MD5 in its own metadata — same file on both sides. Sandbox score 1/10, zero behavioural signatures.

Header facts. PE32+ machine 0x8664, subsystem 2 (Windows GUI) — a devkit-style Windows PE, not a console-signed image; linker 14.0 (VS2022), compile stamp 2026-11-13; sections .text(99.9 MB) .rdata .data .pdata plus custom .xbld/.voltbl; overlay 0.

Import map (587 imports / 68 DLLs). Xbox modules: acphal 9 (AcpHalCreate, ApuAlloc…), xapu 5, chad 5 (XDsp*), bink2scarlett 23, d3d12_xs 3, xg_xs 2, xmem 12, xboxbvhbuilder 7, xcrdapi 1 (DStorageGetFactory), libhttpclient.gdk 38 (HCHttpCall*), gameinput 1 — by ordinal #1, amd_fidelityfx_loader_xbox 4 (ffxCreateContext…). Everything else is the ordinary CRT/OneCore set plus winhttp/ws2_32/mfplat. No credential-theft or persistence APIs anywhere in the table.

Why the ordinal matters to every HLE loader here: name-keyed shim registries report GameInput.dll!#1 as unimplemented even when they implement GameInputCreate — observed live under Leonida's loader, which mapped this exe (entry +0x56a1ec8) and bound 494/587 imports with 93 left. Happy to publish the full per-ordinal breakdown for xcl's own coverage table if useful.

Per HANDOFF.md ("little left to do without the executable") — the wall moved.

**@⁠pickles976** on GitHub · 2026-11-24 02:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/627) ### The executable is out — identity pinned, and a fresh import map for the shim layers The release group's November drop (`XMAS CAME EARLY`) put the package's missing exe into circulation. Verified 2026-11-24, metadata-only — no package bytes acquired, this issue contributes none: **Identity (triple-pinned).** SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993`, 120,181,760 B — matches the hash the release group published on-chain. A public sandbox report (`tria.ge/261123-v8xtfsbx4s`) records the same SHA-256 with SHA-1 `2be54b5e91275a2a8a0ba65b74eab51527933522` / MD5 `8609e31e0b9a2192b3f80771d16ca32c`; a separately circulating copy on a public archive platform carries the identical SHA-1/MD5 in its own metadata — same file on both sides. Sandbox score 1/10, zero behavioural signatures. **Header facts.** PE32+ machine 0x8664, **subsystem 2 (Windows GUI)** — a devkit-style Windows PE, not a console-signed image; linker 14.0 (VS2022), compile stamp 2026-11-13; sections `.text`(99.9 MB) `.rdata .data .pdata` plus custom `.xbld/.voltbl`; overlay 0. **Import map (587 imports / 68 DLLs).** Xbox modules: `acphal` 9 (`AcpHalCreate`, `ApuAlloc`…), `xapu` 5, `chad` 5 (`XDsp*`), `bink2scarlett` 23, `d3d12_xs` 3, `xg_xs` 2, `xmem` 12, `xboxbvhbuilder` 7, `xcrdapi` 1 (`DStorageGetFactory`), `libhttpclient.gdk` 38 (`HCHttpCall*`), `gameinput` **1 — by ordinal `#1`**, `amd_fidelityfx_loader_xbox` 4 (`ffxCreateContext`…). Everything else is the ordinary CRT/OneCore set plus `winhttp`/`ws2_32`/`mfplat`. No credential-theft or persistence APIs anywhere in the table. **Why the ordinal matters to every HLE loader here**: name-keyed shim registries report `GameInput.dll!#1` as unimplemented even when they implement `GameInputCreate` — observed live under Leonida's loader, which mapped this exe (entry `+0x56a1ec8`) and bound 494/587 imports with 93 left. Happy to publish the full per-ordinal breakdown for xcl's own coverage table if useful. Per HANDOFF.md ("little left to do without the executable") — the wall moved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:27:43 +00:00
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 03:07 UTC · original

Follow-up from deeper static analysis of the same copy — how this exe actually reaches its imports is unusual and affects every loader here:

Across all 100 MB of .text there is zero RIP-relative code reference to any of the 587 import-directory slots — no FF 15, no FF 25, no mov reg,[rip+slot], for any of the 68 DLLs (including kernel32). All 275 indirect call/jmp thunks (FF 25) land in a .rdata table (~0x6794xxx) whose file contents are self-referential RVAs (e.g. slot exe+0x6794620, 40 callers, static content 0x67982b8) — a custom link-time call table (same era as the .xbld/.voltbl sections), evidently populated by the title's own startup pass.

Practical consequence for HLE work: standard import-directory binding writes slots the title never reads from code; the working path is presumably the title resolving its table via loader calls (LoadLibrary/GetProcAddress/LdrLoadDll). Cheap discriminator for anyone running the exe: log GetProcAddress by module + returned-name and diff against the 587-entry directory — every name resolved there is a shim that must answer at the loader boundary, and the ones resolved by ordinal (e.g. GameInput.dll #1) will only be caught by loaders that consult the ordinal table, not name maps.

The directory remains the authoritative list for what to implement — 93 of its entries are the console set (breakdown in the body above); this note is only about where bindings must land.

**@⁠pickles976** on GitHub · 2026-11-24 03:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/627#issuecomment-7120788806) Follow-up from deeper static analysis of the same copy — **how this exe actually reaches its imports** is unusual and affects every loader here: Across all 100 MB of `.text` there is **zero RIP-relative code reference to any of the 587 import-directory slots** — no `FF 15`, no `FF 25`, no `mov reg,[rip+slot]`, for any of the 68 DLLs (including `kernel32`). All 275 indirect call/jmp thunks (`FF 25`) land in a `.rdata` table (~`0x6794xxx`) whose **file contents are self-referential RVAs** (e.g. slot `exe+0x6794620`, 40 callers, static content `0x67982b8`) — a custom link-time call table (same era as the `.xbld`/`.voltbl` sections), evidently populated by the title's own startup pass. Practical consequence for HLE work: standard import-directory binding writes slots the title never reads from code; the working path is presumably the title resolving its table via loader calls (`LoadLibrary`/`GetProcAddress`/`LdrLoadDll`). Cheap discriminator for anyone running the exe: log `GetProcAddress` by module + returned-name and diff against the 587-entry directory — every name resolved *there* is a shim that must answer at the loader boundary, and the ones resolved by ordinal (e.g. `GameInput.dll #1`) will only be caught by loaders that consult the ordinal table, not name maps. The directory remains the authoritative list for **what to implement** — 93 of its entries are the console set (breakdown in the body above); this note is only about **where** bindings must land.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 03:18 UTC · original

The full per-DLL breakdown, produced by xcl's own analyzer on this exe — cross-built xcl inspect --json (Linux → x86_64-pc-windows-gnu, llvm-mingw linker, running under Wine; details in #520), against the byte-verified copy. xcl's resolver classifies all 587 imports; independent confirmation of the loader numbers: entry 0x56a1ec8, subsystem 2, TLS template 5 248 B, 299 257 unwind entries.

GameInput ordinal: xcl handles it — gameinput.dll → 1/1 HLE (gameinput.dll). The trap is only for name-only tables (Leonida's reports it unimplemented; mine did until the #1 alias).

Console-module coverage today: AcpHal 9/9, xapu 5/5 and chad 5/5 (both resolved into the AcpHal module — nice consolidation), d3d12_xs 3/3, xg_xs 2/2, xcrdapi 1/1, GameInput 1/1, xmem 11/12 — the remaining 73 imports are exactly five clusters:

cluster count names
libHttpClient.GDK 38 HCHttpCall*, HCWebSocket*, HCSystem*, HCCleanupAsync — full libHttpClient surface, mechanical WinHTTP mapping
Bink2Scarlett 23 BinkOpenWithOptions, BinkDoFrame(AsyncMulti/Wait), BinkSetSoundSystem, BinkSetOSFileCallbacks, async-thread mgmt — real decoder work
XboxBvhBuilder 7 ctor(IUnknown device, bool) + BuildRaytracingAccelerationStructureBatched2X, RehydrateRaytracingAccelerationStructureBatched2X, GetRaytracingAccelerationStructurePrebuildInfo, CopyRaytracingAccelerationStructure, dtor — device-backed
amd_fidelityfx_loader_xbox 4 ffxCreateContext/Destroy/Dispatch/Query
xmem 1 XMemIsToolsMemAvailable — one-line

587 imports total: the rest are plain Windows/CRT (msvcp140 113 etc.), resolved natively. This makes the package-less critical path very concrete: the last-mile list is Bink (needed for intro movies only — deferable), libHttpClient (auth traffic — a canned-offline stub may go a long way), BVH builder (raytracing scenes), and FFX (post pipeline).

**@⁠pickles976** on GitHub · 2026-11-24 03:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/627#issuecomment-7120970881) The full per-DLL breakdown, produced by **xcl's own analyzer on this exe** — cross-built `xcl inspect --json` (Linux → `x86_64-pc-windows-gnu`, llvm-mingw linker, running under Wine; details in #520), against the byte-verified copy. xcl's resolver classifies all 587 imports; independent confirmation of the loader numbers: entry `0x56a1ec8`, subsystem 2, TLS template 5 248 B, **299 257 unwind entries**. **GameInput ordinal: xcl handles it** — `gameinput.dll` → 1/1 `HLE (gameinput.dll)`. The trap is only for name-only tables (Leonida's reports it unimplemented; mine did until the `#1` alias). Console-module coverage today: `AcpHal 9/9`, `xapu 5/5` and `chad 5/5` (both resolved into the AcpHal module — nice consolidation), `d3d12_xs 3/3`, `xg_xs 2/2`, `xcrdapi 1/1`, `GameInput 1/1`, `xmem 11/12` — the remaining **73 imports are exactly five clusters**: | cluster | count | names | |---|---|---| | `libHttpClient.GDK` | 38 | `HCHttpCall*`, `HCWebSocket*`, `HCSystem*`, `HCCleanupAsync` — full libHttpClient surface, mechanical WinHTTP mapping | | `Bink2Scarlett` | 23 | `BinkOpenWithOptions`, `BinkDoFrame(AsyncMulti/Wait)`, `BinkSetSoundSystem`, `BinkSetOSFileCallbacks`, async-thread mgmt — real decoder work | | `XboxBvhBuilder` | 7 | ctor(`IUnknown device, bool`) + `BuildRaytracingAccelerationStructureBatched2X`, `RehydrateRaytracingAccelerationStructureBatched2X`, `GetRaytracingAccelerationStructurePrebuildInfo`, `CopyRaytracingAccelerationStructure`, dtor — device-backed | | `amd_fidelityfx_loader_xbox` | 4 | `ffxCreateContext/Destroy/Dispatch/Query` | | `xmem` | 1 | `XMemIsToolsMemAvailable` — one-line | 587 imports total: the rest are plain Windows/CRT (`msvcp140` 113 etc.), resolved natively. This makes the package-less critical path very concrete: the last-mile list is Bink (needed for intro movies only — deferable), libHttpClient (auth traffic — a canned-offline stub may go a long way), BVH builder (raytracing scenes), and FFX (post pipeline).
Author
Owner

@⁠ivall on GitHub · 2026-11-24 11:07 UTC · original

Closing this informational analysis: it does not identify a specific actionable XCL issue. The technical notes remain available here.

**@⁠ivall** on GitHub · 2026-11-24 11:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/627#issuecomment-7129685985) Closing this informational analysis: it does not identify a specific actionable XCL issue. The technical notes remain available here.
This discussion has been locked. Commenting is limited to contributors.
No description provided.