· reverse engineering · windows internals

Software Reverse Engineering - Featuring RESX

I wonder how much own SRE would perform...

i threw a stripped direct-syscall DLL at RESX and followed it blind

rules i gave myself

someone dropped activebreach.dll into RESX's internal fixtures and told me it was a red-team direct-syscall framework. that was all i was allowed to know. the challenge was to find the code that constructs the syscall stub, the code that manages the call stack, and whatever else actually makes the thing work.

i treated it like a sample i had never seen before and worked it using RESX alone. i did not search for the project, recover or load its PDB, use another disassembler, or use private source. every sample-facing RESX command used --no-pdb. i began with static analysis, then the operator explicitly authorized native runtime testing through RESX's disposable worker.

the exact sample i analysed was:

path: resx-fixtures\.internal_fixtures\activebreach.dll
size: 178176 bytes
sha256: 2CC0B4F9F619E0C503F2DBA017A0D4E9619C477C45926CB2671FF45E5AE49929

i used the packaged build at release\invoke-fixtures\resx-cli.exe for the original static investigation and rebuilt target\release\resx-cli.exe for the final runtime validation. the second half includes the failures as well as the successful calls.

where i ended up

activebreach exposes a small public API over a dedicated syscall worker. ab_call does not run a syscall directly. it validates the supplied name and argument count, copies a request into a global mailbox, wakes a worker, waits for completion, and returns the worker's saved RAX.

the worker is launched by activebreach_launch through a cleanly resolved NtCreateThreadEx stub. for each request it resolves the syscall number, picks a slot from an executable pool, reconstructs a 32-byte syscall thunk into that slot, moves as many as 16 arguments into a Windows x64 call frame, runs an anti-breach/call-boundary check, and executes CALL r12, where r12 is the selected slot. after the call it stores the result, wakes the caller, and encrypts or scrubs the slot again.

the function responsible for constructing and executing the per-call syscall stub is the worker at RVA 0x6BA0, with the construction concentrated around 0x744A..0x7C06 and the actual call at 0x7CB9. the important support functions are:

RVA recovered role confidence
0xA200 exported launcher; resolves NtCreateThreadEx and starts the worker at 0x6BA0 high
0x9CF0 ab_call; validates name/argc and enters the dispatcher high
0x1170 serialized request mailbox and wait/wake dispatcher high
0x6BA0 worker loop, stub lifecycle, argument frame, indirect syscall invocation, result publication high
0x3FE0 one-time mapper/database initialisation medium-high
0x26A0 PEB walk plus NTDLL export resolver high
0x1C50 validates and locates a clean syscall-shaped NTDLL export stub high
0x3790 syscall name to syscall-number lookup in the internal map high
0x5D50 synchronized lookup of additional mapped-stub metadata medium
0x1480 anti-breach and call-stack/caller validation high
0x1810 increments the violation counter and dispatches the optional callback high
0x2D90 software AES transform/fallback used by the slot protection path medium-high
0x1AFE0, 0x1DCF0 Rust string handling and UTF-8 validation high

that table is the index. these are the RESX dumps that produced it. i have clipped unrelated prologues and long loop bodies, but the lines below are copied from the release CLI output without rewriting the instructions.

first, the two public exports connect directly to the private dispatcher and worker. the launcher resolves the literal NtCreateThreadEx, takes 0x6BA0 as the thread routine, and invokes the resolved pointer in r10:

& $resx dump $sample --at 0xA200 --no-pdb --no-color --hex
RVA 0xA200 -> RVA 0x0000A200

activebreach.dll!activebreach_launch  [RVA 0x0000A200, VA 0x18000A200]
  0000A212  E8 C9 9D FF FF                 CALL       0000000180003FE0h  ; → RVA 0x00003FE0
  0000A21B  48 8D 0D B6 85 01 00           LEA        rcx,[1800227D8h]  ; "NtCreateThreadExsrc\internal\exports.rs"
  0000A222  BA 10 00 00 00                 MOV        edx,10h
  0000A227  E8 24 7A FF FF                 CALL       0000000180001C50h  ; → RVA 0x00001C50
  0000A230  49 89 D2                       MOV        r10,rdx
  0000A233  48 8D 05 66 C9 FF FF           LEA        rax,[180006BA0h]
  0000A270  48 89 44 24 20                 MOV        [rsp+20h],rax
  0000A278  41 FF D2                       CALL       r10

ab_call validates its three inputs, caps argc at 16, and transfers them to 0x1170:

& $resx dump $sample --at 0x9CF0 --no-pdb --no-color --hex
RVA 0x9CF0 -> RVA 0x00009CF0

activebreach.dll!ab_call  [RVA 0x00009CF0, VA 0x180009CF0]
  00009D05  48 85 C9                       TEST       rcx,rcx
  00009D0A  4C 89 C6                       MOV        rsi,r8
  00009D0D  48 89 D7                       MOV        rdi,rdx
  00009D10  48 89 CB                       MOV        rbx,rcx
  00009D23  E8 B8 12 01 00                 CALL       000000018001AFE0h  ; → RVA 0x0001AFE0
  00009D2E  48 83 FE 10                    CMP        rsi,10h
  00009D32  76 0B                          JBE        short 0000000180009D3Fh  ; → RVA 0x00009D3F
  00009D4C  48 85 FF                       TEST       rdi,rdi
  00009D58  49 89 F8                       MOV        r8,rdi
  00009D5B  49 89 F1                       MOV        r9,rsi
  00009D5E  E8 0D 74 FF FF                 CALL       0000000180001170h  ; → RVA 0x00001170

the dispatcher dump is the evidence for the mailbox description. it clears and copies the name, stores its length and argument count, copies argc * 8 bytes, sets state 1, wakes the worker, waits for state 2, then returns the qword at 0x2C498:

& $resx dump $sample --at 0x1170 --no-pdb --no-color --hex
RVA 0x1170 -> RVA 0x00001170

activebreach.dll!fn_0x00001170  [RVA 0x00001170, VA 0x180001170]
  00001180  48 83 FA 40                    CMP        rdx,40h
  0000118A  49 83 F9 11                    CMP        r9,11h
  00001283  48 8D 0D 36 B1 02 00           LEA        rcx,[18002C3C0h]
  000012A0  C5 FC 11 05 18 B1 02 00        VMOVUPS    [18002C3C0h],ymm0
  000012B9  E8 7D E5 01 00                 CALL       000000018001F83Bh
  000012BE  89 1D F8 B0 02 00              MOV        [18002C3BCh],ebx
  000012C4  48 89 35 45 B1 02 00           MOV        [18002C410h],rsi
  000012CB  48 C1 E6 03                    SHL        rsi,3
  000012CF  48 8D 0D 42 B1 02 00           LEA        rcx,[18002C418h]
  000012DC  E8 5A E5 01 00                 CALL       000000018001F83Bh
  000012E4  C7 05 CA B0 02 00 01 00 00 00  MOV        dword ptr [18002C3B8h],1
  000012EE  FF 15 7C 0E 02 00              CALL       qword ptr [180022170h]
  000012FA  83 F8 02                       CMP        eax,2
  000013C4  48 8B 35 CD B0 02 00           MOV        rsi,[18002C498h]
  000013D2  C7 05 DC AF 02 00 00 00 00 00  MOV        dword ptr [18002C3B8h],0
  000013DC  FF 15 8E 0D 02 00              CALL       qword ptr [180022170h]
  000013E2  48 89 F0                       MOV        rax,rsi

