Commit Graph
87 Commits
Author SHA1 Message Date
ulw-execute be7cb23bca feat(libafp): reconstruct+verify wave 3 batch2 4 functions 2026-11-29 06:35:31 -05:00
ulw-execute 2c2906106d feat(libafp): reconstruct+verify wave 3 batch1 5 functions 2026-11-29 06:33:58 -05:00
ulw-execute a10e45321b feat(arkkdm): reconstruct+verify wave 3 13 functions 2026-11-29 06:22:11 -05:00
ulw-execute b7fd75ca17 claim(arkkdmtest): wave 8 fp/container/iterator leaf shard orig->reimpl (18 rows) 2026-11-29 06:19:21 -05:00
ulw-execute 4ec9b20d90 feat(gamekdm): reconstruct+verify wave 2 19 functions 2026-11-29 06:19:13 -05:00
ulw-execute 589f7525b4 feat(arkkdmtest): reconstruct+verify wave 7 18 functions 2026-11-29 06:12:48 -05:00
ulw-execute c93893bc26 claim(arkkdmtest): wave 7 dispatch/container leaf shard orig->reimpl (18 rows) 2026-11-29 06:03:57 -05:00
ulw-execute 405fab4435 feat(libavs-ea3): reconstruct+verify wave 3 9 functions
Part A (wine differential): __aulldiv/__allmul/__aullrem 64-bit MSVC arithmetic intrinsics + 4 EAX-input struct accessors (FUN_10010140/100315a0/10030e00/10030e10). Part B (import/indirect-call harness): __initterm_e indirect-call initializer-table walker and __mtinitlocks owned-global-region lock-table init. All channels exact, per-function injected-bug non-vacuity, globals-first satisfied. Flag 0x219e/0x18a3/0x1878 as [~]-candidate. Coverage 41/1147.
2026-11-29 06:03:34 -05:00
ulw-execute f445abd537 feat(arkkdmtest): reconstruct+verify wave 6 18 functions 2026-11-29 05:49:12 -05:00
ulw-execute fe755498ec feat(arkkdm): reconstruct+verify wave 2 12 functions 2026-11-29 05:47:31 -05:00
ulw-execute c969a50091 claim(arkkdmtest): wave 6 tree/container leaf shard orig->reimpl (18 rows) 2026-11-29 05:36:31 -05:00
ulw-execute b11d3d26c1 claim(libafputils): wave 3 package/image/layout shard orig->reimpl (13 rows) 2026-11-29 05:30:06 -05:00
ulw-execute 9e3b64df4a feat(arkkdmtest): reconstruct+verify wave 5 17 functions 2026-11-29 05:25:47 -05:00
ulw-execute d7e3066d97 feat(libafputils): reconstruct+verify wave 2 17 functions
Wave 2 on libafputils-win32.dll: the leaf-first package-registry and
sprite-container shard the wave-1 pure-buffer differential deferred. Each
function is reconstructed as MinGW C++ and verified by the T1 Unicorn-vs-wine
differential on identical fixture bytes, with injected-bug non-vacuity.

