# vxintelligence/thanatos-ransomware architecture

> Architecture diagram of the GitHub repository vxintelligence/thanatos-ransomware, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vxintelligence/thanatos-ransomware
- Repository: https://github.com/vxintelligence/thanatos-ransomware

## Overview

##### Project Type and Purpose
- This is a native Windows C++ “Thanatos” ransomware tool: a single‐binary desktop application that encrypts victim files, communicates with a C2 server, drops ransom notes, and achieves persistence.

##### File Structure Analysis
- Top level:
- Release/: compiled executable (ThanatosDecryptor.exe) and debug symbols.
- ThanatosSource/: Visual Studio solution containing the Thanatos project.
- images/: supporting screenshots.
- ThanatosSource/Thanatos:
- EncryptFile.{cpp,h}: file enumeration and AES encryption routines.
- HTTP.{cpp,h}: simple HTTP client for C2 communication (iplogger).
- Utils.{cpp,h}: helper functions (registry, process-kill, path manipulation).
- Strings.h: constant strings (extensions, registry keys, URLs).

##### README Insights
- Describes behavior: network GET requests to iplogger.com, encryption bugs, ransom note creation.
- Contains YARA rules indicative of key constants.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Ransomware Executable and Internal Modules
    subgraph "Ransomware Executable"
        direction TB
        Ransomware["Ransomware Executable"]:::executable
        initInit["Initialization & Persistence Module"]:::module
        encrypt["File Discovery & Encryption Module"]:::module
        network["Network Communication Module"]:::module
        util["Utilities Module"]:::module
    end

    %% OS Subsystems
    FS[(File System)]:::os
    REG[(Registry)]:::os
    PM[(Process Management)]:::os
    NS[(Network Stack)]:::os

    %% External Service
    C2Server["C2 Server (iplogger.com)"]:::external

    %% Connections from Executable to Modules
    Ransomware --> initInit
    Ransomware --> encrypt
    Ransomware --> network
    Ransomware --> util

    %% Data Flows from Modules to OS Subsystems
    initInit -->|"write Run key"| REG
    encrypt -->|"scan & encrypt files (.THANATOS)"| FS
    encrypt -->|"drop ransom note README.txt"| FS
    encrypt -->|"terminate processes"| PM
    network -->|"send HTTP GET (victim ID)"| NS

    %% Network to External C2
    NS -->|"connect to C2"| C2Server

    %% Click Events
    click Ransomware "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos/Thanatos.vcxproj"
    click initInit "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos/Utils.cpp"
    click encrypt "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos/EncryptFile.cpp"
    click network "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos/HTTP.cpp"
    click util "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos/Utils.h"
    click util "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos/Strings.h"
    click Ransomware "https://github.com/vxintelligence/thanatos-ransomware/blob/master/Release/ThanatosDecryptor.exe"
    click root "https://github.com/vxintelligence/thanatos-ransomware/blob/master/ThanatosSource/Thanatos.sln"

    %% Styles
    classDef module fill:#AED6F1,stroke:#1B4F72,color:#1B2631;
    classDef os fill:#ABEBC6,stroke:#1D8348,color:#145A32;
    classDef external fill:#F9E79F,stroke:#B7950B,color:#7D6608;
    classDef executable fill:#F5CBA7,stroke:#AF601A,color:#512E5F;
```