the worker dump joins that state to the resolver and writes the recovered service number to 0x2C400:

& $resx dump $sample --at 0x6BA0 --no-pdb --no-color --hex
RVA 0x6BA0 -> RVA 0x00006BA0

activebreach.dll!fn_0x00006BA0  [RVA 0x00006BA0, VA 0x180006BA0]
  00006C5D  C6 05 4D 57 02 00 01           MOV        byte ptr [18002C3B1h],1
  00006C67  FF 15 03 B5 01 00              CALL       qword ptr [180022170h]
  00006CD0  8B 0D E2 56 02 00              MOV        ecx,[18002C3B8h]
  00006CD6  83 F9 01                       CMP        ecx,1
  00006CE2  E8 F9 D2 FF FF                 CALL       0000000180003FE0h  ; → RVA 0x00003FE0
  00006CFC  44 8B 05 B9 56 02 00           MOV        r8d,[18002C3BCh]
  00006D17  48 8D 15 A2 56 02 00           LEA        rdx,[18002C3C0h]
  00006D1E  E8 CD 6F 01 00                 CALL       000000018001DCF0h  ; → RVA 0x0001DCF0
  00006D44  E8 47 CA FF FF                 CALL       0000000180003790h  ; → RVA 0x00003790
  00006D51  41 89 D6                       MOV        r14d,edx
  00006D54  89 15 A6 56 02 00              MOV        [18002C400h],edx

later in that same containing function, RESX recovered the 32-byte store, ABI frame, validator call, indirect invocation, and result publication. i raised the instruction display limit so the dump reached the tail of this large optimized function:

& $resx dump $sample --at 0x6BA0 --no-pdb --no-color --max-insns 5000
  00007BF7  MOV        [rbp+84h],r14d
  00007BFE  VMOVUPS    ymm0,[rbp+80h]
  00007C06  VMOVUPS    [r12],ymm0
  00007C20  MOV        r8,[18002C410h]
  00007C55  LEA        rcx,[rbp+5B0h]
  00007C5C  LEA        rdx,[18002C418h]
  00007C66  CALL       000000018001F83Bh
  00007C6B  CALL       0000000180001480h
  00007C88  MOV        rcx,[rbp+5B0h]
  00007C8F  MOV        rdx,[rbp+5B8h]
  00007C96  MOV        r8,[rbp+5C0h]
  00007C9D  MOV        r9,[rbp+5C8h]
  00007CA4  VMOVDQU    [rsp+60h],ymm2
  00007CAA  VMOVDQU    [rsp+40h],ymm1
  00007CB0  VMOVDQU    [rsp+20h],ymm0
  00007CB9  CALL       r12
  00007CC8  MOV        [18002C498h],rax
  00007CCF  MOV        dword ptr [18002C3B8h],2

the clean-stub claim comes from 0x1C50, not from its name. RESX shows it calling the PEB/export resolver, scanning at most 0x55 bytes for 4C 8B D1 B8 or the near variant, then requiring 0F 05 C3 nearby:

& $resx dump $sample --at 0x1C50 --no-pdb --no-color --hex
activebreach.dll!fn_0x00001C50  [RVA 0x00001C50, VA 0x180001C50]
  00001C84  E8 17 0A 00 00                 CALL       00000001800026A0h  ; → RVA 0x000026A0
  00001CC3  48 83 F9 55                    CMP        rcx,55h
  00001CC9  81 3C 0A 4C 8B D1 B8           CMP        dword ptr [rdx+rcx],0B8D18B4Ch
  00001CD2  81 3C 0A 4D 8B D1 B8           CMP        dword ptr [rdx+rcx],0B8D18B4Dh
  00001D08  42 80 3C 0A 0F                 CMP        byte ptr [rdx+r9],0Fh
  00001D0F  42 80 7C 0A 01 05              CMP        byte ptr [rdx+r9+1],5
  00001D17  42 80 7C 0A 02 C3              CMP        byte ptr [rdx+r9+2],0C3h

and 0x26A0 visibly begins from the PEB and walks into loader/export data:

& $resx dump $sample --at 0x26A0 --no-pdb --no-color --hex
activebreach.dll!fn_0x000026A0  [RVA 0x000026A0, VA 0x1800026A0]
  000026D4  65 48 8B 04 25 60 00 00 00     MOV        rax,gs:[60h]  ; gs:[0x60] => TEB.ProcessEnvironmentBlock
  000026E6  4C 8B 40 18                    MOV        r8,[rax+18h]
  00002914  44 8B 7C 18 18                 MOV        r15d,[rax+rbx+18h]
  00002922  44 8B 6C 18 20                 MOV        r13d,[rax+rbx+20h]
  00002927  8B 4C 18 1C                    MOV        ecx,[rax+rbx+1Ch]
  0000292B  8B 6C 18 24                    MOV        ebp,[rax+rbx+24h]

the mapper/database and lookup roles were lower-confidence because the optimized build erased friendly boundaries. i kept them in the table because RESX still showed the worker calling 0x3FE0 before lookup, 0x3790 returning its value in EDX, and both lookup paths synchronizing on the same map state:

& $resx dump $sample --at 0x3FE0 --no-pdb --no-color --hex
& $resx dump $sample --at 0x3790 --no-pdb --no-color --hex
& $resx dump $sample --at 0x5D50 --no-pdb --no-color --hex
activebreach.dll!fn_0x00003FE0  [RVA 0x00003FE0, VA 0x180003FE0]
  00004006  E8 85 FE FF FF                 CALL       0000000180003E90h
  000040A7  FF 15 A3 E1 01 00              CALL       qword ptr [180022250h]
  000040CD  E8 2E 62 00 00                 CALL       000000018000A300h
  000040E3  E8 F8 61 00 00                 CALL       000000018000A2E0h
  00004160  E8 4B 61 01 00                 CALL       000000018001A2B0h
  00004183  E8 28 61 00 00                 CALL       000000018000A2B0h
  0000419D  E8 99 B6 01 00                 CALL       000000018001F83Bh

