Skip to content

Static Code Analysis ​

FieldValue
Module ID416
DifficultyHard
TierTier I
CategoryDefensive
Estimated Time5 hours
Cubes Earned10
Experience Points1500
Creatorsletsdefendio
Last Updated2026-06-24T18:28:41.000000Z
URLhttps://academy.hackthebox.com/app/module/416

Module Includes ​

  • 12 Sections
  • 8 Interactive Exercises
  • 0 Assessments
  • 10 Cubes

Module Description ​

Elevate your SOC team's capabilities with our focused Static Code Analysis module. Delve into ransomware analysis, uncover vulnerabilities, and improve code quality to fortify your cybersecurity defenses. This module equips you with crucial skills for identifying threats and ensures your team is prepared to tackle evolving security challenges efficiently.

Module Summary ​

The Static Code Analysis module is designed for

  • SOC team members, - Cybersecurity analysts, and
  • IT security professionals. Throughout this module, students will develop
  • Develop skills to effectively analyze and understand static code, - Identify and mitigate vulnerabilities, particularly in the context of ransomware, - Enhance code quality for stronger security postures, and
  • Equip SOC teams with the expertise to handle evolving cybersecurity threats.
  • Basic understanding of programming languages

  • Familiarity with cybersecurity concepts

Sections ​

12 sections - 8 Interactive

#GroupTypeTitle
1NonetheoryIntroduction
2theoryFundamentals of Code Analysis
3theoryx86 Assembly Recap
4interactiveBinary Analysis with Cutter
5interactiveInterpreting Code Constructs
6interactiveIntricacies of Functions in Assembly
7interactiveAnalyzing HelloDefenders Sample
8interactiveAnalyzing HelloDefenders Sample - 2
9interactiveDissecting a Ransomware
10interactiveDissecting a Ransomware - 2
11interactivePractical Lab
12theoryStatic Code Analysis Quiz

Conclusion ​

In this module, we covered the fundamentals of x86 assembly language, how to use the Cutter disassembler for binary analysis, and applied these skills in a guided ransomware reverse engineering walkthrough.

Module key takeaways:

  • Static code analysis examines compiled binaries without executing them, using disassembly and decompilation to reconstruct program logic; this is essential when dynamic analysis is too risky or when analyzing malware in a controlled manner
  • x86 assembly uses Intel syntax with instructions like MOV, PUSH, POP, CALL, RET, CMP, and JMP; addressing modes include immediate, register, direct memory, and register-indirect, all critical for tracing data flow through disassembled code
  • Cutter (based on the Rizin framework) provides four key analysis views: Disassembly (instruction-level listing), Graph (control flow visualization with basic blocks), Hexdump (raw byte inspection), and Decompiler (pseudo-C output for faster comprehension)
  • Common malware patterns visible in static analysis include API call sequences to WinInet functions (InternetOpen, InternetOpenUrl, HttpSendRequest) for C2 communication, and CreateFile/WriteFile patterns for payload dropping or file encryption
  • Ransomware analysis focuses on identifying the encryption routine (symmetric key generation, file enumeration via FindFirstFile/FindNextFile), ransom note writing logic, and any kill switch conditions (domain/mutex checks that abort execution)
  • Identifying a ransomware kill switch — such as a hardcoded domain lookup where the malware exits if the domain resolves — allows defenders to register the domain and neutralize active infections without decryption keys