XOR Encryption in x64 Assembly: Fixed Key, Rolling Key & the lea vs mov Pointer Bug | No libc

XOR encryption in assembly is three operations: open a file, XOR each byte against a key in a tight loop, write the output. The fixed-key version is eight instructions per iteration; the rolling-key version adds one — add r15b, 0x11 — which updates the key every cycle and wraps automatically at 0xFF because r15b is 8-bit. Both versions decrypt with the same code. The real lesson is a pointer bug that every assembly programmer hits: mov rdx, [buffer] dereferences the label, turning file data into a memory address and segfaulting; lea rdx, [buffer] takes the address itself.

October 8, 2026 · 8 min · JM00NJ
XOR Encryption in x64 Assembly: Fixed Key, Rolling Key & the lea vs mov Pointer Bug | No libc

VESQER: DPCM+RLE Hybrid Shellcode Compression in x64 Assembly | C2 Payload Size Reduction & OPSEC

Uncompressed C2 payloads have two problems: size triggers bandwidth anomalies, and high-entropy raw shellcode scores above 7.5 on entropy analysis tools. VESQER addresses both: DPCM computes per-byte deltas (reducing entropy by exploiting local correlation), RLE collapses repeated delta values (reducing size on structured shellcode). Pure x64 Assembly, zero libc, zero dependencies. Complete implementation walkthrough: delta computation, run-length encoding loop, decode stub design, and measured compression ratios on real C2 payloads.

April 11, 2026 · 11 min · JM00NJ
VESQER: DPCM+RLE Hybrid Shellcode Compression in x64 Assembly | C2 Payload Size Reduction & OPSEC

Position Independent Code (PIC) in x64 Assembly: Stack Anchor Technique, Sectionless Shellcode & ASLR-Safe Payloads

Standard Assembly code with absolute addresses breaks under ASLR — fixed addresses become invalid at runtime. PIC solves this via RIP-relative addressing: all memory references computed as offsets from the current instruction pointer. The Stack Anchor technique carves a 32KB R/W region (sub rsp,0x8000 + and rsp,-16 + mov rbp,rsp), providing writable storage without .data or .bss sections. Read-only templates in .text are copied to the stack via rep movsb for runtime modification. Result: a single position-independent code block deployable anywhere in memory — standard for shellcode, injection payloads, and fileless implants.

April 3, 2026 · 5 min · JM00NJ
Position Independent Code (PIC) in x64 Assembly: Stack Anchor Technique, Sectionless Shellcode & ASLR-Safe Payloads

TCP Reverse Shell in Pure x64 Assembly: PIC Shellcode, Syscall Chain & dup2 FD Redirection | No libc

Implementing a reverse shell in pure x64 Assembly exposes the raw POSIX syscall sequence: socket() creates the TCP FD, connect() establishes the outbound connection, dup2() iterates 2→1→0 to redirect all three standard streams to the socket, execve() spawns /bin/sh which inherits the redirected FDs. PIC Stack Anchor (sub rsp,0x8000 + and rsp,-16 + mov rbp,rsp) enables ASLR-safe deployment — no absolute addresses, no .data/.bss, sockaddr_in struct copied from .text to writable stack via rep movsb. Zero libc, zero external dependencies.

April 3, 2026 · 9 min · JM00NJ
TCP Reverse Shell in Pure x64 Assembly: PIC Shellcode, Syscall Chain & dup2 FD Redirection | No libc
DigitalOcean Referral Badge