activebreach.dll!fn_0x00003790  [RVA 0x00003790, VA 0x180003790]
  000037C8  48 8B 05 59 8A 02 00           MOV        rax,[18002C228h]
  000037CF  48 83 F8 02                    CMP        rax,2
  000037DD  F0 0F B0 0D 2B 8A 02 00        LOCK       cmpxchg [18002C210h],cl
  000037EB  48 8B 1D 4E 8A 02 00           MOV        rbx,[18002C240h]
  000038B0  49 3B 76 F0                    CMP        rsi,[r14-10h]
  000038B6  49 8B 56 E8                    MOV        rdx,[r14-18h]

activebreach.dll!fn_0x00005D50  [RVA 0x00005D50, VA 0x180005D50]
  00005D88  48 8B 05 99 64 02 00           MOV        rax,[18002C228h]
  00005D9D  F0 0F B0 0D 6B 64 02 00        LOCK       cmpxchg [18002C210h],cl
  00005DAB  48 8B 1D 8E 64 02 00           MOV        rbx,[18002C240h]
  00005E80  E8 BC 99 01 00                 CALL       000000018001F841h
  00005ECC  86 0D 3E 63 02 00              XCHG       [18002C210h],cl

that output supports a synchronized shared database and two lookup shapes. the specific "mapper" and "additional metadata" labels remain analyst interpretations, which is why their confidence is below the direct public, mailbox, and worker findings.

the anti-breach path also has direct evidence. 0x1480 reads the PEB, TEB self pointer, and TEB client identity before calling 0x1810; 0x1810 atomically increments the global violation count and enters the synchronized callback state:

& $resx dump $sample --at 0x1480 --no-pdb --no-color --hex
& $resx dump $sample --at 0x1810 --no-pdb --no-color --hex
activebreach.dll!fn_0x00001480  [RVA 0x00001480, VA 0x180001480]
  00001490  65 48 8B 04 25 60 00 00 00     MOV        rax,gs:[60h]  ; TEB.ProcessEnvironmentBlock
  000014AB  65 48 8B 04 25 30 00 00 00     MOV        rax,gs:[30h]  ; TEB.Self
  000014CC  65 48 8B 0C 25 48 00 00 00     MOV        rcx,gs:[48h]
  000016AF  E8 5C 01 00 00                 CALL       0000000180001810h  ; → RVA 0x00001810

activebreach.dll!fn_0x00001810  [RVA 0x00001810, VA 0x180001810]
  00001824  F0 FF 05 65 AB 02 00           LOCK       inc dword ptr [18002C390h]
  0000183C  F0 0F B0 15 CC A7 02 00        LOCK       cmpxchg [18002C010h],dl
  00001869  48 8B 15 A8 A7 02 00           MOV        rdx,[18002C018h]
  00001885  86 05 85 A7 02 00              XCHG       [18002C010h],al

finally, the software transform and UTF-8 helper claims came from their actual instruction shapes and call relationship:

& $resx dump $sample --at 0x2D90 --no-pdb --no-color --hex
& $resx dump $sample --at 0x1AFE0 --no-pdb --no-color --hex
& $resx dump $sample --at 0x1DCF0 --no-pdb --no-color --hex
activebreach.dll!fn_0x00002D90  [RVA 0x00002D90, VA 0x180002D90]
  00002DFE  C5 E9 EF D2                    VPXOR      xmm2,xmm2,xmm2
  00002E02  C4 C1 79 EF 20                 VPXOR      xmm4,xmm0,[r8]
  00002E6D  C4 E2 51 00 E9                 VPSHUFB    xmm5,xmm5,xmm1
  00002EA4  C4 E2 49 00 F1                 VPSHUFB    xmm6,xmm6,xmm1
  00002F85  C4 E2 79 00 FC                 VPSHUFB    xmm7,xmm0,xmm4

activebreach.dll!fn_0x0001AFE0  [RVA 0x0001AFE0, VA 0x18001AFE0]
  0001AFEE  49 FF C8                       DEC        r8
  0001AFF1  E8 FA 2C 00 00                 CALL       000000018001DCF0h  ; → RVA 0x0001DCF0

activebreach.dll!fn_0x0001DCF0  [RVA 0x0001DCF0, VA 0x18001DCF0]
  0001DD4F  0F B6 1C 0A                    MOVZX      ebx,byte ptr [rdx+rcx]
  0001DDB8  41 83 FE 04                    CMP        r14d,4
  0001DDBE  41 83 FE 03                    CMP        r14d,3
  0001DDC4  41 83 FE 02                    CMP        r14d,2
  0001DDDB  42 80 3C 32 BF                 CMP        byte ptr [rdx+r14],0BFh
  0001DDFF  48 81 FB E0 00 00 00           CMP        rbx,0E0h
  0001DE08  81 FB ED 00 00 00              CMP        ebx,0EDh
  0001DE2D  48 81 FB F0 00 00 00           CMP        rbx,0F0h
  0001DE36  81 FB F4 00 00 00              CMP        ebx,0F4h

the word stack was present in an embedded original source path, but source paths do not prove exact function ownership after optimisation and inlining. the stack-management behaviour i could prove lives in the 0x6BA0 worker and the 0x1480 validator. i would not invent a separate stack.rs function boundary without runtime evidence.

phase 1: establish what the file is

i started with the boring commands because skipping the boring bit is how u end up reverse engineering a malformed header or the wrong architecture for two hours.

$resx = '.\release\invoke-fixtures\resx-cli.exe'
$sample = '.\resx-fixtures\.internal_fixtures\activebreach.dll'

& $resx peinfo $sample --no-pdb --no-color
& $resx sections $sample --no-pdb --no-color
& $resx pechk $sample --no-pdb --no-color
& $resx eat $sample --no-pdb --no-color
& $resx iat $sample --no-pdb --no-color
& $resx entropy $sample --no-pdb --no-color
& $resx unpack $sample --no-pdb --no-color

RESX identified a 64-bit DLL with image base 0x180000000, entry RVA 0x1EF10, five exports, eight imported DLLs, and 68 imports. .text spans RVA 0x1000..0x212E8. ASLR, NX and HighEntropyVA are enabled.

the entropy and unpack results were the first useful fork in the road:

Entropy map: activebreach.dll (executable-sections, window 1024, stride 512)
  avg 5.967  min 4.937  max 6.484  high 0  low 0  zero-heavy 2  ascii-heavy 0

Unpack triage: activebreach.dll
  0 protector hint(s), 1 OEP candidate(s), 2 import-rebuild hint(s), 0 VM candidate(s)

Protector / packing hints
  none

