
Install and configure tools on the Windows lab machine for malware development and research, including Visual Studio Community Edition 2022 with C++, x64 dbg, Process Hacker 2, and internal suite.
Understanding Processes in Windows
A process is a running instance of a program in Windows. When you launch an application, Windows creates a process and provides it with the resources needed to execute.
Each process has its own virtual memory space and can contain one or more threads that perform the actual execution. Windows manages processes throughout their lifecycle, including creation, execution, and termination.
Understanding processes is an important foundation for learning Windows Internals, malware analysis, reverse engineering, debugging, and cybersecurity, because many Windows security concepts depend on how processes operate and interact with the operating system.
Learn to view and analyze Windows threads, identify thread IDs and start addresses, inspect instruction pointers, and compare kernel and user stacks using Process Hacker and Brockman.
Delve into ANSI and Unicode encoding in Windows, comparing single-byte ANSI with two-byte Unicode representations and how Windows API programming stores and handles characters.
Set up a two-machine Windows kernel debugging lab in VirtualBox with bridged networking, enable kernel debugging, configure wind debug, and load symbols from the Microsoft Public Symbol server.
Trace how a notepad file open moves from user mode to kernel mode, via kernel32.dll and ntdll, through the IO manager to the NTFS driver, then back, using WinDbg.
In this lecture we will peek into EPROCESS and ETHREAD structures in Windows kernel OS. We will understand PEB,TEB structures in user mode in Windows OS. We will see how PEB and TEB is related to each other in Windows OS.
Explore Windows kernel internals by viewing eprocess and ethread structures with WinDbg, and inspect kernel and user mode blocks such as the process involvement block and process environment block.
This module explains the architectural linkage between the TEB and PEB structures in Windows.
You will examine how each thread maintains its own TEB, which includes a direct pointer to the process-wide PEB. This design enables efficient access to shared process metadata such as the loader data, module lists, and runtime parameters.
We will also discuss how this relationship is leveraged in advanced techniques like manual API resolution, PEB traversal, and evasion strategies in malware.
Walk the PEB and LDA data structures to traverse the in-memory order module list, adjust pointers to the full loader data entry, and print each loaded dll name.
Understand thread context as the CPU register state at a thread's execution moment, including stack, thread local storage, and thread ID, and how saving and resuming this context pauses execution.
Learn how instruction pointer hijacking works in Windows by manipulating thread context with set context: suspend the thread, swap the instruction pointer to a malicious function address, then resume.
Demonstrates RIP hijacking in Windows by hijacking the instruction pointer to redirect a thread to a malicious function, using GetThreadContext and SetThreadContext in a lab demo.
Explore how Windows memory is allocated with the VirtualAlloc API in C++, including reserve versus commit and protection flags for read, write, and execute in malware development.
Experience a practical demo of allocating memory in the current process with virtual alloc, writing and printing data, then freeing memory using virtual free and memcpy.
Demonstrates a practical Windows shellcode execution workflow using VirtualAlloc, memcpy, and CreateThread to run shellcode in allocated memory. Includes debugging and analysis steps in a lab setup.
Allocate memory in a remote process using Windows API VirtualAllocEx, obtain the handle with OpenProcess, and specify address, size, allocation type, and protection for remote memory.
demonstrates allocating memory in a remote Windows process, writing data to that memory, and using breakpoints to inspect execution, via a practical notepad example.
Learn to allocate memory in a remote Windows process, write and execute shellcode using Windows API, and perform process injection via a remote thread to gain a remote shell.
Explore how malware uses thread local storage to store and execute shellcode in a Windows process, including allocating executable memory, storing shellcode addresses in TLS, and triggering a reverse shell.
Understanding Windows Internals is one of the most important skills for anyone entering malware development, malware analysis, reverse engineering, or ethical hacking. This course is designed to give you a deep, practical understanding of how Windows really works behind the scenes, so you can build, analyze, and detect modern malware with confidence.
You will learn core Windows components such as processes, threads, memory management, system calls, handles, kernel objects, tokens, integrity levels, PE file loading, and the Windows security model. Each topic is explained in a simple, beginner-friendly manner with practical demonstrations, code examples, and real-world scenarios relevant to malware development and analysis.
Whether you want to write advanced malware, analyze malicious executables, bypass security controls, detect malicious behavior, or understand how red-team and threat actors operate, this course gives you the strong internal foundations required.
By the end, you will understand how malware interacts with Windows, how the OS reacts internally, and how to use this knowledge to develop more effective malware or to analyze and defend against sophisticated threats. This course prepares you for real-world malware development, BLUE team analysis, incident response, reverse engineering, and ethical hacking. It also strengthens your overall security mindset through deeper operating system awareness and practical understanding.