MalDev Study
100% Complete Offline-Ready Curriculum

Windows Internals & Malware Development Guide

All 91 Core Modules, 38 Advanced PDF Modules, 249 interactive learning objectives, 700+ diagrams, and 99 companion C/C++/ASM code archives in one fast static app.

Overall Progress0/129 (0%)
Core Track (1–91)0/91
Advanced Track (1–38)0/38

01 · Foundations & Windows Internals

12
Core #1beginner

Welcome Module

Welcome to MalDev Academy! An introductory module to familiarize yourself with the module layout.

7 sectionsConcept module
Core #2beginner

Introduction To Malware Development

An introduction to the malware development life cycle.

6 sectionsConcept module
Core #3beginner

Required Tools

The required tools that will be used throughout the course.

8 sectionsConcept module
Core #4beginner

Coding Basics

Fundamental C concepts that are necessary to understand for the course.

7 sectionsConcept module
Core #5beginner

Windows Architecture

Introduction to the function call flow, different subsystem DLLs and the NTAPI.

5 sectionsConcept module
Core #6beginner

Windows Memory Management

Explaining the different Windows memory types how the OS manages memory.

9 sectionsConcept module
Core #7beginner

Introduction To The Windows API

An introduction to the Windows API, the common data types, ANSI vs Unicode functions, in and out parameters and debugging.

12 sectionsConcept module
Core #8beginner

Portable Executable Format

An introduction to the portable executable format from a programming perspective.

10 sectionsConcept module
Core #9beginner

Dynamic-Link Library

An introduction to Dynamic-Link Libraries, how they operate, their uses, and how they're created.

17 sectionsConcept module
Core #10beginner

Detection Mechanisms

An introduction to the different ways malware can be detected.

9 sectionsConcept module
Core #11beginner

Windows Processes

An introduction to the internal workings of Windows processes.

18 sectionsConcept module
Core #12beginner

Undocumented Structures

Finding and using undocumented structures that go beyond Microsoft's official documentation.

5 sectionsConcept module

02 · Payload Placement, Encryption & Obfuscation

13
Core #13beginner

Payload Placement - .data & .rdata Sections

Storing payloads in the .data & .rdata sections of a portable executable file.

3 sections4 code files
Core #14beginner

Payload Placement - .text Section

Storing payloads in the .text section of a portable executable file.

2 sections4 code files
Core #15beginner

Payload Placement - .rsrc Section

Storing payloads in the .rsrc section of a portable executable file.

3 sections6 code files
Core #16beginner

Introduction To Payload Encryption

An introduction to payload encryption algorithms covered in this course, why they're necessary and encryption advantages and disadvantages.

3 sectionsConcept module
Core #17beginner

Payload Encryption - XOR

Demonstrating multiple ways of using XOR to encrypt a payload.

4 sections4 code files
Core #18beginner

Payload Encryption - RC4

Demonstrating multiple ways of using RC4 to encrypt a payload.

11 sections10 code files
Core #19beginner

Payload Encryption - AES Encryption

Demonstrating multiple ways of using AES to encrypt a payload.

21 sections10 code files
Core #20beginner

Evading Microsoft Defender Static Analysis

Using encryption methods to bypass Microsoft Defender's static analysis engine.

6 sections13 code files
Core #21beginner

Payload Obfuscation - IPv4/IPv6Fuscation

Obfuscating payloads by transforming them into IPv4/IPv6 addresses.

7 sections14 code files
Core #22beginner

Payload Obfuscation - MACFucscation

Obfuscating payloads by transforming them into MAC addresses.

3 sections8 code files
Core #23beginner

Payload Obfuscation - UUIDFuscation

Obfuscating payloads by transforming them into UUIDs.

6 sections8 code files
Core #24beginner

Maldev Academy Tool - HellShell

Demonstrating a tool that performs encryption & obfuscation using the methods discussed in previous modules.

5 sections9 code files
Core #25beginner

Maldev Academy Tool - MiniShell

Demonstrating a tool that performs RC4 & AES encryption.

5 sections8 code files

03 · Local Execution, Injection & Staging

7

04 · Enumeration, Thread Hijacking, APC & Spoofing

17
Core #33intermediate

Process Enumeration - EnumProcesses

Enumerating processes using the EnumProcesses WinAPI.

8 sections4 code files
Core #34intermediate

Process Enumeration - NtQuerySystemInformation