that killed my first lazy theory that i was looking at a conventionally packed loader. this looked more like optimized native code with local obfuscation around the sensitive material.

the export output gave me the public boundary immediately:

ab_call                       RVA 0x9CF0
ab_clear_violation_handler    RVA 0x9D90
ab_set_violation_handler      RVA 0x9EF0
ab_violation_count            RVA 0x1000
activebreach_launch           RVA 0xA200

the imports already suggested the shape of the implementation. NtWriteFile, NtReadFile, NtQueryVirtualMemory, WaitOnAddress, WakeByAddressSingle, RtlCaptureContext, RtlLookupFunctionEntry, RtlVirtualUnwind, VirtualAlloc, VirtualProtect and dynamic loader APIs are a much more useful lead than guessing based on the product name.

phase 2: broad triage before following functions

& $resx behavior $sample --no-pdb --no-color
& $resx contracts $sample --no-pdb --no-color
& $resx ipc $sample --no-pdb --no-color
& $resx network $sample --no-pdb --no-color
& $resx crypto $sample --no-pdb --no-color
& $resx strings $sample --no-pdb --no-color
& $resx intelli $sample --no-pdb --no-color
& $resx reconstruct-cfg $sample --no-pdb --no-color

behavior immediately gave me concrete instruction addresses instead of a vague "anti-analysis" score. this is the beginning of its actual output:

Behavior triage: activebreach.dll (118 findings)
[medium] anti-analysis cpuid-check (high @ 0x00001D85)
  CPUID instruction can support VM, CPU, or feature probing
  cpuid
[medium] anti-analysis cpuid-check (high @ 0x00001DA1)
  CPUID instruction can support VM, CPU, or feature probing
  cpuid
[medium] anti-analysis cpuid-check (high @ 0x0000205C)
  CPUID instruction can support VM, CPU, or feature probing
  cpuid
[medium] anti-analysis timing-check (high @ 0x00001DB7)
  timestamp instruction can support debugger, emulator, or VM timing checks
  rdtsc
[medium] anti-analysis timing-check (high @ 0x00001DD0)
  timestamp instruction can support debugger, emulator, or VM timing checks
  rdtsc
[medium] loader dynamic-loader-api (high @ 0x00022058)
  dynamic library or procedure resolution API imported
  KERNEL32.dll!GetProcAddress
[medium] loader dynamic-loader-api (high @ 0x00022070)
  dynamic library or procedure resolution API imported
  KERNEL32.dll!LoadLibraryA
[medium] loader dynamic-loader-callsite (high @ 0x0000B160)
  code calls dynamic library or procedure resolution API
  0x0000B160: call qword ptr [180022058h] -> KERNEL32.dll!GetProcAddress

the reconstructed startup CFG independently found the TLS callback and labelled why it was considered a root:

Reconstructed CFG: activebreach.dll
  arch: x64  image_base: 0x0000000180000000  entry: 0x0001EF10
  pdb: disabled  symbols: 0  functions: 0 / 0 sized

Root 2/4: TLS Callback sub_0000D920 0x0000D920 TLS Callback [.text]
  <synthetic, bound .pdata 0x0000D920..0x0000DA44>
  (.tls; declared TLS callback index 0; table order and repeated entries preserved;
   invocation unobserved)
|-- 0x0000D99F call -> [via rax] [indirect, unknown] ; unresolved register rax
|-- 0x0000D9AE call -> sub_00020DD0 0x00020DD0 [unknown]
|-- 0x0000D9CC call -> sub_0000A2C0 0x0000A2C0 [unknown]
|   `-- 0x0000A2C0 jmp -> sub_0000A700 0x0000A700 [tail-jump, unknown]
|       |-- 0x0000A718 call -> kernel32.dll!GetProcessHeap [import, indirect, microsoft-api]
|       `-- 0x0000A72C jmp -> kernel32.dll!HeapFree [import, indirect, tail-jump, microsoft-api]

contracts recovered one bounded Win32 call contract in a different helper. it kept every argument it could not prove as unknown, which stopped me from inventing filesystem behavior beyond the static callsite:

{
  "api": "CreateFileW",
  "category": "io",
  "dll": "KERNEL32.dll",
  "owner_name": "sub_0000DA90",
  "owner_rva": 55952,
  "site_rva": 56268,
  "reconstructed_call": "CreateFileW(\n    arg0,  // name\n    unknown,  // access\n    unknown,  // share_mode\n    unknown,  // security_attributes\n    unknown,  // creation\n    unknown,  // flags\n    NULL  // template\n);",
  "status": "static-x64-call-site; import identity and execution unobserved; kernel object identity requires telemetry"
}

it did emit string-only domain candidates for names such as dbghelp.dll, activebreach.pdb, and ntdll.dll. each record correctly said static-candidate; execution, purpose and reachability unobserved, but the UI category was still noisy. intelli made the problem more obvious:

Intelli Triage:
  [crypto] Warning: encrypt-decrypt (string) src\internal\crypto\aes_ctr.rs
  [network] Warning: domain (string) dbghelp.dll
  [network] Warning: domain (string) activebreach.pdb
  [network] Warning: domain (string) activebreach.dll
  [network] Warning: domain (string) ntdll.dll
  [network] Warning: domain (string) kernel32.dll
  [io] Warning: stream-file-api (import) NtWriteFile
  [io] Warning: stream-file-api (import) NtReadFile

that output is why i treated network as a negative result and recorded the false-positive UX feedback instead of calling DLL filenames C2 indicators. the AES hypothesis also came from a source-path string plus the vector/XOR/shuffle instructions later recovered at 0x2D90; the crypto command itself did not establish a cryptographic call flow.

so the useful broad hits were CPUID/timing instructions, PEB/TEB accesses, a TLS callback at RVA 0xD920, dynamic resolution, and a candidate local transform. the semantic IPC, crypto, and network passes produced no meaningful payload channel. that negative result matters: the DLL looks like execution infrastructure, not a self-contained network implant.

the string pass leaked these original Rust module paths. its JSON output included:

{ "value": "src\\internal\\antibreach.rs" }
{ "value": "NtFreeVirtualMemoryNtProtectVirtualMemoryNtAllocateVirtualMemorysrc\\internal\\stub.rs" }
{ "value": "src\\internal\\stack.rs" }
{ "value": "src\\internal\\crypto\\aes_ctr.rs" }
{ "value": "src\\internal\\mapper.rs" }
{ "value": "NtCreateThreadExsrc\\internal\\exports.rs" }
{ "value": "src\\internal\\dispatch.rs" }

those names were leads, not answers. optimized code can inline and merge code from several source modules into one native function. i used the paths to form hypotheses, then demanded instruction and data-flow evidence before assigning roles.

