zig_clr_exe_x64

Description

Per-build obfuscated Zig-native x64 EXE that XOR-encodes and executes the sRDI shellcode payload in-memory.

Overview

Generates a fresh Windows x64 EXE on each payload request by:

  1. Reading the sRDI x64 shellcode (srdi_x64)
  2. XOR-encoding the bytes with a random per-build key
  3. Generating Zig source that decodes and executes the shellcode at runtime via VirtualAlloc + call
  4. Shuffling function layout (Shuffle-ZigFunctions) to randomize .text section placement
  5. Injecting per-function stack-frame jitter (Inject-ZigStackJitter) to shift all local variable offsets
  6. Applying comment and string obfuscation
  7. Compiling with Zig 0.16.0 targeting x86_64-windows-gnu

The sRDI shellcode reflectively loads the .NET implant in-memory. An AMSI bypass is applied before execution.

Parameters

Name Type Description
Optimization ZigOptimization Optimization/build mode. Default: ReleaseSmall.
Subsystem ZigSubsystem Windows PE subsystem (Console or Windows). Default: Console.
Architecture ZigArchitecture Target processor architecture (x86, x86_64, aarch64). Default: x86_64.
BuildId string The build to embed. Defaults to the current build.
Scroll to Top