Peeling Back the Layers of PowerShell Loader: Tracing a Multi-Stage Windows Payload Chain

Aryaka Threat Research Lab analyzed a multi-stage Windows malware infection chain that starts with a PowerShell loader associated with get.activated.win and leads to a protected native payload. The malware uses environment-aware execution, layered cryptographic processing, and in-memory payload reconstruction to conceal its final execution stage.
A multi-stage PowerShell loader can turn a seemingly harmless Windows script into malware. It retrieves or embeds an obfuscated payload, then decodes and decrypts content, drops files, establishes persistence, and runs the final payload, potentially contacting command-and-control (C2) infrastructure. Staging helps attackers evade signature-based detection, hinder forensic investigations, and bypass defenses. The attack can lead to credential theft, data exfiltration, ransomware, and lateral movement, so defenders should trace the full execution chain rather than investigate the initial command alone.
Threat Campaign Overview
The infection begins with a PowerShell-based loader that retrieves a native payload from srv.conti.pk. The downloaded component, identified as contis.exe, performs environment and anti-analysis checks before reconstructing its runtime payload.
Static analysis of contis.exe revealed characteristics associated with executable protection, while dynamic analysis showed that the malware does not simply unpack a conventional second-stage executable. Instead, it reconstructs a large runtime buffer through multiple cryptographic transformations, stages the resulting data in dynamically allocated memory, and transfers execution to the resulting runtime region.
Key Findings
See below for the primary characteristics identified during the analysis:
- Multi-stage PowerShell-to-native execution chain: The infection progresses from a PowerShell loader associated with get.activated.win to contis.exe, retrieved from srv.conti.pk, before reaching the final runtime execution stage.
- Environment-aware anti-analysis: The native payload evaluates debugger state, Process Environment Block (PEB) debugging state, hardware-debugging state, system resources, hypervisor presence, and other host characteristics before allowing execution to proceed.
- Protected native payload: Static analysis identified an unusually large virtual BSS region, a .text section with zero raw size, and unusual section names including themida and UPX2. These characteristics indicate executable protection or packing but do not definitively identify a specific protector.
- Layered cryptographic payload reconstruction: The payload derives intermediate key material using HKDF and applies multiple cryptographic transformations, including RC4, ChaCha20-Poly1305, AES-256-GCM, and AES-256-CBC, to reconstruct its runtime content.
- Large in-memory payload staging: Dynamic analysis confirmed reconstruction of a buffer approximately 4.19 MiB in size. The resulting data did not contain a valid PE structure; instead, it was staged in a large private memory region before execution.
- Execution from dynamically generated memory: The malware changes memory protections to enable execution and transfers control to the reconstructed runtime content, avoiding the need to expose a conventional second-stage executable on disk.
Notable Research Finding: In-Memory Runtime Reconstruction
- A key finding was that the malware used layered cryptographic processing to reconstruct its runtime content directly in memory.
- The reconstructed buffer was about 4.19 MiB and lacked a valid PE structure. Instead, the data was transferred to a dynamically allocated memory region, prepared for execution, and used as the subsequent runtime stage.
- This execution model keeps the malware’s final runtime content concealed from straightforward static analysis while minimizing the need for a conventional executable payload on disk.
Infrastructure and Observable Artifacts
The analysis identified the following artifacts associated with the observed infection chain:
- get.activated.win — infrastructure associated with the initial PowerShell execution chain
- srv.conti.pk — infrastructure used to retrieve the native payload
- contis.exe — downloaded native payload
Correlate these indicators with behavioral telemetry rather than using them independently.
Defensive Considerations
Organizations should monitor for PowerShell activity that retrieves and launches executable content from unusual external infrastructure, particularly when followed by suspicious memory activity.
Additional behavioral indicators include:
- Connections to get.activated.win or srv.conti.pk
- Execution of downloaded components such as contis.exe
- Environment and debugger checks performed by newly launched processes
- Large private memory allocations followed by executable-memory transitions
- VirtualAlloc/VirtualProtect activity associated with dynamically generated code
- Execution from private memory that is not backed by a conventional PE image
- Behavioral correlation across the PowerShell, native execution, memory-allocation, and runtime-staging stages provides a stronger detection strategy than relying solely on filenames, hashes, domains, or IP addresses.
Complete Technical Analysis
The complete Aryaka Threat Research Lab report provides a detailed technical breakdown of the infection chain, including:
- PowerShell and get.activated.win execution chain
- srv.conti.pk payload retrieval and contis.exe analysis
- Native PE triage and executable-protection characteristics
- Environment-scoring and anti-analysis mechanisms
- Layered cryptographic processing and payload reconstruction
- Runtime memory staging and execution
- Indicators of compromise
- MITRE ATT&CK mapping
- Defensive and threat-hunting guidance
Download the full report here