one RESX caveat showed up here: intelli classified some DLL/PDB-looking strings as domain candidates. that is useful as a queue of things to inspect, but it is not evidence of network activity by itself.

phase 3: start from the exports

for each interesting boundary i asked RESX for hostile decoding, function discovery, transitive callees, xrefs, string references, CFG and pseudocode:

& $resx dump $sample ab_call --no-pdb --hostile --funcs --funcs-depth 4 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample activebreach_launch --no-pdb --hostile --funcs --funcs-depth 5 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample --at 0x1170 --no-pdb --hostile --funcs --funcs-depth 4 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample --at 0x6BA0 --no-pdb --hostile --funcs --funcs-depth 5 --xrefs --strings --cfg text --recomp --no-color

ab_call at 0x9CF0 accepts a name pointer in RCX, an argument-array pointer in RDX, and an argument count in R8. it measures and validates the string, rejects more than 16 arguments, then calls 0x1170.

the useful bit of the output was not a heuristic label. it was the data flow into the next function:

ab_call @ RVA 0x00009CF0
  RCX -> syscall name
  RDX -> qword argument array
  R8  -> argument count
  argument count compared against 0x10
  CALL 0x00001170

i initially thought the deep string routine at 0x1DCF0 might be part of syscall-name resolution. following its branches showed it was a UTF-8 validator. that wrong turn was useful because it separated public input handling from the actual resolver instead of letting me slap "hash resolver" onto every ugly loop.

0x1170 made the asynchronous design obvious. it serializes access through state at .data+0x3B8, copies a maximum 0x40-byte name to .data+0x3C0, stores the name length at 0x2C3BC, the argument count at 0x2C410, and arguments at 0x2C418. it wakes one waiter, waits for state 2, then returns the result from 0x2C498.

that gives this mailbox:

0x2C3B1  worker-ready byte
0x2C3B8  request state
0x2C3BC  syscall-name length
0x2C3C0  syscall-name bytes
0x2C400  resolved syscall number
0x2C410  argument count
0x2C418  argument array, up to 16 qwords
0x2C498  returned RAX

phase 4: recover startup and clean resolution

activebreach_launch at 0xA200 calls the initializer at 0x3FE0, resolves the literal NtCreateThreadEx through 0x1C50, and supplies RVA 0x6BA0 as the thread start routine. that connects the public launcher to the mailbox worker without executing anything.

i then worked the resolution chain directly:

& $resx dump $sample --at 0x3FE0 --no-pdb --hostile --funcs --funcs-depth 5 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample --at 0x26A0 --no-pdb --hostile --funcs --funcs-depth 3 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample --at 0x1C50 --no-pdb --hostile --funcs --funcs-depth 3 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample --at 0x3790 --no-pdb --hostile --funcs --funcs-depth 3 --xrefs --strings --cfg text --recomp --no-color

these are the relevant lines RESX returned. i trimmed unrelated compiler/runtime paths and the opcode-byte column, while preserving the reported addresses and decoded instructions:

activebreach.dll!fn_0x00003FE0  [RVA 0x00003FE0, VA 0x180003FE0]
  00004006  CALL       0000000180003E90h  ; -> RVA 0x00003E90
  00004016  MOV        rdx,[180022250h]
  00004025  MOV        rcx,0FFFFFFFFFFFFFFFFh
  00004045  MOV        qword ptr [rsp+20h],30h
  00004059  CALL       rdx
  000040A7  CALL       qword ptr [180022250h]
  000040CD  CALL       000000018000A300h  ; -> RVA 0x0000A300
  000040E3  CALL       000000018000A2E0h  ; -> RVA 0x0000A2E0
  00004115  CALL       qword ptr [180022250h]

activebreach.dll!fn_0x000026A0  [RVA 0x000026A0, VA 0x1800026A0]
  000026D4  MOV        rax,gs:[60h]  ; gs:[0x60] => TEB.ProcessEnvironmentBlock
  000026E6  MOV        r8,[rax+18h]
  00002914  MOV        r15d,[rax+rbx+18h]
  00002922  MOV        r13d,[rax+rbx+20h]
  00002927  MOV        ecx,[rax+rbx+1Ch]
  0000292B  MOV        ebp,[rax+rbx+24h]

activebreach.dll!fn_0x00001C50  [RVA 0x00001C50, VA 0x180001C50]
  00001C84  CALL       00000001800026A0h  ; -> RVA 0x000026A0
  00001C93  CMP        rdx,0FFFFFFFFFFFFFFA0h
  00001C97  LEA        rcx,[rdx+60h]
  00001C9E  CMP        rcx,rsi
  00001CC3  CMP        rcx,55h
  00001CC9  CMP        dword ptr [rdx+rcx],0B8D18B4Ch
  00001CD2  CMP        dword ptr [rdx+rcx],0B8D18B4Dh
  00001D08  CMP        byte ptr [rdx+r9],0Fh
  00001D0F  CMP        byte ptr [rdx+r9+1],5
  00001D17  CMP        byte ptr [rdx+r9+2],0C3h
  00001D1F  ADD        rcx,rdx

activebreach.dll!fn_0x00003790  [RVA 0x00003790, VA 0x180003790]
  000037DD  LOCK       cmpxchg [18002C210h],cl
  000037EB  MOV        rbx,[18002C240h]
  00003813  MOV        rdi,[18002C218h]
  0000385D  CALL       0000000180008D90h  ; -> RVA 0x00008D90
  0000386C  SHR        rcx,39h
  00003880  AND        rax,r15
  00003883  VMOVDQU    xmm8,[r12+rax]
  00003889  VPCMPEQB   xmm0,xmm8,xmm6
  0000388D  VPMOVMSKB  edi,xmm0
  00003899  TZCNT      ecx,edi
  000038A9  SHL        rcx,5
  00003915  XCHG       [18002C210h],cl
  00003A27  MOV        edx,edi
  00003A3C  RET

0x26A0 walks the PEB loader list, identifies NTDLL and parses its export directory. 0x1C50 resolves a requested export against the clean mapped image, checks that the result stays inside the recorded image bounds, scans its first 0x55 bytes for the syscall prologue 4C 8B D1 B8 (with a nearby tolerated variant), and verifies a nearby 0F 05 C3 sequence. that is a clean-stub locator and validator.

this distinction matters: 0x1C50 finds a trustworthy existing NTDLL stub for bootstrap operations such as NtCreateThreadEx. the per-request worker later reconstructs its own transient 32-byte callable slot.

0x3790 hashes the requested name and searches a synchronized internal table, returning the service number in EDX. the worker saves it at 0x2C400 and later inserts it into the generated code.

phase 5: recover the transient syscall stub