The differential materializes the package registry, package structs, dependency
arrays, texture records, and sprite buffers in one shared region, so pointers a
routine returns or writes are compared as region-relative offsets (the Todo-23
same-image pointer channel) rather than cross-base absolutes. The side-effect-only
libavs logger (#356) and fatal (#359) are stubbed to return, and memcpy (#228) is
modelled as an exact copy; all are faithful for the compared observables.

Functions (orig -> verified), fp_model=none, portability=port:
  0x1bb4 afpu_swap_sprite_container        0x32d0 afpu_relocate_sprite_container
  0x3c48 afpu_package_depends_on           0x4440 afpu_package_resolve
  0x486c afpu_package_set_sys              0x4894 afpu_package_is_sys
  0x48cc afpu_package_set_info             0x48f4 afpu_package_is_info
  0x4964 afpu_package_is_info_from_index   0x4e80 afpu_package_check_depend
  0x5174 afpu_package_set_weak             0x5468 afpu_texture_index_to_record
  0x5508 afpu_texture_record_at            0x5550 afpu_texture_find
  0x5644 afpu_texture_resolve              0x56e4 afpu_copy_info
  0x59dc afpu_copy_info_body

Deferred (orig): 0x44cc / 0x4510 read the external libavs comparator #221, whose
body is absent from the oracle image and cannot be faithfully modelled.

Coverage: 32/577 verified. Recovered AfpuPackage / AfpuSpriteHeader layouts
recorded in the struct DB.
2026-11-29 05:16:13 -05:00
ulw-execute ce401e91c0 feat(libavs-ea3): reconstruct+verify wave 2 13 functions 2026-11-29 05:11:07 -05:00
ulw-execute 08a866900d claim(arkkdmtest): wave 5 leaf+tree shard orig->reimpl (17 rows) 2026-11-29 05:09:01 -05:00
ulw-execute c030bd0631 feat(libafp): reconstruct+verify wave 2 14 functions 2026-11-29 04:53:17 -05:00
ulw-execute 9040091e68 claim(libavs-ea3): wave 2 CRT/SEH/TLS leaf shard orig->reimpl (20 rows) 2026-11-29 04:52:28 -05:00
ulw-execute b2cf140a54 feat(arkkdmtest): reconstruct+verify wave 4 14 functions
Wave 4 on arkkdmtest.dll: a bounded leaf-first shard of 14 pure internal leaves
(zero callees, zero globals) reconstructed as MinGW C++ and verified against the
shipping binary via the T1 faithful differential, with per-function injected-bug
non-vacuity and the globals-first gate.

Functions (orig -> verified), fp_model=none, portability=port:
  0x10003c10 WordNotEqualB   __thiscall ret 4  *self != *other (AL)
  0x10003c30 SetHeadPointerC __thiscall ret 8  *self = value (2nd arg ignored)
  0x10003e90 StorePair       __thiscall ret 8  self[0]=*a, self[1]=*b
  0x10003cf0 ReturnArg3cf0   __cdecl           return first arg
  0x10003d00 ReturnArg3d00   __cdecl           return first arg
  0x10003d10 ReturnArg3d10   __cdecl           return first arg
  0x10003d20 ReturnArg3d20   __cdecl           return first arg
  0x10003e70 ReturnArg3e70   __cdecl           return first arg
  0x10003e80 ReturnArg3e80   __cdecl           return first arg
  0x10003eb0 ReturnArg3eb0   __cdecl           return first arg
  0x10003ed0 ReturnArg3ed0   __cdecl           return first arg
  0x10003ef0 ReturnArg3ef0   __cdecl           return first arg
  0x10003f00 ReturnArg3f00   __cdecl           return first arg
  0x10003f10 ReturnArg3f10   __cdecl           return first arg

Conventions and operand sizes read from the Ghidra disasm. The four red-black
tree node-traversal leaves in this range (0x3c50/0x3c70/0x3ca0/0x3e10) stay orig:
proving them needs a multi-node same-image pointer fixture, deferred.

Proof: ALL DIFFERENTIALS PASS (233 cases across 65 functions), NON-VACUITY PASS
(per-function injected bug for all 65), GLOBALS-FIRST PASS.
validate_rvadb.py: RVADB_VALID functions=2163. Coverage 65/2163.
2026-11-29 04:51:21 -05:00
ulw-execute 8f0edeaa4c claim(gamekdm): wave 2 leaf shard orig->reimpl (20 rows) 2026-11-29 04:48:33 -05:00
ulw-execute bb6548321b feat(libavs-ea3): reconstruct+verify wave 1 19 functions 2026-11-29 04:46:55 -05:00
ulw-execute 0e26a9e8ce claim(arkkdmtest): wave 4 leaf shard orig->reimpl (14 rows) 2026-11-29 04:46:17 -05:00
ulw-execute 7eba0240c0 feat(gamekdm): reconstruct+verify wave 1 20 functions 2026-11-29 04:42:27 -05:00
ulw-execute 6ba9258e96 claim(libafputils): wave 2 leaf shard orig->reimpl (17 rows) 2026-11-29 04:42:08 -05:00
ulw-execute 7bed51950d feat(arkkdmtest): recover+verify named-value lookup batch (51 functions)
Recovered the wave-3 worker's uncommitted WIP (dead on a 429): FindNamedValue
(0x3700, orig->verified) plus globals-first hardening of the wave-3 leaves
(ClearDwords/FieldAt* unsigned address arithmetic, owned-state capture gate,
extra boundary cases). T1 differential prove_arkkdmtest.py: 201 cases across 51
functions original==reconstructed, per-function injected-bug non-vacuity, and
globals-first PASS for the 19 wave-3 functions.
2026-11-29 04:41:51 -05:00
ulw-execute 6b2c04e286 claim(arkkdm): wave 2 leaf+dispatch shard orig->reimpl (20 rows) 2026-11-29 04:34:27 -05:00
ulw-execute cf5dbdcfe9 claim(gamekdm): wave 1 leaf shard orig->reimpl (20 rows) 2026-11-29 04:32:07 -05:00
ulw-execute aaaf2685b5 claim(libavs-ea3): wave 1 leaf shard orig->reimpl (20 rows) 2026-11-29 04:31:57 -05:00
ulw-execute f2a07ba06a feat(libafputils): reconstruct+verify wave 1 15 functions 2026-11-29 04:25:45 -05:00
ulw-execute df256b6195 chore(arkkdm): normalize wave-1 rvadb to canonical exporter format 2026-11-29 04:19:06 -05:00
ulw-execute 40a16e28b5 feat(arkkdm): reconstruct+verify wave 1 20 functions\n\nWave 1 on arkkdm.dll: reconstruct the first leaf-first shard of pure internal\nleaves (zero callees, zero import deps, zero globals) as MinGW C++ and verify\neach against the shipping binary via the T1 faithful differential.\n\nFunctions (orig -> verified), fp_model=none, portability=port:\n 0x10003bf0 ClearField30 __thiscall\n 0x10004980 ResetHeader __thiscall\n 0x10005090 GetFlagF4 __thiscall\n 0x100050a0 SetFlagF4 __thiscall\n 0x100050b0 GetFlagF5 __thiscall\n 0x10005110 GetFlagF6 __thiscall\n 0x100052b0 SetByteTrue __stdcall\n 0x10005330 arkNetworkGetPropertyWait __stdcall (export)\n 0x10005370 arkPauseBackgroundProcess __stdcall (export)\n 0x10005380 TestObjectSlot __thiscall\n 0x100054c0 ClearSixWords __stdcall\n 0x100054e0 ReturnZeroTwoArgs __stdcall\n 0x100054f0 SetByteFalse __stdcall\n 0x10005520 GetSlot19c __thiscall\n 0x10005540 GetField184 __thiscall\n 0x10005550 GetField190 __thiscall\n 0x10005560 GetField188 __thiscall\n 0x10005570 GetField18c __thiscall\n 0x10005580 GetField198 __thiscall\n 0x10005590 GetField21c __thiscall\n\nVerification: tools/unicorn_diff/recon_arkkdm_harness.cpp (21 modes) +\nre/arkkdm/prove_arkkdm.py run the Unicorn-vs-wine faithful differential:\nALL DIFFERENTIALS PASS (44 cases) plus per-function injected-bug non-vacuity.\nConventions (ret N cleanup, thiscall ecx) read from disasm. Globals-first gate\ntrivially satisfied (no callees/globals). validate_rvadb.py: RVADB_VALID\nfunctions=2330. Coverage 20/2330. 2026-11-29 04:16:31 -05:00
ulw-execute c581253ab2 claim(libafputils): wave 1 leaf shard orig->reimpl (19 rows) 2026-11-29 04:12:02 -05:00
ulw-execute 26be336079 feat(diff): register-input ABIs + multi-register/x87 returns + same-image pointers + indirect-call tables + SEH 2026-11-29 03:46:41 -05:00
ulw-execute 925740bdb3 claim(libafp): wave 2 leaf shard orig->reimpl (24 rows) 2026-11-29 03:40:02 -05:00
ulw-execute 8f0c2c6d29 claim(arkkdmtest): model wave 3 named-value table ownership 2026-11-29 03:33:52 -05:00
ulw-execute 7819f3fc8c feat(libafp): reconstruct+verify wave 1 28 functions 2026-11-29 03:32:42 -05:00
ulw-execute 84fed91892 claim(libafp): wave 1 leaf shard orig->reimpl (28 rows) 2026-11-29 03:31:33 -05:00
ulw-execute 9e0bb4b01e feat(arkkdmtest): reconstruct+verify wave 3 18 functions 2026-11-29 03:24:20 -05:00
ulw-execute fd4e93c707 feat(ess): reconstruct+verify wave 1 12 functions 2026-11-29 03:18:59 -05:00
ulw-execute 02e5727312 claim(arkkdmtest): wave 3 leaf shard orig->reimpl (20 rows) 2026-11-29 03:11:40 -05:00
ulw-execute 2bdee72528 feat(arkkdmtest): reconstruct+verify wave 2 20 functions 2026-11-29 03:04:44 -05:00
ulw-execute c00bbf3064 fix(diff): globals-first gate fails closed on undeclared stub-side global access 2026-11-29 02:59:24 -05:00
ulw-execute dd3eec0a3b feat(libacio): reconstruct+verify wave 2 17 functions 2026-11-29 02:51:08 -05:00
ulw-execute da8ef25e63 feat(diff): global-delta + external-import stubs + void observability for stateful functions 2026-11-29 02:35:55 -05:00
ulw-execute a8648d672e claim(arkkdmtest): wave 2 leaf shard orig->reimpl (21 rows) 2026-11-29 02:34:55 -05:00
senpi 60c4fc16fa chore(libacio): claim 17 leaf functions orig->reimpl (wave 2 shard) 2026-11-29 02:34:45 -05:00
ulw-execute e52aff129a feat(arkkdmtest): reconstruct+verify 12 pure leaf ops (0x11a0-0x17a0)
Wave 1 on arkkdmtest.dll: reconstruct the first shard of T1-differentiable
internal call-graph leaves (zero callees, zero globals) as MinGW C++ and verify
each against the shipping binary.

Functions (orig -> verified), fp_model=none:
  0x100011a0 StringLength        __cdecl
  0x100011e0 CopyByte            __cdecl
  0x10001220 ElementPointerAt    __thiscall
  0x100012e0 RangeContains       __thiscall
  0x10001360 SetHeadPointer      __thiscall
  0x10001370 AdvanceHeadPointer  __thiscall
  0x10001500 FillDwords          __cdecl
  0x10001590 GrowthCapacity      __thiscall
  0x100015c0 SetHeadPointerB     __thiscall
  0x100015d0 AdvanceHeadPointerB __thiscall
  0x100016f0 DwordEquals         __thiscall
  0x100017a0 ZeroFillDwords      __cdecl

Verification: tools/unicorn_diff/recon_ark_harness.cpp (12 modes) +
re/arkkdmtest/prove_arkkdmtest.py run the Unicorn-vs-wine faithful differential:
ALL DIFFERENTIALS PASS (39 cases) plus per-function injected-bug non-vacuity.
validate_rvadb.py: RVADB_VALID functions=2163. Coverage 12/2163.

The sharder's literal first shard is external PE import thunks (jmp [IAT] into
absent DLLs), which T1 cannot execute and T2 would prove vacuously; those and
the function-pointer/__fastcall leaves stay orig for a later wave.
2026-11-29 02:23:17 -05:00
ulw-execute 8f1ee484a0 feat(libacio): reconstruct+verify 12 leaf functions (wave 1)
Differential-verified original libacio.dll vs MinGW reconstruction over
multiple cases each (globals injected per case), reimpl->verified:
  0x1050 ac_io_bmpu_consume_coinstock      0x10c0 ac_io_bmpu_current_coinstock
  0x1220 ac_io_bmpu_get_control_status_buffer
  0x1240 ac_io_bmpu_control_1p_start_led_off 0x1250 ac_io_update
  0x1260 ac_io_icca_get_status             0x1290 ac_io_is_active_device
  0x1320 ac_io_get_version                 0x1340 ac_io_bmpu_get_softwareid
  0x1380 sub_10001380  0x1437 sub_10001437  0x2469 sub_10002469

All leaves (callees=[]); globals-first gate satisfied. Non-vacuity: two
injected reconstruction bugs caught by the differential. Coverage
libacio 12/256. tools/ghidra/validate_rvadb.py -> RVADB_VALID.
2026-11-29 02:21:22 -05:00
kdm-re agent ca950bd99e feat(libavs): reconstruct+verify 0x000025b9 DllMain 2026-11-29 02:11:54 -05:00
ulw-execute d8621c442f chore(libacio): claim 12 leaf functions orig->reimpl (wave shard) 2026-11-29 02:11:29 -05:00