Enumerating processes using the NtQuerySystemInformation NTAPI.

9 sections5 code files
Core #35intermediate

Thread Hijacking - Local Thread Creation

Hijacking a locally created sacrificial thread to execute a payload.

12 sections4 code files
Core #36intermediate

Thread Hijacking - Remote Thread Creation

Hijacking a remotely created sacrificial thread to execute a payload.

9 sections4 code files
Core #37intermediate

Thread Hijacking - Local Thread Enumeration

Hijacking a local sacrificial thread to execute a payload without thread creation.

8 sections4 code files
Core #38intermediate

Thread Hijacking - Remote Thread Enumeration

Hijacking a remote sacrificial thread to execute a payload without thread creation.

4 sections4 code files
Core #39intermediate

APC Injection

Executing a payload using APC injection.

12 sections4 code files
Core #40intermediate

Early Bird APC Injection

Executing a payload using Early Bird APC Injection.

6 sections4 code files
Core #41intermediate

Callback Code Execution

Using a variety of callback functions to execute a payload.

8 sections16 code files
Core #42intermediate

Local Mapping Injection

Performing mapping injection on the local process.

8 sections4 code files
Core #43intermediate

Remote Mapping Injection

Performing mapping injection on a remote process.

7 sections4 code files
Core #44intermediate

Local Function Stomping Injection

Overwriting a local function's logic to have it execute a malicious payload.

7 sections7 code files
Core #45intermediate

Remote Function Stomping Injection

Overwriting a remote function's logic to have it execute a malicious payload.

4 sections7 code files
Core #46intermediate

Payload Execution Control

Using semaphores, mutexes, and events to control the payload's execution.

5 sections10 code files
Core #47intermediate

Spoofing PPID

Spoofing the parent process ID of a malicious process.

10 sections4 code files
Core #48intermediate

Process Argument Spoofing (1)

Spoofing a process's malicious arguments.

13 sections4 code files
Core #49intermediate

Process Argument Spoofing (2)

Spoofing a process's malicious arguments using a different technique.

5 sections4 code files

05 · PE Parsing, String Hashing & IAT Obfuscation

8

06 · API Hooking

5

07 · Direct Syscalls

7

08 · Anti-Analysis, Entropy & AV Evasion

12
Core #70intermediate

Anti-Analysis - Introduction

Introduction to anti-analysis, anti-debugging and anti-virtualization.

5 sectionsConcept module
Core #71intermediate

Anti-Debugging - Multiple Techniques

Detecting debuggers using various techniques.

17 sections5 code files
Core #72intermediate

Anti-Debugging - Self-Deletion

Perform self-deletion when a condition is met.

10 sections4 code files
Core #73intermediate

Anti-Virtual Environments - Multiple Techniques

Detecting virtualized environments using various techniques.

11 sections7 code files
Core #74intermediate

Anti-Virtual Environments - Multiple Delay Execution Techniques

Detecting virtualized environments using various timing techniques.

7 sections4 code files
Core #75intermediate

Anti-Virtual Environments - API Hammering

Performing API hammering to to delay execution in virtualized environments.

8 sections4 code files
Core #76intermediate

Binary Entropy Reduction

Using several methods to reduce a binary's entropy to thwart detection.

8 sections1 code files
Core #77intermediate

Brute Force Decryption

Brute forcing the decryption key to avoid hardcoding into the binary.

7 sections4 code files
Core #78intermediate

MalDev Academy Tool - KeyGuard

Demonstrating a tool that generates an encryption key, encrypts it and brute forces it during runtime.

7 sections10 code files
Core #79intermediate

CRT Library Removal & Malware Compiling

Modifying Visual Studio's default compiler settings to enhance an implementation's stealth.

21 sectionsConcept module
Core #80intermediate

IAT Camouflage

Manipulating the Import Address Table to make unused benign functions appear.

6 sections4 code files
Core #81intermediate

Bypassing AVs

Using a combination of previously discussed techniques to create an evasive payload loader.

27 sections67 code files

09 · EDRs, NTDLL Unhooking & Indirect Syscalls

10

10 · Advanced Tradecraft & Hardware Breakpoints

11
Adv #1advanced

Binary Metadata Modification

Binaries can include metadata that provides information about the file such as a file description, version number, company name and more. The image below shows the metadata of G...

15 sections6 code files
Adv #2advanced

Thread Enumeration - NtQuerySystemInformation

