Files
WoW-Hybrid-gateway/docs/evidence/data/octo-transmog-read-contract.json
praxisandClaude Fable 5.2 45ecd73fe0 Evidence records
1888 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

375 lines
17 KiB
JSON

{
"additive_contract_note": "Complete42-byte close-hook body added for independently recomputing its relocated runtime hash. Previous committed analysis remains in Git; no accepted hook-aware runtime proof exists yet.",
"byte_evidence": [
{
"bytes": 111,
"file_body_hex": "5589e55357568b75088b7d1089f1e8cc100000a80174398b5e3439df0f42df53ff7630ff750ce81116000083c40c8b4d1485c9740289198b451831f64685c074258b400485c0741e50e833160000eb16ff751cff7518ff751457ff750c56ff15bc41001089c689f05e5f5b5dc21800",
"file_sha256": "14971d846d4211e84c9e90fe5d94df3d709b027aee30462b7280b9a42b4553a9",
"name": "read_hook",
"prefix_bytes": 32,
"prefix_hex": "5589e55357568b75088b7d1089f1e8cc100000a80174398b5e3439df0f42df53",
"relocations": [
{
"offset": 96,
"preferred_u32": "0x100041bc",
"rva": "0x193d",
"type": 3,
"type_name": "IMAGE_REL_BASED_HIGHLOW"
}
],
"rva": "0x18dd"
},
{
"bytes": 38,
"file_body_hex": "81f9ffff0000770331c0c35589e5833900750683790400740431c05dc3837930000f95c0ebf5",
"file_sha256": "2c3753e090a96b7eb0713147ce1375380a1e3b83442f602544f82a61a1239342",
"name": "special_wrapper_predicate",
"prefix_bytes": 32,
"prefix_hex": "81f9ffff0000770331c0c35589e5833900750683790400740431c05dc3837930",
"relocations": [],
"rva": "0x29bc"
},
{
"bytes": 41,
"file_sha256": "6d63c7936d7bca680d1986cc8bc55f3bd28b9c642a0b8ddffef26a827ffa0dd2",
"name": "open_hook",
"prefix_bytes": 32,
"prefix_hex": "5589e55357568b750c8b5d108b7d1489f1e8b5010000575356ff7508ff155c41",
"relocations": [
{
"offset": 30,
"preferred_u32": "0x1000415c",
"rva": "0x18a2",
"type": 3,
"type_name": "IMAGE_REL_BASED_HIGHLOW"
}
],
"rva": "0x1884"
},
{
"bytes": 48,
"file_sha256": "5e3fe0e88040a0d23a9546fd3a7820d05113651b51ff1cf9e0d79f83409378d5",
"name": "size_hook",
"prefix_bytes": 32,
"prefix_hex": "5589e557568b75088b7d0c89f1e8fd100000a801740c85ff74038327008b4634",
"relocations": [
{
"offset": 38,
"preferred_u32": "0x1000418c",
"rva": "0x18d3",
"type": 3,
"type_name": "IMAGE_REL_BASED_HIGHLOW"
}
],
"rva": "0x18ad"
},
{
"bytes": 42,
"file_body_hex": "5589e5568b750889f1e862100000a801740c8b4e0c85c97405e8e500000056ff15ec4100105e5dc20400",
"file_sha256": "b15934539f7741171d94ef860deba08dd3ca6c6d65374e233df81231d890d35e",
"name": "close_hook",
"prefix_bytes": 32,
"prefix_hex": "5589e5568b750889f1e862100000a801740c8b4e0c85c97405e8e500000056ff",
"relocations": [
{
"offset": 33,
"preferred_u32": "0x100041ec",
"rva": "0x196d",
"type": 3,
"type_name": "IMAGE_REL_BASED_HIGHLOW"
}
],
"rva": "0x194c"
},
{
"bytes": 141,
"file_sha256": "d3ee9a5049bc79dfc1e2d9074bff6b98c394dd46be011473dd7edcb4fe5ea1de",
"name": "coalesced_buffer_hook",
"prefix_bytes": 32,
"prefix_hex": "5589e5535756508b7d088b5d0c89ce89f9e80e100000a801745b8b47308b4e08",
"relocations": [
{
"offset": 99,
"preferred_u32": "0x100041ec",
"rva": "0x19fb",
"type": 3,
"type_name": "IMAGE_REL_BASED_HIGHLOW"
},
{
"offset": 123,
"preferred_u32": "0x1000421c",
"rva": "0x1a13",
"type": 3,
"type_name": "IMAGE_REL_BASED_HIGHLOW"
}
],
"rva": "0x1998"
},
{
"bytes": 515,
"file_sha256": "a3ac21fd5b984afeab856774f855938be8110291145437b14f1ebfc24e178d84",
"name": "trampoline_builder",
"prefix_bytes": 32,
"prefix_hex": "5589e553575683ec2831ff833900bb00000000894de4740a89d883c4285e5f5b",
"relocations": [],
"rva": "0x1637"
},
{
"bytes": 74,
"file_sha256": "2c4457ca5e84f831c95143453a3c333a1f48be9bb0257f2bc795706174be5eea",
"name": "detour_installer",
"prefix_bytes": 32,
"prefix_hex": "5589e5575683ec2089c889d6b9909090908d55d8894a1c894a19894a15894a11",
"relocations": [],
"rva": "0x183a"
},
{
"bytes": 33,
"file_body_hex": "5589e553568b55108b750c8b450831c939ca74098a1c0e881c0841ebf35e5b5dc3",
"file_sha256": "2c2190b426a2123690fec2ee94ee2a39f713635978187ebc12ce483af7c4fe56",
"name": "byte_copy_helper",
"prefix_bytes": 32,
"prefix_hex": "5589e553568b55108b750c8b450831c939ca74098a1c0e881c0841ebf35e5b5d",
"relocations": [],
"rva": "0x2f19"
}
],
"call_frame_contract": {
"argument_proof": "The hook initially copies all six arguments unchanged. The original MPQ branch then intentionally reuses its fifth argument slot [original_EBP+0x18] as the actual-count output. At648540 the other five original words still equal source arguments, the fifth equals ECX actual count, and all six hook-frame arguments remain unchanged.",
"existing_observer_conflicts": [
"Actual-count RBP+4==observed READ entry ESP fails because the actual-count PC is in the nested original frame.",
"At final inner fill, the original outer frame return PC is DLL RVA0x1941, not the game caller. The existing strict game-return check must continue to reject until the explicit nested frame is validated."
],
"hook_final_return_esp": "H+28 after hook ret24",
"hook_game_return_pc": "DWORD[H]",
"notation": "H is the natural hooked READ entry ESP; B=H-4 is the hook EBP. No engine calls are made by this analysis.",
"ordinary_original_ebp": "H-48 == B-44",
"ordinary_original_entry_sp": "H-44",
"original_mpq_actual_count_slot": {
"bytes": 24,
"hex": "8d451850575152c7451800000000e805e6000085c08b4d18",
"instruction_va": "0x648528",
"original_frame_offset": 24,
"scope": "Synchronous original MPQ branch at the already pinned full read function; no arbitrary argument changes are accepted.",
"sequence": [
"lea eax,[ebp+0x18] passes the fifth slot as lower-read bytes-written pointer",
"mov DWORD[ebp+0x18],0 initializes that slot",
"call656b40 populates the slot",
"mov ecx,[ebp+0x18] loads it before648540"
],
"sha256": "12c73ac58d356d9108b39428678a4636e2ad0cc743cf52f487ba811515b83b74",
"source_argument_index": 4
},
"original_return_esp": "H-16 after original ret24",
"original_return_pc": "runtime_module_base+0x1941",
"original_saved_ebp": "DWORD[H-48] == B"
},
"date": "2026-10-17",
"detour_and_trampoline": {
"builder": "RVA0x1637 decodes complete instructions until at least five bytes, copies/relocates them, and appends a jump to the original continuation. Existing E9 is chained rather than silently discarded.",
"expected_un_chained_read_case": {
"continuation_va": "0x648466",
"original_bytes": "558bec8b4518",
"overwritten_bytes": 6,
"runtime_trampoline_validated": false,
"trampoline_pattern": "55 8b ec 8b 45 18 e9 <rel32 to 0x648466>",
"whole_instruction_lengths": [
1,
2,
3
]
},
"installation": "DllMain process-attach initializes record RVA0x41b8 for original VA0x648460, then installs hook RVA0x18dd (calls at RVA0x10a2/0x10b5).",
"installer": "RVA0x183a constructs E9 plus NOP padding through the overwritten length. It uses a VirtualProtect/copy/restore helper at RVA0x2979; the observer must not invoke this helper.",
"original_read_tail": {
"bytes": 367,
"file_sha256": "0b3abd13be3e35883ff1f95a5c0c3b844dfc8b4d0c47851e0660bafe8266172b",
"runtime_tail_validated": false,
"va": "0x648466"
},
"record_layout": {
"allocated_trampoline": 0,
"callable_trampoline": 4,
"original_entry": 8,
"overwritten_length": 12,
"saved_original_bytes": 16
},
"record_pointer_used_by_read": "RVA0x41bc == record+4",
"relocation_note": "The read-hook body contains one HIGHLOW relocation at RVA0x193d (offset96), whose preferred DWORD0x100041bc becomes runtime_module_base+0x41bc. Compare against correctly rebased file bytes, not an unrelocated body hash."
},
"executable": {
"bytes": 7024640,
"preferred_image_base": "0x400000",
"sha256": "5014ca1cfedf860f10e93fe7d955c56c28eb11a2bb503030dbb9b1c777f00470",
"workspace_copy": "runtime/octo-loader-client/WoW.exe"
},
"kind": "installed-octo-read-only-transmog-read-analysis",
"module": {
"basename": "transmogfix.dll",
"bytes": 12800,
"codeview_pdb_record_present": false,
"debug_records": [
{
"bytes": 0,
"type": 16
}
],
"machine": "IMAGE_FILE_MACHINE_I386",
"pe32": true,
"preferred_image_base": "0x10000000",
"sha256": "cd9e4c6ce033b0923cf045269f590f5e0b886bd03f43bd81406670d781452210",
"size_of_image": 69632,
"workspace_copy": "runtime/octo-loader-client/transmogfix.dll"
},
"purpose": "Explain the official-loader read detour before allowing any hook-aware content observation.",
"read_hook": {
"abi": "PE32 six stack arguments, stdcall ret 0x18; preserves EBX/EDI/ESI/EBP",
"arguments": [
"file_wrapper",
"destination",
"requested_count",
"optional_actual_count_pointer",
"opaque_event_or_async_context",
"opaque_argument6"
],
"ordinary_delegation": {
"branch_rva": "0x192d",
"conclusion": "For the reviewed ordinary branch, this hook does not change returned read bytes after the delegated function returns.",
"indirect_call_rva": "0x193b",
"post_original_operations": [
"mov esi,eax",
"mov eax,esi",
"pop esi; pop edi; pop ebx; pop ebp; ret 0x18"
],
"return_rva": "0x1941",
"same_order_six_arguments": true,
"trampoline_pointer_rva": "0x41bc",
"writes_to_destination_after_original": false
},
"predicate": {
"call_rva": "0x18eb",
"function_rva": "0x29bc",
"true_conditions": [
"unsigned file_wrapper > 0xffff",
"DWORD[file_wrapper+0] == 0",
"DWORD[file_wrapper+4] == 0",
"DWORD[file_wrapper+0x30] != 0"
],
"validity_limits": "The predicate itself validates neither length nor header and is not proof that arbitrary pointers are safe."
},
"rva": "0x18dd",
"special_buffer_path": {
"branch_rva": "0x18f4",
"calls_original_read": false,
"copy_call_rva": "0x1903",
"copy_helper": "Simple byte-for-byte copy loop; no transform.",
"copy_helper_rva": "0x2f19",
"count": "min(requested_count, DWORD[file_wrapper+0x34])",
"optional_actual_count_write_rva": "0x1912",
"optional_event": "If argument5 and DWORD[argument5+4] are nonzero, calls the KERNEL32 SetEvent thunk at RVA0x2f5e.",
"returns": 1,
"runtime_use_by_selected_dbc": "unverified",
"source_buffer": "DWORD[file_wrapper+0x30]",
"updates_source_cursor_in_reviewed_branch": false
}
},
"related_static_observations": {
"close_hook": "RVA0x194c uses the same predicate then always delegates through record RVA0x41e8+4; its pre-delegation helper only scans a nonnull string-like pointer at wrapper+0xc.",
"coalesced_buffer_hook": "RVA0x1998 consumes the same special wrapper: copies buffer+0x30 and length+0x34 into native destination fields+0x130/+0x134; ordinary path delegates. It does not establish producer provenance.",
"dbc_name_selection": "No DBC, Talent, Spell or ItemDisplayInfo filename string or filename comparison was found in this DLL; this is not proof that indirect/data-driven selection is impossible.",
"independent_review": "A second local static review confirmed the predicate, delegation, special copy behavior and lack of direct +0x30/+0x34 producer writes.",
"local_source_symbols": "No transmogfix source/PDB was found in existing local references/tools filename inventory. The PE contains no CodeView/PDB debug record (only type16 size0). No external download/search was used.",
"open_hook": "RVA0x1884 forwards four arguments unchanged through record RVA0x4158+4; it calls the read-only NUL-scanning helper RVA0x1a4f before delegation and has no post-original buffer handling.",
"size_hook": "RVA0x18ad uses the same predicate; special wrappers return DWORD+0x34 and optional high-size0; ordinary wrappers delegate unchanged.",
"special_wrapper_producer": "No direct constructor or write of wrapper offsets+0x30/+0x34 was found in bounded complete .text instruction review. A producer in other modules or the engine remains possible."
},
"runtime_rejection_provenance": {
"captures_published": 1,
"event": {
"actual_prefix_hex": "e978945677905356578b7d1085ff752985c074088b4804e8241601008b451485",
"actual_sha256": "279662561210dcc1d9bd9a9846052dfc996b583a8c9b39971a54ba79f4e6af81",
"changed_byte_count": 6,
"changed_offsets": [
0,
1,
2,
3,
4,
5
],
"changed_offsets_truncated": false,
"contract_bytes": 71,
"direct_jump": {
"encoding": "E9-rel32",
"module": {
"basename": "transmogfix.dll",
"correlation": "mapped-PE-header-plus-file-image-extent",
"function_contract_verified": false,
"relative_offset": "0x18dd",
"sha256": "cd9e4c6ce033b0923cf045269f590f5e0b886bd03f43bd81406670d781452210",
"status": "pinned-private-mapped-module-range"
},
"target_va": "0x77bb18dd"
},
"entry_va": "0x648460",
"expected_body_available": true,
"expected_prefix_hex": "558bec8b45185356578b7d1085ff752985c074088b4804e8241601008b451485",
"expected_sha256": "dbd96e659e7927c9be92be419b49dcb505657f28f96cfd23cd6032da8e3003c8",
"kind": "code-contract-rejected",
"phase": "instruction-prefix",
"prefix_sample_truncated": true,
"sample_bytes": 32
},
"hardware_registers_restored": true,
"limitations": [
"This artifact performs no additional runtime inspection.",
"The runtime diagnostic observed only the first 71 read-function bytes; it does not prove the entire hooked function or trampoline.",
"The module inventory is file identity plus mapped range, not complete post-load semantics."
],
"path": "runtime/octo-talent-official-contract-owned-20261017/observation.json",
"pid": 1170096,
"sha256": "e861eb7ffb8138d4d1531aa245444675f3cf4d5933a5d01591f96e5b9a51f32d",
"status": "observer-rejected"
},
"schema_version": 1,
"scope": {
"client_or_module_modified": false,
"credentials_or_account_files_read": false,
"engine_calls_injected": false,
"hook_disabled": false,
"network_used": false,
"new_processes_launched": false,
"process_memory_read": false,
"processes_attached": false,
"runtime_contract_approved": false,
"static_binary_analysis": true
},
"smallest_next_observer_contract": {
"claim_limits": [
"The reviewed ordinary transmogfix read hook does not postprocess the destination.",
"This static finding does not prove all five official DLLs leave later DBC parsing or memory untouched.",
"Lower MPQ fills alone identify source bytes, not every parser read or final in-memory game definition.",
"No official-loader DBC capture has yet passed the full runtime contract."
],
"client_or_observer_changed": false,
"first_control": "Talent through the official loader, default per-read path, no hook disabling, before any larger table or block-mode acceptance.",
"proposal_only": true,
"runtime_checks_required": [
"Pin the exact private module SHA and mapped PE base/extent.",
"Verify live E9+NOP targets exactly module RVA0x18dd; check the complete rebased 111-byte hook body and38-byte predicate.",
"Validate the private trampoline record, copied original6 bytes, exact E9 continuation648466, and unchanged367-byte original tail; reject earlier/chained or unknown detours.",
"Retain natural named-open/handle generation/main-thread/PE32/24-byte callee-pop ownership guards.",
"Classify the actual selected wrapper using the reviewed predicate. Initially reject the special memory-buffer path rather than pretending it reached an MPQ fill.",
"For the ordinary path validate original nested frame, same6 arguments, DLL returnRVA1941 and original game return. Capture per-read destination bytes only after successful natural hook return.",
"For block mode retain existing inner65702d count/offset/owner/async checks, prove the additional hook frame and final hook return, and label raw fill evidence separately from final per-read destination evidence."
],
"unsupported": [
"Unknown/chained trampolines",
"Special memory-backed wrappers until a separate genuine output observation is implemented",
"Async reads, arbitrary foreign callers or untracked handles",
"A blanket changed-prefix exception or original-code restoration"
]
},
"source_installation": "/home/praxis/Games/octo/drive_c/Octowow"
}