the worker at 0x6BA0 is large because optimization folded the request loop, slot selection, crypto path, stack preparation and cleanup together.

the strongest sequence is this actual RESX decode:

00007265  MOV        r12,[rbp+588h]
0000726C  IMUL       r12,rdi
00007270  ADD        r12,[rbp+578h]
...
00007BF7  MOV        [rbp+84h],r14d
00007BFE  VMOVUPS    ymm0,[rbp+80h]
00007C06  VMOVUPS    [r12],ymm0
00007C20  MOV        r8,[18002C410h]
00007C55  LEA        rcx,[rbp+5B0h]
00007C5C  LEA        rdx,[18002C418h]
00007C66  CALL       000000018001F83Bh
00007C6B  CALL       0000000180001480h
00007C88  MOV        rcx,[rbp+5B0h]
00007C8F  MOV        rdx,[rbp+5B8h]
00007C96  MOV        r8,[rbp+5C0h]
00007C9D  MOV        r9,[rbp+5C8h]
00007CA4  VMOVDQU    [rsp+60h],ymm2
00007CAA  VMOVDQU    [rsp+40h],ymm1
00007CB0  VMOVDQU    [rsp+20h],ymm0
00007CB9  CALL       r12
00007CC8  MOV        [18002C498h],rax
00007CCF  MOV        dword ptr [18002C3B8h],2

the generated slot is 32 bytes. two obfuscated templates live around .rdata RVAs 0x224F8 and 0x22518; the code XORs template bytes with changing constants and a 16-byte state, patches in the resolved service number, then stores one YMM register into the selected slot. after execution the reverse protection path runs again. AES-NI is used when available and 0x2D90 supplies the software fallback.

so the construction answer is not a neat exported make_stub() function. with this optimized build, the constructor is inlined into the worker.

phase 6: recover argument and stack handling

the mailbox permits at most 16 qword arguments. immediately before the indirect call, the worker copies argc * 8 bytes into a local frame. it loads the first four Windows x64 ABI arguments into RCX, RDX, R8 and R9, then copies the remaining twelve qwords to [rsp+0x20]..[rsp+0x7F]. the required 32-byte shadow space is preserved.

the worker resolves and repeatedly uses RtlCaptureContext. unwind-related imports and metadata handling are present elsewhere in the same subsystem. based on static evidence, context capture is part of stack/caller integrity management, but i cannot prove a complete synthetic call-stack spoof solely from these instructions. the directly observed call uses the worker's real stack with an explicitly constructed ABI frame.

the function at 0x1480 is the other critical half:

& $resx dump $sample --at 0x1480 --no-pdb --hostile --funcs --funcs-depth 4 --xrefs --strings --cfg text --recomp --no-color
& $resx dump $sample --at 0x1810 --no-pdb --hostile --funcs --funcs-depth 3 --xrefs --strings --cfg text --recomp --no-color

the output exposes the thread/process checks and the violation handoff directly:

activebreach.dll!fn_0x00001480  [RVA 0x00001480, VA 0x180001480]
  00001490  MOV        rax,gs:[60h]  ; gs:[0x60] => TEB.ProcessEnvironmentBlock
  000014AB  MOV        rax,gs:[30h]  ; gs:[0x30] => TEB.Self
  000014CC  MOV        rcx,gs:[48h]
  00001506  MOV        rax,gs:[60h]  ; gs:[0x60] => TEB.ProcessEnvironmentBlock
  000016AF  CALL       0000000180001810h  ; -> RVA 0x00001810

activebreach.dll!fn_0x00001810  [RVA 0x00001810, VA 0x180001810]
  00001824  LOCK       inc dword ptr [18002C390h]
  0000182B  MOV        rax,[18002C000h]
  0000183C  LOCK       cmpxchg [18002C010h],dl
  00001846  MOV        rsi,[18002C240h]
  00001869  MOV        rdx,[18002C018h]
  00001893  TEST       rdx,rdx
  00001896  JE         0000000180001949h  ; -> RVA 0x00001949
  000018A3  JMP        rdx

it checks PEB.BeingDebugged, verifies TEB process/thread identity, establishes the current image's executable range, and inspects candidate caller/stack values. suspicious values enter 0x1810, which increments the counter exported by ab_violation_count and calls the registered violation handler. the setter and clearer exports protect that callback with the same Rust synchronization machinery seen elsewhere.

the name antibreach is justified by observed checks. the exact policy intent behind every condition remains an inference until runtime tracing confirms which branches fire under which environment.

static invoke planning as a second opinion

i also asked the new invoke planner to infer the public boundaries independently:

& $resx invoke plan $sample ab_call --no-pdb --no-color
& $resx invoke plan $sample activebreach_launch --no-pdb --no-color

ab_call produced this plan:

Static invoke plan
  PDB used: false
  Target/body: RVA 0x00009CF0..0x00009D65 (.pdata)
  Analyzed: 5 function(s), truncated=false

Arguments
  arg0 [RCX]: pointer candidate (high)
    direct: passed via RDX to helper RVA 0x0001AFE0 at callsite RVA 0x00009D23
    transitive: dereferenced in helper RVA 0x0001DCF0 at RVA 0x0001DD4F
  arg1 [RDX]: scalar/unknown (low)
    direct: used in target flow at RVA 0x00009D0D
    direct: used in target flow at RVA 0x00009D3B
  arg2 [R8]: scalar/unknown (low)
    direct: used in target flow at RVA 0x00009D0A
    direct: used in target flow at RVA 0x00009D2E

Writable module state
  ? RVA 0x0002C3B1:1 .data read/write (low) -> review before capture
  ? RVA 0x0002C3B8:72 .data read/write (low) -> review before capture
  ? RVA 0x0002C408:17 .data read/write (low) -> review before capture
  ? RVA 0x0002C498:8 .data read (low) -> review before capture

Imported behavior
  0x000011F8 KERNEL32.dll!SwitchToThread (direct thunk)
  0x000012EE api-ms-win-core-synch-l1-2-0.dll!WakeByAddressSingle (IAT)
  0x000013DC api-ms-win-core-synch-l1-2-0.dll!WakeByAddressSingle (IAT)
  0x00009D13 api-ms-win-crt-string-l1-1-0.dll!strlen (direct thunk)

the launcher plan independently reached the clean-image query path:

Static invoke plan
  PDB used: false
  Target/body: RVA 0x0000A200..0x0000A283 (.pdata)
  Analyzed: 26 function(s), truncated=false

Arguments
  arg0 [RCX/XMM0]: scalar/unknown (low)
    direct: passed via RCX to helper RVA 0x00003FE0 at callsite RVA 0x0000A212
  arg1 [RDX/XMM1]: scalar/unknown (low)
    direct: passed via RDX to helper RVA 0x00003FE0 at callsite RVA 0x0000A212

