# giddyspurz/conti_v3 architecture

> Architecture diagram of the GitHub repository giddyspurz/conti_v3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/giddyspurz/conti_v3
- Repository: https://github.com/giddyspurz/conti_v3

## Overview

Conti_v3 is leaked Conti Locker source, with encryption runtimes in `cryptor/` and `cryptor_dll/` and a separate `decryptor/`. The principal workflow accepts command-line options, selects a mode, discovers local or network targets, schedules file work, and encrypts files; the decryptor similarly schedules scans and decrypts matching files. The graph preserves these distinct stages and the network-scanning branches. Several implementation files are unsampled, so their internal behavior and some connections are omitted rather than inferred.

Main entry points: [`cryptor/main.cpp`](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/main.cpp) (EXE entry), [`cryptor_dll/main.cpp`](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/main.cpp) (DLL entry), [`decryptor/main.cpp`](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/main.cpp) (Decrypt entry), [`decryptor/filesystem/search.cpp`](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/filesystem/search.cpp) (File search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_enc["Encryption runtimes"]
  node_cryptor_main["EXE entry<br/>[main.cpp]"]
  node_dll_main["DLL entry<br/>[main.cpp]"]
  node_cryptor_core["Encrypt files<br/>[cryptor.cpp]"]
  node_dll_core["Encrypt files<br/>[cryptor.cpp]"]
end

subgraph group_dec["Decryption runtime"]
  node_decrypt_main["Decrypt entry<br/>[main.cpp]"]
  node_decrypt_core["Decrypt files<br/>[decryptor.cpp]"]
end

subgraph group_discovery["Discovery and scheduling"]
  node_enc_search["File search<br/>[search.cpp]"]
  node_dll_search["File search<br/>[search.cpp]"]
  node_dec_search["File search<br/>[search.cpp]"]
  node_enc_drives["Drive enumeration<br/>[disks.cpp]"]
  node_dll_drives["Drive enumeration<br/>[disks.cpp]"]
  node_dec_drives["Drive enumeration<br/>[disks.cpp]"]
  node_enc_network["Network scan"]
  node_dll_network["Network scan"]
  node_dec_network["Network scan"]
  node_enc_pool["Task pool<br/>[threadpool.cpp]"]
  node_dll_pool["Task pool<br/>[threadpool.cpp]"]
  node_dec_pool["Task pool<br/>[threadpool.cpp]"]
end

subgraph group_support["Runtime support"]
  node_enc_global["Mode settings"]
  node_dll_global["Mode settings"]
  node_dec_global["Mode settings"]
  node_enc_logs["Logging<br/>[logs.cpp]"]
  node_dll_logs["Logging<br/>[logs.cpp]"]
  node_enc_api["API resolution<br/>[getapi.cpp]"]
  node_dll_api["API resolution<br/>[getapi.cpp]"]
  node_enc_queue["Task queue<br/>[queue.h]"]
  node_dll_queue["Task queue<br/>[queue.h]"]
  node_dec_queue["Task queue<br/>[queue.h]"]
  node_enc_crypto["ChaCha20<br/>[chacha.c]"]
  node_dll_crypto["ChaCha20<br/>[chacha.c]"]
  node_dec_crypto["ChaCha20<br/>[chacha.c]"]
end

node_operator(("Operator"))

node_operator -->|"provides options"| node_cryptor_main
node_operator -->|"provides options"| node_dll_main
node_cryptor_main -->|"sets mode"| node_enc_global
node_dll_main -->|"sets mode"| node_dll_global
node_cryptor_main -->|"initializes logs"| node_enc_logs
node_dll_main -->|"initializes logs"| node_dll_logs
node_cryptor_main -->|"schedules work"| node_enc_pool
node_dll_main -->|"schedules work"| node_dll_pool
node_cryptor_main -->|"enumerates drives"| node_enc_drives
node_cryptor_main -.->|"starts scan"| node_enc_network
node_dll_main -.->|"enumerates drives"| node_dll_drives
node_dll_main -.->|"starts scan"| node_dll_network
node_cryptor_main -->|"prepares encryption"| node_cryptor_core
node_dll_main -->|"prepares encryption"| node_dll_core
node_enc_search -->|"encrypts files"| node_cryptor_core
node_dll_search -->|"encrypts files"| node_dll_core
node_cryptor_main -.->|"queues paths"| node_enc_search
node_cryptor_main -->|"waits for work"| node_enc_pool
node_dll_main -->|"waits for work"| node_dll_pool
node_decrypt_main -->|"starts pools"| node_dec_pool
node_decrypt_main -->|"enumerates drives"| node_dec_drives
node_decrypt_main -->|"starts scan"| node_dec_network
node_decrypt_main -->|"queues paths"| node_dec_pool
node_dec_search -->|"decrypts files"| node_decrypt_core
node_decrypt_main -.->|"queues paths"| node_dec_search
node_enc_network -->|"uses pool"| node_enc_pool
node_dll_network -->|"uses pool"| node_dll_pool
node_dec_network -->|"uses pool"| node_dec_pool
node_enc_pool -->|"uses queue"| node_enc_queue
node_dll_pool -->|"uses queue"| node_dll_queue
node_dec_pool -->|"uses queue"| node_dec_queue
node_enc_search -->|"reads settings"| node_enc_global
node_dll_search -->|"reads settings"| node_dll_global
node_dec_search -->|"reads settings"| node_dec_global
node_cryptor_main -->|"uses API wrappers"| node_enc_api
node_dll_main -->|"uses API wrappers"| node_dll_api
node_dec_search -.->|"imports cipher interface"| node_dec_crypto

click node_cryptor_main "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/main.cpp"
click node_dll_main "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/main.cpp"
click node_cryptor_core "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/cryptor.cpp"
click node_dll_core "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/cryptor.cpp"
click node_decrypt_main "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/main.cpp"
click node_decrypt_core "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/decryptor.cpp"
click node_enc_search "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/filesystem/search.cpp"
click node_dll_search "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/filesystem/search.cpp"
click node_dec_search "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/filesystem/search.cpp"
click node_enc_drives "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/filesystem/disks.cpp"
click node_dll_drives "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/filesystem/disks.cpp"
click node_dec_drives "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/filesystem/disks.cpp"
click node_enc_network "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/network_scanner/network_scanner.cpp"
click node_dll_network "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/network_scanner/network_scanner.cpp"
click node_dec_network "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/network_scanner/network_scanner.cpp"
click node_enc_pool "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/threadpool/threadpool.cpp"
click node_dll_pool "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/threadpool/threadpool.cpp"
click node_dec_pool "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/threadpool/threadpool.cpp"
click node_enc_global "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/global/global_parameters.cpp"
click node_dll_global "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/global/global_parameters.cpp"
click node_dec_global "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/global/global_parameters.cpp"
click node_enc_logs "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/logs/logs.cpp"
click node_dll_logs "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/logs/logs.cpp"
click node_enc_api "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/api/getapi.cpp"
click node_dll_api "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/api/getapi.cpp"
click node_enc_queue "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/queue.h"
click node_dll_queue "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/queue.h"
click node_dec_queue "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/queue.h"
click node_enc_crypto "https://github.com/giddyspurz/conti_v3/blob/main/cryptor/chacha20/chacha.c"
click node_dll_crypto "https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/chacha20/chacha.c"
click node_dec_crypto "https://github.com/giddyspurz/conti_v3/blob/main/decryptor/chacha20/chacha.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cryptor_main,node_dll_main,node_cryptor_core,node_dll_core toneBlue
class node_decrypt_main,node_decrypt_core toneAmber
class node_enc_search,node_dll_search,node_dec_search,node_enc_drives,node_dll_drives,node_dec_drives,node_enc_network,node_dll_network,node_dec_network,node_enc_pool,node_dll_pool,node_dec_pool toneMint
class node_enc_global,node_dll_global,node_dec_global,node_enc_logs,node_dll_logs,node_enc_api,node_dll_api,node_enc_queue,node_dll_queue,node_dec_queue,node_enc_crypto,node_dll_crypto,node_dec_crypto toneRose
class node_operator toneIndigo
```

## Components

### Encryption runtimes

- [EXE entry](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/main.cpp): `cryptor/main.cpp`
- [DLL entry](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/main.cpp): `cryptor_dll/main.cpp`
- [Encrypt files](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/cryptor.cpp): `cryptor/cryptor.cpp`
- [Encrypt files](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/cryptor.cpp): `cryptor_dll/cryptor.cpp`

### Decryption runtime

- [Decrypt entry](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/main.cpp): `decryptor/main.cpp`
- [Decrypt files](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/decryptor.cpp): `decryptor/decryptor.cpp`

### Discovery and scheduling

- [File search](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/filesystem/search.cpp): `cryptor/filesystem/search.cpp`
- [File search](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/filesystem/search.cpp): `cryptor_dll/filesystem/search.cpp`
- [File search](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/filesystem/search.cpp): `decryptor/filesystem/search.cpp`
- [Drive enumeration](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/filesystem/disks.cpp): `cryptor/filesystem/disks.cpp`
- [Drive enumeration](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/filesystem/disks.cpp): `cryptor_dll/filesystem/disks.cpp`
- [Drive enumeration](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/filesystem/disks.cpp): `decryptor/filesystem/disks.cpp`
- [Network scan](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/network_scanner/network_scanner.cpp): `cryptor/network_scanner/network_scanner.cpp`
- [Network scan](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/network_scanner/network_scanner.cpp): `cryptor_dll/network_scanner/network_scanner.cpp`
- [Network scan](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/network_scanner/network_scanner.cpp): `decryptor/network_scanner/network_scanner.cpp`
- [Task pool](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/threadpool/threadpool.cpp): `cryptor/threadpool/threadpool.cpp`
- [Task pool](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/threadpool/threadpool.cpp): `cryptor_dll/threadpool/threadpool.cpp`
- [Task pool](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/threadpool/threadpool.cpp): `decryptor/threadpool/threadpool.cpp`

### Runtime support

- [Mode settings](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/global/global_parameters.cpp): `cryptor/global/global_parameters.cpp`
- [Mode settings](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/global/global_parameters.cpp): `cryptor_dll/global/global_parameters.cpp`
- [Mode settings](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/global/global_parameters.cpp): `decryptor/global/global_parameters.cpp`
- [Logging](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/logs/logs.cpp): `cryptor/logs/logs.cpp`
- [Logging](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/logs/logs.cpp): `cryptor_dll/logs/logs.cpp`
- [API resolution](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/api/getapi.cpp): `cryptor/api/getapi.cpp`
- [API resolution](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/api/getapi.cpp): `cryptor_dll/api/getapi.cpp`
- [Task queue](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/queue.h): `cryptor/queue.h`
- [Task queue](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/queue.h): `cryptor_dll/queue.h`
- [Task queue](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/queue.h): `decryptor/queue.h`
- [ChaCha20](https://github.com/giddyspurz/conti_v3/blob/main/cryptor/chacha20/chacha.c): `cryptor/chacha20/chacha.c`
- [ChaCha20](https://github.com/giddyspurz/conti_v3/blob/main/cryptor_dll/chacha20/chacha.c): `cryptor_dll/chacha20/chacha.c`
- [ChaCha20](https://github.com/giddyspurz/conti_v3/blob/main/decryptor/chacha20/chacha.c): `decryptor/chacha20/chacha.c`

### Other components

- **Operator**

## Connections

- Operator → EXE entry: provides options (evidence: `cryptor/main.cpp`)
- Operator → DLL entry: provides options (evidence: `cryptor_dll/main.cpp`)
- EXE entry → Mode settings: sets mode (evidence: `cryptor/main.cpp`)
- DLL entry → Mode settings: sets mode (evidence: `cryptor_dll/main.cpp`)
- EXE entry → Logging: initializes logs (evidence: `cryptor/main.cpp`)
- DLL entry → Logging: initializes logs (evidence: `cryptor_dll/main.cpp`)
- EXE entry → Task pool: schedules work (evidence: `cryptor/main.cpp`)
- DLL entry → Task pool: schedules work (evidence: `cryptor_dll/main.cpp`)
- EXE entry → Drive enumeration: enumerates drives (evidence: `cryptor/main.cpp`)
- EXE entry → Network scan: starts scan
- DLL entry → Drive enumeration: enumerates drives
- DLL entry → Network scan: starts scan
- EXE entry → Encrypt files: prepares encryption (evidence: `cryptor/main.cpp`)
- DLL entry → Encrypt files: prepares encryption (evidence: `cryptor_dll/main.cpp`)
- File search → Encrypt files: encrypts files (evidence: `cryptor/filesystem/search.cpp`)
- File search → Encrypt files: encrypts files (evidence: `cryptor_dll/filesystem/search.cpp`)
- EXE entry → File search: queues paths
- EXE entry → Task pool: waits for work (evidence: `cryptor/main.cpp`)
- DLL entry → Task pool: waits for work (evidence: `cryptor_dll/main.cpp`)
- Decrypt entry → Task pool: starts pools (evidence: `decryptor/main.cpp`)
- Decrypt entry → Drive enumeration: enumerates drives (evidence: `decryptor/main.cpp`)
- Decrypt entry → Network scan: starts scan (evidence: `decryptor/main.cpp`)
- Decrypt entry → Task pool: queues paths (evidence: `decryptor/main.cpp`)
- File search → Decrypt files: decrypts files (evidence: `decryptor/filesystem/search.cpp`)
- Decrypt entry → File search: queues paths
- Network scan → Task pool: uses pool (evidence: `cryptor/network_scanner/network_scanner.cpp`)
- Network scan → Task pool: uses pool (evidence: `cryptor_dll/network_scanner/network_scanner.cpp`)
- Network scan → Task pool: uses pool (evidence: `decryptor/network_scanner/network_scanner.cpp`)
- Task pool → Task queue: uses queue (evidence: `cryptor/threadpool/threadpool.cpp`)
- Task pool → Task queue: uses queue (evidence: `cryptor_dll/threadpool/threadpool.cpp`)
- Task pool → Task queue: uses queue (evidence: `decryptor/threadpool/threadpool.cpp`)
- File search → Mode settings: reads settings (evidence: `cryptor/filesystem/search.cpp`)
- File search → Mode settings: reads settings (evidence: `cryptor_dll/filesystem/search.cpp`)
- File search → Mode settings: reads settings (evidence: `decryptor/filesystem/search.cpp`)
- EXE entry → API resolution: uses API wrappers (evidence: `cryptor/main.cpp`)
- DLL entry → API resolution: uses API wrappers (evidence: `cryptor_dll/main.cpp`)
- File search → ChaCha20: imports cipher interface