In a previous module, the process of enumerating a system's threads was demonstrated using the snapshot WinAPIs. The Thread Hijacking Remote Thread Enumeration module, for exa...

8 sections5 code files
Adv #3advanced

Custom WinAPI Functions

In the IAT Hiding & Obfuscation Custom Pseudo Handles module, it was demonstrated that creating custom WinAPIs is a preferable approach over dynamically importing them (if pos...

27 sections5 code files
Adv #4advanced

Exploiting EDRs For Evasion

This module showcases a 0-day vulnerability in a widely-used EDR, and building a functional shell that successfully circumvents the EDR's detection.

9 sectionsConcept module
Adv #5advanced

Introduction To MASM Assembly

Assembly language is a low-level programming language used to create programs that directly control a computer's hardware, such as its CPU and memory. This language is composed ...

34 sections5 code files
Adv #6advanced

Evasion With File Bloating

File bloating is an evasion technique where a malicious file is inflated with junk data, usually by appending a large number of null bytes to the end of the file. This has been ...

7 sectionsConcept module
Adv #7advanced

Bring Your Own Protocol Handler

This module will introduce a new initial access technique which will be referred to as "Bring Your Own Protocol Handler". This is a variation of a technique that was previously ...

13 sections2 code files
Adv #8advanced

Bring Your Own File Extension

This module will introduce a new initial access technique which has been dubbed by the Maldev Academy team as "Bring Your Own File Extension". The concepts presented in this mod...

12 sections4 code files
Adv #9advanced

Utilizing Hardware Breakpoints For Hooking (1)

In previous modules, hooks were implemented using trampolines by patching the original execution flow with unconditional jump shellcodes. The unconditional jump causes the execu...

37 sections6 code files
Adv #10advanced

Utilizing Hardware Breakpoints For Hooking (2)

In the previous module, the main emphasis was on comprehending the utilization of hardware breakpoints for patchless API hooking. While the initial code presented was functional...

18 sections7 code files
Adv #11advanced

Utilizing Hardware Breakpoints For Credential Dumping

In the previous module, hardware breakpoints were utilized to apply patchless user-land API hooking through a stable library. In this module, the same library will be used to ha...

8 sections7 code files

11 · ETW & AMSI Internals & Bypasses

9
Adv #12advanced

Event Tracing For Windows - Introduction

Event Tracing for Windows or ETW, is a powerful tracing mechanism built into the Windows OS which allows for collecting detailed information about events and activities that occ...

8 sectionsConcept module
Adv #13advanced

Event Tracing For Windows - ETW Tools

The previous module introduced covered theoretical concepts surrounding ETW architecture, components and their functionality. This module will introduce several tools that allow...

11 sections9 code files
Adv #14advanced

Event Tracing For Windows - ETW Bypass Via Byte Patching

The earlier modules laid the groundwork for comprehending ETW and its various components. Building on that knowledge, it is now possible to dive into the topic of ETW evasion. T...

12 sections4 code files
Adv #15advanced

Event Tracing For Windows - Improved Patching

The previous module showed a simple function to patch EtwEventWrite and EtwEventWriteFull and NtTraceEvent to prevent events from reaching the ETW tracing session. This module w...

8 sections4 code files
Adv #16advanced

Event Tracing for Windows - Patchless ETW Bypass Via HBPs

In the previous module, the target functions were patched by employing shellcode to prevent the execution of the EtwpEventWriteFull function. While this method proves effective,...

7 sections7 code files
Adv #17advanced

Event Tracing For Windows - ETW Provider Session Hijacking

In earlier modules, the primary focus was targeting specific ETW functions to prevent events from being recorded in the tracing session. However, an alternative approach called ...

10 sections4 code files
Adv #18advanced

Antimalware Scan Interface - Introduction

Antimalware Scan Interface or AMSI for short, is a Windows feature that provides a standard interface between the OS and the installed antimalware vendor. AMSI is designed to in...

5 sectionsConcept module
Adv #19advanced

Antimalware Scan Interface - AMSI Bypass Via Byte Patching

In the previous module, AMSI was introduced and it was shown how it can be used to prevent malicious scripts from being executed through signature scans. It was also shown that ...

13 sections4 code files
Adv #20advanced

Antimalware Scan Interface - Patchless AMSI Bypass Via HBPs

In the previous module, patching AMSI's WinAPIs was discussed as a method to bypass AMSI. However, as mentioned in several patching modules throughout the course, this approach ...

6 sections7 code files

12 · Loaders, C2, DLL Sideloading & BYOVD

7
Adv #21advanced

Building a DRM-equipped Malware

Throughout the Maldev Academy modules, various anti-analysis techniques have been demonstrated. These techniques assess the legitimacy of a machine by examining its configuratio...

16 sections4 code files
Adv #22advanced

Introduction to Havoc C&C

Havoc is a modern, malleable post-exploitation command and control framework made for penetration testers, red teams, and blue teams. It's free and open source and available on ...

16 sectionsConcept module
Adv #23advanced

Building An Evasive DLL Payload Loader

Leading up to this module, the course has covered various individual evasion techniques but hasn't integrated them into practical real-world projects. However, in this module, r...

47 sections29 code files
Adv #24advanced

Introduction To DLL Sideloading

DLL Sideloading is a method that abuses the Dynamic-link library search order which defines the specific order that the operating system searches for and loads DLL files when a ...

9 sections5 code files
Adv #25advanced

Practical DLL Sideloading Example

In the preceding module, the DLL sideloading technique was introduced as an opsec strategy for loading payloads. It's essential to note that because the binary sideloaded in the...

12 sections36 code files
Adv #26advanced

DLL Sideloading For EDR Evasion

DLL sideloading can serve as an effective technique when evading security solutions. Security solutions are far better tuned to detect malicious EXEs and have the capacity to sc...

8 sections36 code files
Adv #27advanced

Bring Your Own Vulnerable Driver (BYOVD)

Drivers are software components that enable communication and interaction between hardware devices (such as printers, graphics cards, and network adapters) and the OS of a compu...

15 sections30 code files

13 · Advanced PE Injection, Packers & Evasion

11
Adv #28advanced

Local PE Injection

Up until this point in the course, the payloads utilized have consistently been position-independent shellcodes. These payloads are designed for improved compatibility and flexi...

41 sections19 code files
Adv #29advanced

Reflective DLL Injection

As demonstrated in the previous module, injecting a PE payload requires following multiple steps that replicate the actions of the Windows loader when executing a PE image. Howe...

19 sections10 code files
Adv #30advanced

PeFluctuation

In the previous module, Local PE Injection, the PE payload was executed without implementing memory evasion strategies after running the entry point. This exposed our PE payload...

13 sections7 code files
Adv #31advanced

Building A PE Packer

Unlike the previous PE injection modules which were more like PoCs for learning purposes, this module will integrate Local PE Injection and PeFluctuation modules to create a PE ...

34 sections29 code files
Adv #32advanced

Malware Directory Placement

When dropping a malicious executable, one must be aware of where the malware is being dropped or executed. For example, a sample initial access scenario would be a .lnk that run...

7 sectionsConcept module
Adv #33advanced

Utilizing Fibers For Payload Execution

Up until this module, utilizing threads was the primary mechanism used for executing functions and tasks within a process. Nevertheless, an alternative method exists using Fibers.

8 sections4 code files
Adv #34advanced

TLS Callbacks For Anti-Debugging

Thread Local Storage TLS callbacks were first introduced in the Local PE Injection module. TLS callbacks are a set of callback functions specified within the TLS directory of ...

14 sections7 code files
Adv #35advanced

Threadless Injection

Threadless Injection is a relatively new injection technique that operates in a way similar to Function Stomping which executes the shellcode when the stomped function is called.

10 sections5 code files
Adv #36advanced

Module Stomping

Module Stomping is a code injection technique where the shellcode is injected into the .text section of a legitimate sacrificial DLL file. This injection technique does not use ...

11 sections5 code files
Adv #37advanced

Module Overloading

In the previous module, the code injection technique "Module Stomping" was introduced and demonstrated. Recall that Module Stomping uses a sacrificial DLL file and overwrites pa...

12 sections5 code files
Adv #38advanced

Process Hollowing

Process Hollowing is an injection technique that injects PE payloads into the address space of a remote process. The remote process is often a suspended child process created by...

13 sections4 code files

Search all modules and companion code

No matching modules or source files found for “”.
    Covers all 91 Core + 38 Advanced modules + source archives

    Reader Settings & Progress

    Color Theme

    Reading Font Size

    Study Progress & Cross-Device Backup

    0/129
    Completed
    0
    Bookmarked
    0
    Module Notes

    Progress is saved locally in your browser. Export a JSON backup to move your progress between laptop and phone.