Writable module state
  ? RVA 0x0002C210:2 .data read/write (low) -> review before capture
  ? RVA 0x0002C218:24 .data read/write (low) -> review before capture
  ? RVA 0x0002C240:8 .data read (low) -> review before capture

Imported behavior
  0x000040A7 ntdll.dll!NtQueryVirtualMemory (IAT)
  0x00004115 ntdll.dll!NtQueryVirtualMemory (IAT)
  0x0000419D VCRUNTIME140.dll!memcpy (direct thunk)
  0x00004563 kernel32.dll!QueryDosDeviceW (IAT)

for ab_call, it identified arg0 as a pointer candidate and found the writable mailbox state plus WaitOnAddress/wake behaviour. for the launcher it followed the resolver and mapper graph into NtQueryVirtualMemory and the initialization globals. this was useful corroboration, but i did not accept every transitive helper reference as equal evidence. direct target evidence is stronger than a dereference several calls down.

reconstructed pipeline

consumer
  |
  v
ab_call (0x9CF0)
  validate UTF-8 name and argc <= 16
  |
  v
dispatcher (0x1170)
  lock -> write global mailbox -> wake worker -> wait
  |
  v
worker (0x6BA0)
  mapper/init (0x3FE0)
  -> name-to-service-number lookup (0x3790)
  -> choose executable pool slot
  -> reconstruct/decrypt 32-byte syscall thunk
  -> build x64 argument frame
  -> anti-breach validation (0x1480)
  -> CALL generated slot in r12
  -> save RAX and wake dispatcher
  -> re-encrypt/scrub slot

startup is a parallel bootstrap path:

activebreach_launch (0xA200)
  -> initialize clean mapped state (0x3FE0)
  -> PEB/export resolution (0x26A0)
  -> clean syscall-stub validation (0x1C50)
  -> NtCreateThreadEx(worker=0x6BA0)

then i stopped theorising and invoked it

after the static pass, i got explicit approval to execute the DLL through RESX. i started with the least interesting export on purpose:

$resx = '.\target\release\resx-cli.exe'
& $resx invoke $sample ab_violation_count `
  --invoke-timeout 2000 --verbose --no-pdb --no-color
Ryftenius (R) RESX Reverse Engineering Suite Extended, Version 1.15.0
Copyright (C) Ryftenius.
SEE DEEPER
RESX: command=invoke input=".\\resx-fixtures\\.internal_fixtures\\activebreach.dll" json=false symbols_disabled=true
RESX: diagnostics use stderr; analysis output retains its original format
✓ Case 1: returned (55535 us)
  Worker integrity: requested RID 0x1000; actual low (RID 0x1000)
  ✓ Call 1 ab_violation_count: returned; RAX=0x0000000000000000;
    XMM0=00000000000000000000000000000000; LastError=0; 5 us
  Native call address=0x7FFF41041000; caller RSP=0xF6B093E050; inputs=[]
  Return registers: RAX=0000000000000000 RDX=0000000000000000
    R8=0000000000000000 R9=0000000000000000

that Worker integrity line is evidence from the worker report, not an assumption based on the command line. i requested low IL and the function running inside the target worker observed RID 0x1000. the default remains low; for compatibility tests i can explicitly select untrusted, medium, high, system, or current. RESX rejects an IL above its own token instead of attempting elevation.

that established that the DLL loaded and its simplest state accessor returned normally. next i built a two-call RESXI session so both calls would execute inside the same worker process:

"calls": [
  {"function":"activebreach_launch","arguments":[]},
  {"function":"ab_call","arguments":[
    {"kind":"buffer","name":"syscall_name","offset":0},
    {"kind":"integer","value":0},
    {"kind":"integer","value":0}
  ]}
],
"buffers": {
  "syscall_name":"4e745969656c64457865637574696f6e00"
}

that buffer is NtYieldExecution\0. this gave me the first end-to-end runtime result:

✓ Case 1: returned (54007 us)
  ✓ Call 1 activebreach_launch: returned; RAX=0x0000000000000000;
    LastError=0; 1127 us
  ✓ Call 2 ab_call: returned; RAX=0x0000000040000024;
    LastError=0; 122 us
  Native call address=0x7FFF4AD39CF0; caller RSP=0x65D391E3C0;
    inputs=[Buffer { name: "syscall_name", offset: 0 },
            Integer { value: 0 }, Integer { value: 0 }]

0x40000024 is STATUS_NO_YIELD_PERFORMED. that is exactly the kind of result NtYieldExecution can return when there was no other runnable thread to yield to. the important part for this analysis is that activebreach_launch returned, the worker accepted the name, resolved it, executed the request, and propagated the native status back through ab_call in 122 microseconds.

catching the worker in the act

a returned call is too fast to capture the mailbox mid-flight, so i made a second session call:

NtWaitForSingleObject((HANDLE)-1, FALSE, NULL)

the -1 pseudo-handle refers to the current process and the null timeout makes the request wait. i bounded the outer RESX worker to 15 seconds, found its child by parent PID, and used invoke capture while the request was blocked:

& $resx invoke capture 29484 $sample ab_call .\blocked-live.resxi `
  --capture-module-range 0x2C000:0x5F0 `
  --arg 0=ascii:NtYieldExecution --arg 1=0 --arg 2=0 `
  --invoke-timeout 2000 --no-pdb --no-color

the --arg values describe the call that the saved session would replay; they are not claims about the request already running in PID 29484. the selected module range is what captured that live request.

RESX confirmed the capture without executing the newly recorded call:

✓ Saved native call inputs to ...\blocked-live.resxi; target has not executed.
Native session: ...\activebreach.dll
SHA-256: 2cc0b4f9f619e0c503f2dba017a0d4e9619c477c45926cb2671ff45e5ae49929
Calls: 1
Timeout: 2000 ms
live_source.pid: 29484
module_state[0].rva: 180224 (0x2C000)

i exported the session and decoded the captured .data fields RESX had recorded. comparing an idle worker with the blocked request produced this:

                              idle worker                  blocked request
0x2C3B8 request state         0                            1
0x2C3BC name length           0                            21
0x2C3C0 name                  ""                           "NtWaitForSingleObject"
0x2C400 service number        0                            4
0x2C410 argument count        0                            3
0x2C418 arg0                  0                            0xFFFFFFFFFFFFFFFF
0x2C420 arg1                  0                            0
0x2C428 arg2                  0                            0
0x2C498 result                0                            0, call still pending

this is the runtime evidence i wanted. while the syscall was still blocked, RESX captured the plaintext request name, resolved SSN 4, exact arguments, and pending mailbox state. the outer invocation then hit its planned 15-second timeout:

