aspnet_regsql.exe, injection itself not completed; injected payload not recoveredExecutive Summary
A desktop utility that isn't one
The sample presents itself as Peridot.DesktopUtility, a signed-looking Windows GUI app with a real message loop and a clean import table. It is a front. Underneath sits a compact, operator-configurable loader with two independent code-execution paths and a layered evasion stack purpose-built to survive automated sandboxes, resist decompilers, and detect the very tooling an analyst would use against it.
What makes this sample worth writing up is not any single trick but the combination of a modern packaging choice with classic tradecraft: it is compiled with .NET 11 NativeAOT, which turns managed C# into native code that .NET decompilers cannot read and that produces a benign-looking native import table. Every offensive API it needs is resolved at runtime by walking process memory, so nothing incriminating appears in the import directory at all.
This analysis was carried out in two passes. The first was purely static: the malware was never executed, and even the encrypted second-stage shellcode was recovered and decrypted offline by reverse-engineering the runtime data format rather than running the code that unpacks it. The second was a controlled live debugging session in an isolated VM, stepping the sample through its own real logic and reading its own memory as it ran.
Every claim in this report, including the fully decrypted operator configuration, the actual process-hollowing target, and the exact set of Windows APIs the loader hand-resolves for injection, was recovered directly, either from the disassembly or from the sample's own live memory as we stepped through it. No third-party sandbox report or public write-up was used as a source for anything below. Where the live debugging session stopped short of a full answer, that is stated plainly rather than filled in from elsewhere.
On tooling: the static reverse engineering (disassembly navigation, decompilation, cross-referencing, and the offline rehydration/decryption work in section 4) was carried out by an AI assistant (Claude Code, via a Ghidra MCP bridge) working under the analyst's direction. The live debugging in section 6 was hands-on-keyboard by the analyst in x64dbg; the AI's role there was as a real-time assistant, reading disassembly alongside the analyst, proposing breakpoints and next steps, and logging findings as they were confirmed.
Section 01 · The Disguise
Why it looks clean
On first pass, almost everything about this binary reads as benign. It is not packed: standard section names and sizes, a full 144-entry import table, a readable Win32 manifest, and unwind data consistent with the code. It requests no elevation (asInvoker), and it genuinely draws a window, CreateWindowExW, a RegisterClassW/GetMessageW/DispatchMessageW loop, common controls, per-monitor DPI awareness.
Crucially, there are no networking imports (no WinINet, WinHTTP, or sockets), and the System.Net.Http.* strings present are just NativeAOT feature-switch names that ship in every trimmed binary.
Automated tooling amplified the illusion. A behavior scanner fired 9 hits and an anti-analysis scanner fired 173, but every one was traced to stock .NET runtime code, NUMA-aware GC allocation flagged as "code injection," large-page privilege acquisition flagged as "privilege escalation," lazy P/Invoke resolution flagged as "defense evasion," and 153 INT3 padding bytes flagged as "suspicious instructions."
Automated verdicts were noise. Roughly 95% of the 5,190 recovered functions are runtime, GC, and CRT code. Every automated malicious-behavior hit sat above the managed/native boundary at 0x140087A00, i.e. inside the runtime, not the app. Taking those hits at face value would have exonerated the sample.
The real logic lives in a small region at the front of .text, the managed code the ILCompiler generated, roughly 0x140001000-0x140087A00. The boundary was established precisely from the NativeAOT module registration, and all application analysis was confined below it.
Section 02 · The Execution Chain
An async state machine, one gate at a time
Main compiles down to a compiler-generated asynchronous state machine, dispatched from a single function that we came to know well (0x140061B6C). Every stage below was confirmed either from its decompiled logic, from live observation this session, or both, marked accordingly.
Section 03 · The Evasion Stack
Nothing incriminating in the imports, by design
The clean import table is not an accident of NativeAOT; it is engineered. The loader builds its own API resolution machinery so that offensive calls never touch the import directory:
- Manual PE export parsing, two resolvers walk each module's export directory by hand, one by decrypted name, one by a custom hash (seed
0xC6A4A793). Both explicitly reject forwarded exports. - API hashing, recovered hashes include
0x31BFBD23→CreateProcessWand0x73B85A0E→ResumeThread, confirmed from call-shape evidence. - Indexed encrypted strings: every string is stored in an obfuscated table of 65+ slots and decrypted on demand, which is why every static string scan came back empty of application content.
- W^X respected, the local loader maps memory RW, then flips it to RX. It never creates an RWX window, defeating naive detections.
- Payload erasure, the shellcode buffer is released with
MEM_RELEASEthe instant it returns, frustrating post-execution memory forensics. - ASLR disable on the hollow target: during hollowing it clears
IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE(bit0x40) on the injected image. The loader's own image never needs this trick: its own PE header ships with relocations stripped and that bit already clear, which we confirmed directly from the file header; it always loads at a fixed base regardless of system ASLR. - Hook-detecting export resolver, validated live. The routine that resolves the nine hollowing-related NTDLL exports doesn't just look up an address; it rejects a function whose prologue has been modified. We proved this directly: with a ScyllaHide hook active on
NtSetInformationThread, resolution of that one export failed and the whole hollowing-prep stage aborted. Disabling that single hook (nothing else) made it succeed. This is a genuine anti-EDR-hook capability, not an inference from static code shape. - Debugger detection with a silent kill, validated live.
blocklist_scanterminated our debugging session outright when it detected the attached debugger, with no crash dialog, no visible error. Consistent with the rest of the sample's posture: look benign and leave, rather than crash and draw attention.
The mouse gate is a real, satisfiable barrier
The human-activity gate demands cursor motion that looks like a human hand and loops until satisfied:
- 5 cursor samples, 80 ms apart;
- rejects a frozen cursor (any zero delta);
- rejects teleporting motion (any step > 400 px);
- requires meaningful travel (ignores sub-8 px jitter);
- requires all three turn angles between segments to be under 45°, i.e. smooth, low-curvature movement.
This heuristic was reconstructed entirely from the static disassembly, then validated live: on the actual debugging run, genuine mouse movement satisfied the check on the first real attempt, no forcing required. It is a real bar against headless automation, not a wall against a human analyst, or against any automation that convincingly simulates one.
Section 04 · The Methodology Problem
The payload that reads as zeros
The encrypted shellcode lives at 0x140152270, but a static read there returns nothing but zeros. That is not an empty payload slot. It is a property of NativeAOT.
NativeAOT compresses initialized data into a DehydratedData blob in .rdata and expands it into .data during startup. The .data section's on-disk size is only 8 KB while its virtual size is ~243 KB; anything past the raw data is BSS, filled in at runtime. So the addresses holding the shellcode, the config, and the string table are all blank on disk.
This exact trap was hit and corrected mid-case. An address reading as zeros was briefly taken as evidence of an unconfigured payload slot. It wasn't, the bytes are simply materialized later. For any NativeAOT sample, absence of bytes is not evidence of an empty slot until you've checked for a DehydratedData section.
The obvious way to recover the bytes is to run the malware. It wasn't necessary for this one blob. Rehydration is a pure memory transform with no API calls, so a single record can be reproduced offline without touching the runtime that expands it. The command encoding for one specific record was recovered directly from the compressed stream:
# A Copy of 0xAAC (2732) bytes has a deterministic header payload = 0xAAC = 2732 marker = F0 90 0A # followed by 2732 raw ciphertext bytes # Searching the whole image for this exact marker returned exactly one hit, # pinpointing the ciphertext in .rdata with no ambiguity.
Decryption used the LCG keystream lifted from the loader itself. The first attempt produced valid x86-64 code (no offset brute-forcing), which independently confirmed both the command location and the key constants:
seed = 0xD0248E86 for i in 0 .. 0xAAC: seed = (seed * 0x6C078965 + 0x5BD1E995) & 0xFFFFFFFF plain[i] = cipher[i] ^ ((seed >> 16) & 0xFF) # 0x6C078965 = MT19937 init multiplier; 0x5BD1E995 = MurmurHash2 'm', both # repurposed as LCG coefficients. Plaintext SHA-256: 6849F41D…310CC30B3
We later tried to generalize this into a full offline decoder for the entire dehydration stream, to pull the config and the whole 65-slot string table the same way, with zero execution. It didn't work out: the interpreter function that walks the compressed command stream was never located despite an extensive search, and a byte-level guess at extending the single-record encoding didn't check out arithmetically. That path was abandoned in favor of reading the same data live, in a debugger, once we had a reason to run the sample anyway, see section 6.
Section 05 · The Recovered Shellcode
A string-free second-stage worker
The decrypted 2,732-byte blob is not hand-written assembly; it is a compiled MSVC x64 routine with register-homing and XMM saves, and a clear signature:
shellcode(wchar_t* path, uint32 flags, void* paramBlock)
It validates its wide-character path argument before doing anything, then:
- performs its own PEB-based module resolution in three independent places, separate from the .NET wrapper's resolver;
- checks the current process's elevation state;
- stages a copy of itself into an environment-relative directory, consistent with a UAC-bypass / local-persistence technique gated on that elevation check;
- calls roughly ten resolved functions indirectly.
Notably absent: no direct syscalls, no RDTSC/CPUID timing or hypervisor checks, no embedded PE, and no strings whatsoever. All anti-analysis lives in the .NET wrapper; the payload's strings arrive from a caller-supplied parameter block that the loader fills from its decrypted string table.
This shellcode was allowed to execute for real during the live debugging session (section 6); its self-copy and elevation-check logic ran as described here, on an isolated analysis VM. The VM was reverted afterward.
Section 06 · Live Debugging
Reading the loader's own memory while it ran
Everything in this section was observed directly in x64dbg, attached to the sample in an isolated, snapshot-backed VM, cross-checked against the Ghidra disassembly as we went. The analyst drove the debugger hands-on-keyboard throughout; the AI assistant worked alongside, reading disassembly, proposing breakpoints, and keeping the running log, but every register read, memory dump, and decision to continue was the analyst's own. Several runs ended in a debugger-detected kill, a stack-alignment crash from our own tooling error, or a silently broken async continuation; each is reported below as what it was, not smoothed over.
Fixed base, no ASLR
Before touching the debugger, the PE header confirmed the loader always loads at its preferred base, 0x140000000: the File Header Characteristics field includes IMAGE_FILE_RELOCS_STRIPPED, and DllCharacteristics never sets DYNAMIC_BASE. No .reloc section exists at all. Every static address in this report is therefore a live address with zero rebasing math, confirmed the moment the sample was launched under the debugger.
The first stop after launch sits inside ntdll.dll, at an address like 0x7FFC46600861: the OS loader's own default system breakpoint, present on every Windows process and unrelated to this sample. One F9 later, RIP lands at 0x1400DFC10, comfortably inside .text, and the fixed base is confirmed before a single byte of application logic has run.
The configuration, fully decoded
decrypt_and_parse_config returned a non-null pointer live: this build is configured, not a builder placeholder. The full object was dumped and decoded field by field:
| Offset | Value | Field |
|---|---|---|
| +0x08 | 0x14301E588 | blob2 pointer, not dereferenced this session |
| +0x10 | 0x142C056B8 | target path pointer, decoded, see below |
| +0x18 | 0x142C05378 | own module path pointer, 108 chars, pointer recovered, string not decoded this session |
| +0x20 | 0x142C05630 | blob3 pointer, not dereferenced this session |
| +0x28 | 63 | target path length (chars) |
| +0x2C | 108 | own path length (chars) |
| +0x30 | 0 (false) | "::self::" flag, not self-injection in this build |
| +0x31 | 1 (true) | pars flag, behavior not correlated to an observed stage |
| +0x32 | 0 (false) | defx flag, passed into shellcode_loader_run as an argument |
| +0x33 | 1 (true) | avmn flag, gates blocklist_scan; confirmed this is why it ran |
| +0x34 | 24 bytes | uacb block, passed into shellcode_loader_run, dumped, internal structure not decoded |
| +0x50 | 72 bytes | dumped; contains the value 0x400000 twice (possibly image-base/RVA-shaped), not yet interpreted |
The raw dump, exactly as x64dbg showed it, address on the left, bytes in the middle, ASCII on the right:
0x142C05750: 50 38 16 40 01 00 00 00 88 E5 01 43 01 00 00 00 P8.@.....a.C.... 0x142C05760: B8 56 C0 42 01 00 00 00 78 53 C0 42 01 00 00 00 .V.B....xS.B.... 0x142C05770: 30 56 C0 42 01 00 00 00 3F 00 00 00 6C 00 00 00 0V.B....?...l... 0x142C05780: 00 01 00 01 A7 D2 18 5F 01 1F 42 0B 97 45 5C A6 ......._..B..E\. 0x142C05790: 8C EB 2F BD 07 09 50 BC 39 3C 02 56 00 00 00 00 ../...P.9<.V.... 0x142C057A0: EE 82 01 00 00 00 00 00 00 00 40 00 00 00 00 00 ..........@.....
That dump also let us cross-check the tooling itself. Right at the confirmed return of decrypt_and_parse_config, the disassembly reads exactly as the static decompile predicted, the function's ret immediately followed by the caller's next call, with no drift between what Ghidra inferred and what the live process actually executed:
0x1400602AC | C3 | ret 0x1400602AD | E8 26D1FBFF | call FUN_140098040 ; stores the config pointer 0x1400602B2 | CC | int3 ; padding 0x1400602B4 | 55 | push rbp ; next function's prologue
The hollowing target
The target path pointer resolves to a clean, fully-formed string, and its length matches the config's stored length exactly (63 characters). The dump shows the standard managed-string layout, a method-table pointer, then a length, then the UTF-16 characters themselves:
0x142C056B8: 98 FC 16 40 01 00 00 00 3F 00 00 00 00 00 00 00 .....@....?..... 0x142C056C8: 43 00 3A 00 5C 00 57 00 49 00 4E 00 44 00 4F 00 C.:.\.W.I.N.D.O. 0x142C056D8: 57 00 53 00 5C 00 4D 00 69 00 63 00 72 00 6F 00 W.S.\.M.i.c.r.o. 0x142C056E8: 73 00 6F 00 66 00 74 00 2E 00 4E 00 45 00 54 00 s.o.f.t...N.E.T. 0x142C056F8: ... continues for 63 UTF-16 characters in total ...
Decoded: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regsql.exe
That's aspnet_regsql.exe, the legitimate, Microsoft-signed ASP.NET SQL Server registration utility that ships with .NET Framework 4.x, at its standard system path. A deliberate choice: a trusted, signed, rarely-monitored binary, consistent with defense-evasion-motivated target selection for T1055.012 rather than an arbitrary pick.
Hollowing prep: nine APIs, hand-resolved
Before the RunPE stage runs, the loader resolves nine NTDLL exports by name, not through the import table, and registers its own vectored exception handler. All nine were observed resolving successfully live, once a single ScyllaHide hook (on NtSetInformationThread) was disabled:
| Export | Typical role in process hollowing |
|---|---|
| NtReadVirtualMemory | read remote process memory |
| ZwGetContextThread | read the suspended thread's register context |
| ZwSetContextThread | redirect the suspended thread's entry point |
| ZwAllocateVirtualMemory | allocate space for the replacement image |
| NtWriteVirtualMemory | write the replacement image into the target |
| NtProtectVirtualMemory | fix up page protections after writing |
| ZwUnmapViewOfSection | unmap the target's original image |
| ZwSetInformationThread | commonly used for ThreadHideFromDebugger |
| NtQueryInformationThread | read back thread state |
This is a textbook process-hollowing API set, and, critically, it was hand-resolved by walking ntdll's export table rather than imported normally. A process resolving exactly this set this way, then spawning aspnet_regsql.exe, is a strong, specific behavioral signal (see section 9).
Getting all nine took a second pass. The first run resolved seven cleanly and stalled on the eighth. A breakpoint on the resolver's per-slot lookup, reading RCX for the slot number and RDX for the export name at each hit, named the failure precisely: NtSetInformationThread, the one export ScyllaHide patches to neutralize ThreadHideFromDebugger. Unchecking just that single hook, nothing else, was the difference between failure and all nine resolving cleanly. That is what turned "the resolver rejected a hooked function" from a hypothesis into a confirmed capability.
Two debugging mistakes made it into this log too, both fixed and both instructive. To watch the loader clear its own gates without letting the risky ones actually run, the technique was to fake a function return: read the return address sitting at [RSP], write it into RIP, and continue past the call as if it had happened.
The first attempt set RIP to the literal value of RSP itself, the stack address, rather than the value stored there. That pointed execution at non-executable stack memory and crashed immediately on the next instruction fetch. Recovered with a VM snapshot revert.
The second attempt fixed that, but missed a subtler step: a real ret instruction also advances RSP by 8 to discard the return-address slot, and the fake return only rewrote RIP. The stack sat 8 bytes short of where the calling convention expected it, and two stages later that surfaced as an access violation, a MOVAPS instruction inside anti_sandbox_mouse_check's own prologue faulting because its target address was no longer 16-byte aligned. The fix was one extra step: after setting RIP from [RSP], also advance RSP by 8, exactly like a real ret would. From then on the skip technique worked cleanly for the rest of the session.
Anti-analysis: encountered rather than inferred
Four separate anti-analysis behaviors were triggered directly during this session, not just read from disassembly:
- Debugger kill.
blocklist_scanterminated the process outright the first time it ran under a plain, unmasked debugger. - Genuine mouse-gate pass. Real cursor movement satisfied the human-activity check on the first real attempt.
- Fragile stage handoff (a methodology finding, not a malware feature). The async dispatcher's stage transitions carry internal bookkeeping. Fully bypassing a stage function by redirecting execution past its call, rather than letting it actually run, desynchronized that bookkeeping: the state machine silently stopped advancing, with no crash and no error, and the process just exited cleanly. Reproduced twice, then confirmed by contrast: letting the same function run for real fixed it immediately. Worth knowing for anyone else live-debugging an async-compiled .NET state machine.
- Hook-detecting resolver. Covered above, confirmed by toggling a single ScyllaHide hook and watching resolution flip from failure to success.
Where it stopped
The debugging session reached process_hollow_runpe (0x140060770), the final stage of the chain. The analysis was deliberately stopped at that point rather than carried through to a completed injection.
No injection was completed. No final payload was recovered. No network activity, persistence mechanism, or credential-theft behavior was observed in this analysis. Everything above the "analysis stopped here" line in section 2's diagram is directly validated; everything below it (what actually runs inside the hollowed aspnet_regsql.exe, and what that payload does) is unknown from this analysis and is reported as an open question in section 11, not guessed at.
Section 07 · Capability Summary
What was confirmed, and what wasn't
| Capability | Present | Evidence |
|---|---|---|
| Execution, in-process shellcode | Yes | 0xAAC-byte LCG-encrypted blob, mapped RX, executed live this session |
| Execution, process hollowing | Attempted, not completed | RunPE code path reached live, at its final stage; analysis was deliberately stopped before injection completed |
| Defense evasion, no static strings | Yes | indexed encrypted string table, 65+ slots |
| Defense evasion, clean imports | Yes | PEB walk + manual export parsing |
| Defense evasion, API hashing | Yes | seed 0xC6A4A793 |
| Defense evasion, hook-detecting resolver | Yes | rejects a hooked NtSetInformationThread, confirmed live |
| Defense evasion, debugger detection + kill | Yes | blocklist_scan terminates the process, confirmed live |
| Defense evasion, ASLR disable (hollow target only) | Yes | clears DllCharacteristics & 0x40 on the target image |
| Defense evasion, payload erasure | Yes | MEM_RELEASE after shellcode returns |
| Anti-sandbox / VM | Yes | human mouse-motion gate, genuine pass confirmed live |
| Self-injection mode | Not used, this build | "::self::" sentinel exists; this build's flag = 0 (targets aspnet_regsql.exe) |
| Privilege escalation (UAC) | Likely, not confirmed end-to-end | elevation check + self-stage in shellcode (static); uacb config field present |
| Persistence | Not observed | analysis stopped before injection completed |
| Credential access / further payload behavior | Not observed | injected payload not recovered in this analysis |
| C2 / exfiltration | Not observed | no network activity observed in this analysis |
Section 08 · ATT&CK Mapping
Techniques observed
Only techniques directly evidenced by this analysis, statically, live, or both. Techniques that would depend on the unrecovered final payload (credential access, C2, persistence) are intentionally left off; see section 11.
| Tactic | Technique | ID | Source |
|---|---|---|---|
| Defense Evasion | Process Injection: Process Hollowing | T1055.012 | static + live (attempted) |
| Defense Evasion | Reflective Code Loading | T1620 | static + live |
| Defense Evasion | Obfuscated Files or Information | T1027 | static |
| Defense Evasion | … Dynamic API Resolution | T1027.007 | static + live |
| Defense Evasion | Deobfuscate/Decode Files or Information | T1140 | static + live |
| Defense Evasion | Native API | T1106 | static + live |
| Defense Evasion | Debugger Evasion | T1622 | live only, hook-detecting resolver + debugger kill |
| Defense Evasion | Sandbox Evasion: User Activity Checks | T1497.002 | static + live |
| Execution | Shared Modules / manual module mapping | T1129 | static |
| Priv. Escalation | Abuse Elevation Control: Bypass UAC | T1548.002 | static (shellcode) |
Section 09 · Detection Content
Rules built from what we actually found
Two tiers, because the config-placeholder magics and the code-level constants behave differently: the placeholders only fire on unstamped builder templates, while the FourCC tags and algorithm constants are baked into every build's code regardless of configuration.
YARA: code-level constants (fires on any build)
rule NativeAOT_ProcessHollow_Loader { meta: description = "NativeAOT process-hollowing loader: config-tag and crypto constants" confidence = "high - config FourCC tags are compiled into the parser, present in every build" strings: // FourCC config tags, stored little-endian as they appear in the file $tag_pars = { 73 72 61 70 } // 0x70617273 'pars' $tag_uacb = { 62 63 61 75 } // 0x75616362 'uacb' $tag_defx = { 78 66 65 64 } // 0x64656678 'defx' $tag_avmn = { 6e 6d 76 61 } // 0x61766d6e 'avmn' // Shellcode LCG keystream constants (immediate operands) $lcg_mul = { 65 89 07 6c } // 0x6C078965 LE $lcg_add = { 95 e9 d1 5b } // 0x5BD1E995 LE condition: uint16(0) == 0x5A4D and 3 of ($tag_pars, $tag_uacb, $tag_defx, $tag_avmn) and 1 of ($lcg_mul, $lcg_add) }
YARA: unconfigured builder template only
rule NativeAOT_ProcessHollow_Loader_Unstamped { meta: description = "Same loader family, still carrying builder placeholder values - i.e. an un-stamped template, not a deployed sample" confidence = "high for flagging templates; a deployed/configured build will NOT match this rule" strings: $ph1 = { 01 00 fe ca } // 0xCAFE0001 LE, placeholder offset $ph2 = { 02 00 fe ca } // 0xCAFE0002 LE, placeholder length condition: uint16(0) == 0x5A4D and 1 of ($ph1, $ph2) }
A caution on all of these constants: they are strong detection anchors but weak attribution ones. 0x6C078965 is the public MT19937 initialization multiplier and 0x5BD1E995 is MurmurHash2's 32-bit constant; 0xC6A4A793 (used in the export-hashing routine, not included above since it's a runtime-computed seed rather than a fixed immediate we located precisely) is the top half of MurmurHash2's 64-bit constant. These get reused across unrelated families. The FourCC tags together are the more discriminating fingerprint; they are this specific loader's own config format, not a borrowed primitive.
Behavioral: process creation / hollowing pattern
This is written from what we watched happen live: the hand-resolved nine-export set immediately followed by a suspended spawn of aspnet_regsql.exe. Marked experimental: it is derived from a single analyzed sample, not tuned against a production log corpus.
title: Suspicious aspnet_regsql.exe launch consistent with process hollowing
status: experimental
description: >
aspnet_regsql.exe is a legitimate .NET Framework SQL registration
utility, not something normally launched outside SQL Server tooling
or an installer context. Flag it being spawned by an unrelated parent,
especially alongside remote memory allocation / write / thread-context
APIs in the same parent process shortly before the spawn - consistent
with T1055.012 as observed live against this exact loader.
logsource:
category: process_creation
product: windows
detection:
target:
Image|endswith: '\aspnet_regsql.exe'
legit_parents:
ParentImage|contains:
- '\Microsoft SQL Server\'
- '\devenv.exe'
- '\msiexec.exe'
condition: target and not legit_parents
level: high
tags:
- attack.defense_evasion
- attack.t1055.012
Analyst note: hook-detection as a signal
The resolver's hook-detection behavior (section 6) doesn't leave clean host telemetry of its own; it's something the malware does to the environment, not an event a log source records. The practical takeaway for detection engineering: if EDR telemetry shows a process resolving NtSetInformationThread and related exports and then not proceeding to expected follow-on activity (spawn, memory write, thread context change), that stall is consistent with this kind of self-defense check tripping, and is worth correlating rather than dismissing as benign.
Section 10 · Hunting Pivots
Correlation material
Because this is a builder template, host-level IOCs are config-dependent and specific to this build. The durable pivots are the builder's own constants and conventions:
- Builder placeholder magics,
0xCAFE0001/0xCAFE0002(unstamped templates only) - FourCC config tags,
pars,uacb,defx,avmn - Target sentinel:
"::self::"(self-injection mode; only visible post-decryption, in memory, not a static file string) - API-hash seed,
0xC6A4A793; recovered hashes0x31BFBD23,0x73B85A0E - Shellcode LCG constant pair,
0x6C078965+0x5BD1E995 - Hand-resolved hollowing API set: the exact nine-export list in section 6, resolved by hash/name walk rather than import
| Artifact | Value |
|---|---|
| Sample (PE), SHA-256 | 23244f01d449183b651153c7fd4d69377aa8aec97f632898cbfae87b5b0c8749 |
| Shellcode (plaintext), SHA-256 | 6849F41DCB5FCA2851D20BE759A5BE4B6037D12E29543E63B25ECFF310CC30B3 |
| Shellcode (ciphertext), SHA-256 | 8536542D5A5A6AD02EB9AF714CEE83C97598E744D17650AE0B7629F7FADA655E |
| Hollowing target (this build), live-confirmed | C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regsql.exe |
Section 11 · What Remains Open
Honest gaps, not filled in
The loader itself (its disguise, evasion stack, configuration, and hollowing preparation) is thoroughly characterized, both statically and live. What is genuinely unresolved:
- The injected payload. RunPE was reached but not carried through in this analysis. Nothing about what actually runs inside
aspnet_regsql.exeonce hollowed (its family, its capabilities, its C2) is known from this analysis. Any claim about that requires either completing the injection under controlled conditions or recovering the payload another way, neither of which was done here. - The
parsflag and the+0x50config block. Recovered as raw values; not correlated to any observed behavior. - The builder's identity. The
0xCAFE000xmagics and FourCC tags fingerprint a specific loader-crypter; naming it would need a private-corpus match, not more analysis of this file. - The remaining 60-odd string-table slots and the own-module-path string (
config+0x18), pointers recovered, contents not decoded this session.
