# wizenx/steam_hwid_spoofer architecture

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

- Interactive diagram: https://gitdiagram.com/wizenx/steam_hwid_spoofer
- Repository: https://github.com/wizenx/steam_hwid_spoofer

## Overview

This repository combines a Windows injector with a Steam-focused DLL that generates a per-session hardware profile and installs hooks to substitute its values. The main workflow is: restart/wait for Steam, map the embedded DLL into its process, generate the profile, then hook Steam and tier0 routines to return spoofed identifiers. The README describes GUID, MAC, and disk-serial stages; the sampled hooks also include a PC-name hook. Some hook-registration details and the embedded payload were not fully sampled, so only documented or evidenced relationships are shown.

Main entry points: [`hwid_spoofer_steam/hooks.cpp`](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/hooks.cpp) (Hook engine), [`injector/injector.cpp`](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/injector.cpp) (Injector), [`injector/manualmap.cpp`](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/manualmap.cpp) (Manual mapper), [`hwid_spoofer_steam/dllmain.cpp`](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/dllmain.cpp) (DLL bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inject["Injection"]
  node_injector["Injector<br/>[injector.cpp]"]
  node_process_utils["Process utilities<br/>[utils.h]"]
  node_payload["Embedded DLL payload<br/>[spoofer.h]"]
  node_mapper["Manual mapper<br/>[manualmap.cpp]"]
  node_mapping_contract["Mapping contract<br/>[manualmap.h]"]
end

subgraph group_runtime["DLL runtime"]
  node_bootstrap["DLL bootstrap<br/>[dllmain.cpp]"]
end

subgraph group_spoof["Profile and hooks"]
  node_profile_gen["Profile generator<br/>[utils.cpp]"]
  node_profile["Session profile<br/>[profile.h]"]
  node_hook_api["Hook interface<br/>[hooks.h]"]
  node_hook_engine["Hook engine<br/>[hooks.cpp]"]
  node_patterns["Signature patterns<br/>[patterns.h]"]
  node_scan_utils["Pattern scanner<br/>[utils.cpp]"]
end

subgraph group_deps["Hook support"]
  node_minhook["MinHook<br/>[MinHook.h]"]
  node_xorstr["String obfuscation<br/>[xorstr.hpp]"]
end

node_user(("Operator"))
node_steam(("Steam process"))

node_user -->|"launches"| node_injector
node_injector -->|"uses"| node_process_utils
node_injector -->|"copies bytes"| node_payload
node_injector -->|"waits for"| node_steam
node_injector -->|"calls"| node_mapper
node_mapper -->|"uses declarations"| node_mapping_contract
node_mapper -->|"maps into"| node_steam
node_steam -.->|"loads DLL"| node_bootstrap
node_bootstrap -->|"generates profile"| node_profile_gen
node_profile_gen -->|"creates"| node_profile
node_bootstrap -->|"sets profile and initializes"| node_hook_api
node_hook_api -->|"implemented by"| node_hook_engine
node_hook_engine -->|"reads identifiers"| node_profile
node_hook_engine -->|"uses signatures"| node_patterns
node_hook_engine -->|"scans module patterns"| node_scan_utils
node_hook_engine -->|"creates and enables hooks"| node_minhook
node_hook_engine -->|"hooks identifier routines"| node_steam
node_hook_engine -->|"obfuscates strings"| node_xorstr

click node_injector "https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/injector.cpp"
click node_process_utils "https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/utils.h"
click node_payload "https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/spoofer.h"
click node_mapper "https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/manualmap.cpp"
click node_mapping_contract "https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/manualmap.h"
click node_bootstrap "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/dllmain.cpp"
click node_profile_gen "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/utils.cpp"
click node_profile "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/profile.h"
click node_hook_api "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/hooks.h"
click node_hook_engine "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/hooks.cpp"
click node_patterns "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/patterns.h"
click node_scan_utils "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/utils.cpp"
click node_minhook "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/include/minhook/MinHook.h"
click node_xorstr "https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/include/xorstr.hpp"

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_injector,node_process_utils,node_payload,node_mapper,node_mapping_contract toneBlue
class node_bootstrap toneAmber
class node_profile_gen,node_profile,node_hook_api,node_hook_engine,node_patterns,node_scan_utils toneMint
class node_minhook,node_xorstr toneRose
class node_user,node_steam toneIndigo
```

## Components

### Injection

- [Injector](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/injector.cpp): `injector/injector.cpp`
- [Process utilities](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/utils.h): `injector/utils.h`
- [Embedded DLL payload](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/spoofer.h): `injector/spoofer.h`
- [Manual mapper](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/manualmap.cpp): `injector/manualmap.cpp`
- [Mapping contract](https://github.com/wizenx/steam_hwid_spoofer/blob/main/injector/manualmap.h): `injector/manualmap.h`

### DLL runtime

- [DLL bootstrap](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/dllmain.cpp): `hwid_spoofer_steam/dllmain.cpp`

### Profile and hooks

- [Profile generator](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/utils.cpp): `hwid_spoofer_steam/utils.cpp`
- [Session profile](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/profile.h): `hwid_spoofer_steam/profile.h`
- [Hook interface](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/hooks.h): `hwid_spoofer_steam/hooks.h`
- [Hook engine](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/hooks.cpp): `hwid_spoofer_steam/hooks.cpp`
- [Signature patterns](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/patterns.h): `hwid_spoofer_steam/patterns.h`
- [Pattern scanner](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/utils.cpp): `hwid_spoofer_steam/utils.cpp`

### Hook support

- [MinHook](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/include/minhook/MinHook.h): `hwid_spoofer_steam/include/minhook/MinHook.h`
- [String obfuscation](https://github.com/wizenx/steam_hwid_spoofer/blob/main/hwid_spoofer_steam/include/xorstr.hpp): `hwid_spoofer_steam/include/xorstr.hpp`

### Other components

- **Operator**
- **Steam process**

## Connections

- Operator → Injector: launches (evidence: `injector/injector.cpp`)
- Injector → Process utilities: uses (evidence: `injector/injector.cpp`)
- Injector → Embedded DLL payload: copies bytes (evidence: `injector/injector.cpp`)
- Injector → Steam process: waits for (evidence: `injector/injector.cpp`)
- Injector → Manual mapper: calls (evidence: `injector/injector.cpp`)
- Manual mapper → Mapping contract: uses declarations (evidence: `injector/manualmap.cpp`)
- Manual mapper → Steam process: maps into (evidence: `injector/manualmap.cpp`)
- Steam process → DLL bootstrap: loads DLL
- DLL bootstrap → Profile generator: generates profile (evidence: `hwid_spoofer_steam/dllmain.cpp`)
- Profile generator → Session profile: creates (evidence: `hwid_spoofer_steam/utils.cpp`)
- DLL bootstrap → Hook interface: sets profile and initializes (evidence: `hwid_spoofer_steam/dllmain.cpp`)
- Hook interface → Hook engine: implemented by (evidence: `hwid_spoofer_steam/hooks.cpp`)
- Hook engine → Session profile: reads identifiers (evidence: `hwid_spoofer_steam/hooks.cpp`)
- Hook engine → Signature patterns: uses signatures (evidence: `hwid_spoofer_steam/hooks.cpp`)
- Hook engine → Pattern scanner: scans module patterns (evidence: `hwid_spoofer_steam/hooks.cpp`)
- Hook engine → MinHook: creates and enables hooks (evidence: `hwid_spoofer_steam/hooks.cpp`)
- Hook engine → Steam process: hooks identifier routines (evidence: `hwid_spoofer_steam/hooks.cpp`)
- Hook engine → String obfuscation: obfuscates strings (evidence: `hwid_spoofer_steam/hooks.cpp`)