✗ Case 1: timeout (15027493 us)
  ✗ worker wait status 258; budget 15000 ms; worker exit=Some(0)
Error: native invocation incomplete; see worker stop reason

the timeout was the experiment boundary, not an unexplained crash.

i also replayed the captured live session instead of assuming that "saved" meant "self-contained":

& $resx invoke .\blocked-live.resxi --verbose --trace --no-color
✗ Case 1: timeout (2022628 us)
  Rehosted capture: PID 29484 source base=0x7FFF41880000;
    worker base=0x0; module bytes=1520; rebased pointers=0; fixed buffers=0
  ✗ worker wait status 258; budget 2000 ms; worker exit=Some(0)
Error: native invocation incomplete; see worker stop reason

that result makes sense for this particular snapshot. i restored the mailbox and .data, including the byte saying the original worker was ready, but i did not recreate the original worker thread or its private pool. ab_call therefore waited for a worker that did not exist. it also exposed a diagnostic worth fixing: worker base=0x0 and rebased pointers=0 show that this replay did not establish a useful destination module base for rebasing the captured pointers.

that diagnostic was fixed after this run. current builds render the missing base as worker base=unavailable (worker did not report setup) instead of presenting zero as if it were an address.

where RESX hit its current wall

i also tried the runtime collector because it advertises memory and API traces:

& $resx runtime $sample --runtime-execute --runtime-memory `
  --runtime-trace --runtime-sample-ms 1500 --out runtime-capture.json

the actual result was:

Error: AppContainer collector supports x64 user-mode EXEs up to 64 MiB;
DLLs, drivers, and other subsystems are not launched

so RESX can persist explicitly selected live DLL module ranges, and invoke reports call-boundary registers and owned buffers. it cannot currently enumerate and capture the worker's transient private executable pool or provide internal instruction/frame/API tracing for this DLL. --trace is the same call-boundary report, not an instruction trace. the static decode proves where the slot is assembled and called; the live mailbox capture proves the request reached that execution path. proving the slot's exact 32 runtime bytes before and after cleanup still needs a DLL-capable runtime collector or a bounded debugger backend in RESX.

capturing and carving the generated stub

the mailbox capture proved the worker had accepted a request, but it did not yet show the bytes activebreach actually executed. i repeated the blocked NtWaitForSingleObject call and added bounded discovery of committed private executable memory:

$capture = "$env:LOCALAPPDATA\Temp\resx-activebreach-runtime\active-stub-release.resxi"

& $resx invoke capture 32644 $sample ab_call $capture `
  --capture-module-range 0x2C000:0x5F0 `
  --capture-private-exec `
  --arg 0=ascii:NtYieldExecution --arg 1=0 --arg 2=0 `
  --invoke-timeout 2000 --no-pdb --no-color

PID 32644 was the disposable RESX worker while its NtWaitForSingleObject(-1, FALSE, NULL) request was pending. the arguments on the capture command describe the later replay call; they do not rewrite the live request. invoke inspect recorded the provenance needed to tie the session to the exact sample and process. i reduced its huge captured-byte fields to lengths for the blog output below:

Native session: \\?\C:\$ARSENAL\TitanToolchain\RESX\resx-fixtures\.internal_fixtures\activebreach.dll
SHA-256: 2cc0b4f9f619e0c503f2dba017a0d4e9619c477c45926cb2671ff45e5ae49929
Calls: 1
Timeout: 2000 ms
live_source.pid: 32644
live_source.module_base: 0x7FFF41020000
buffer arg0: 17 bytes
buffer exec_private_00_23518E90000_p40: 831488 bytes at 0x23518E90000
module_state[0]: RVA 0x2C000, 1520 bytes

the p40 suffix is the captured protection value, PAGE_EXECUTE_READWRITE. an idle control worker produced no private executable candidate. the region appeared only while the request was active. i passed that exact captured buffer back to RESX's bounded scanner:

& $resx invoke scan-region $capture `
  exec_private_00_23518E90000_p40 --no-color
Captured region exec_private_00_23518E90000_p40: 831488 bytes; 1 syscall-shaped stub(s)
  ✓ offset=0x0 VA=0x23518E90000 SSN=0x4 return_nearby=true bytes=4c8bd1b8040000004883c4080f054883ec08c3cccccc

that output is the runtime allocation, address, recovered service number, return check, and exact bytes in one result. decoding the 22-byte hit gives:

4C 8B D1       mov r10, rcx
B8 04 00 00 00 mov eax, 4
48 83 C4 08    add rsp, 8
0F 05          syscall
48 83 EC 08    sub rsp, 8
C3             ret
CC CC CC       int3 padding

SSN 4 matches the plaintext NtWaitForSingleObject mailbox field captured in the same live request. the stack movement is also concrete now: the generated stub adds eight to RSP before SYSCALL, restores it afterwards, and returns to the worker.

i then made RESX carve the scanner hit rather than copying bytes out of terminal output:

$stub = "$env:LOCALAPPDATA\Temp\resx-activebreach-runtime\activebreach-stub-release.bin"
& $resx invoke dump-stub $capture `
  exec_private_00_23518E90000_p40 $stub --no-color
✓ Dumped 22-byte syscall stub from exec_private_00_23518E90000_p40+0x0
  SHA-256 528b3b08aa1248213539c93506f73cf82340cfd38db51c59fb8ba660eef89226

i verified the retained artifact independently after RESX wrote it:

$bytes = [Convert]::ToHexString([IO.File]::ReadAllBytes($stub))
$hash = (Get-FileHash -LiteralPath $stub -Algorithm SHA256).Hash
"length=$((Get-Item -LiteralPath $stub).Length)"
"sha256=$hash"
"bytes=$bytes"
length=22
sha256=528B3B08AA1248213539C93506F73CF82340CFD38DB51C59FB8BA660EEF89226
bytes=4C8BD1B8040000004883C4080F054883EC08C3CCCCCC

the session identity, live PID, allocation address, scanner result, decoded instructions, carved bytes, length and SHA-256 all agree. that is the evidence chain i was missing in the first pass.

RESX notes from doing this blind

RESX got me from PE boundary to a defensible architecture using its own exports/imports, behaviour scan, strings, recursive function discovery, xrefs, CFG, pseudocode and invoke planning. the biggest analyst UX issue was provenance: some xref/call-tree output attributed internal functions to the nearest export, and transitive helper evidence could drown out the direct callsite that established the conclusion. intelli also needs stronger filtering before DLL/PDB strings are presented as network indicators.

none of those stopped the analysis, but fixing direct-versus-transitive evidence ranking would make this workflow much faster on a stripped sample. the correct result came from correlating several RESX views instead of treating any single heuristic label as truth.