# hfiref0x/uacme architecture

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

- Interactive diagram: https://gitdiagram.com/hfiref0x/uacme
- Repository: https://github.com/hfiref0x/uacme

## Overview

UACMe is a Windows security research tool whose Akagi executable accepts a method number and optional payload, initializes a run context, and dispatches the selected UAC-bypass method. Method implementations use shared support routines; the repository also contains Fubuki payload DLLs and Naka’s payload-compression utility. Yuubari is a separate inspection tool for basic UAC data, COM objects, and autoelevated applications. The graph follows documented entry points and sampled calls; some method dispatch and embedded-payload wiring is unsampled, so those links are marked unverified or omitted.

Main entry points: [`Source/Yuubari/main.c`](https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/main.c) (Yuubari entry), [`Source/Akagi/methods`](https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/methods) (Method implementations), [`Source/Akagi/main.c`](https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/main.c) (Akagi entry), [`Source/Fubuki/dllmain.c`](https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/dllmain.c) (Payload DLL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_akagi["Akagi execution"]
  node_akagi_main["Akagi entry<br/>[main.c]"]
  node_akagi_init["Run initialization<br/>[main.c]"]
end

subgraph group_methods["Bypass methods"]
  node_method_dispatch["Method dispatch<br/>[methods.c]"]
  node_method_catalog["Method implementations"]
  node_azagarampur["Azagarampur methods<br/>[azagarampur.c]"]
  node_appinfo["AppInfo handling"]
  node_pcasvc["PCA service handling"]
end

subgraph group_payloads["Payload support"]
  node_fubuki["Payload DLL<br/>[dllmain.c]"]
  node_fubuki_pca["PCA payload<br/>[pca.c]"]
  node_fubuki_ui["UI access payload<br/>[uihacks.c]"]
  node_naka["Payload compressor<br/>[main.c]"]
end

subgraph group_inspection["UAC inspection"]
  node_yuubari_main["Yuubari entry<br/>[main.c]"]
  node_yuubari_basic["Basic UAC scan<br/>[basic.c]"]
  node_yuubari_com["COM object scan<br/>[comobj.c]"]
  node_yuubari_fusion["Autoelevation scan<br/>[fusion.c]"]
  node_yuubari_appinfo["AppInfo scan<br/>[appinfo.c]"]
end

subgraph group_shared["Shared runtime"]
  node_akagi_support["Akagi support<br/>[sup.c]"]
  node_shared_util["Shared utilities<br/>[util.c]"]
end

node_operator(("Command-line user"))

node_operator -->|"selects method"| node_akagi_main
node_akagi_main -->|"calls initialization"| node_akagi_init
node_akagi_init -->|"dispatches method"| node_method_dispatch
node_method_dispatch -.->|"routes to method"| node_method_catalog
node_method_catalog -.->|"includes methods"| node_azagarampur
node_azagarampur -->|"calls support"| node_akagi_support
node_method_catalog -.->|"uses AppInfo"| node_appinfo
node_method_catalog -.->|"uses PCA service"| node_pcasvc
node_akagi_main -.->|"loads payload"| node_fubuki
node_fubuki -->|"uses PCA path"| node_fubuki_pca
node_fubuki -->|"uses UI path"| node_fubuki_ui
node_yuubari_main -->|"runs basic scan"| node_yuubari_basic
node_yuubari_main -->|"lists COM objects"| node_yuubari_com
node_yuubari_main -->|"lists autoelevation"| node_yuubari_fusion
node_yuubari_main -.->|"runs AppInfo scan"| node_yuubari_appinfo

click node_akagi_main "https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/main.c"
click node_akagi_init "https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/main.c"
click node_method_dispatch "https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/methods/methods.c"
click node_method_catalog "https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/methods"
click node_azagarampur "https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/methods/azagarampur.c"
click node_akagi_support "https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/sup.c"
click node_appinfo "https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/appinfo"
click node_pcasvc "https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/pcasvc"
click node_fubuki "https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/dllmain.c"
click node_fubuki_pca "https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/pca.c"
click node_fubuki_ui "https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/uihacks.c"
click node_naka "https://github.com/hfiref0x/uacme/blob/master/Source/Naka/main.c"
click node_yuubari_main "https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/main.c"
click node_yuubari_basic "https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/basic.c"
click node_yuubari_com "https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/comobj.c"
click node_yuubari_fusion "https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/fusion.c"
click node_yuubari_appinfo "https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/appinfo.c"
click node_shared_util "https://github.com/hfiref0x/uacme/blob/master/Source/Shared/util.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_akagi_main,node_akagi_init,node_operator toneBlue
class node_method_dispatch,node_method_catalog,node_azagarampur,node_appinfo,node_pcasvc toneAmber
class node_fubuki,node_fubuki_pca,node_fubuki_ui,node_naka toneMint
class node_yuubari_main,node_yuubari_basic,node_yuubari_com,node_yuubari_fusion,node_yuubari_appinfo toneRose
class node_akagi_support,node_shared_util toneIndigo
```

## Components

### Akagi execution

- [Akagi entry](https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/main.c): `Source/Akagi/main.c`
- [Run initialization](https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/main.c): `Source/Akagi/main.c`

### Bypass methods

- [Method dispatch](https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/methods/methods.c): `Source/Akagi/methods/methods.c`
- [Method implementations](https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/methods): `Source/Akagi/methods`
- [Azagarampur methods](https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/methods/azagarampur.c): `Source/Akagi/methods/azagarampur.c`
- [AppInfo handling](https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/appinfo): `Source/Akagi/appinfo`
- [PCA service handling](https://github.com/hfiref0x/uacme/tree/master/Source/Akagi/pcasvc): `Source/Akagi/pcasvc`

### Payload support

- [Payload DLL](https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/dllmain.c): `Source/Fubuki/dllmain.c`
- [PCA payload](https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/pca.c): `Source/Fubuki/pca.c`
- [UI access payload](https://github.com/hfiref0x/uacme/blob/master/Source/Fubuki/uihacks.c): `Source/Fubuki/uihacks.c`
- [Payload compressor](https://github.com/hfiref0x/uacme/blob/master/Source/Naka/main.c): `Source/Naka/main.c`

### UAC inspection

- [Yuubari entry](https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/main.c): `Source/Yuubari/main.c`
- [Basic UAC scan](https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/basic.c): `Source/Yuubari/basic.c`
- [COM object scan](https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/comobj.c): `Source/Yuubari/comobj.c`
- [Autoelevation scan](https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/fusion.c): `Source/Yuubari/fusion.c`
- [AppInfo scan](https://github.com/hfiref0x/uacme/blob/master/Source/Yuubari/appinfo.c): `Source/Yuubari/appinfo.c`

### Shared runtime

- [Akagi support](https://github.com/hfiref0x/uacme/blob/master/Source/Akagi/sup.c): `Source/Akagi/sup.c`
- [Shared utilities](https://github.com/hfiref0x/uacme/blob/master/Source/Shared/util.c): `Source/Shared/util.c`

### Other components

- **Command-line user**

## Connections

- Command-line user → Akagi entry: selects method
- Akagi entry → Run initialization: calls initialization (evidence: `Source/Akagi/main.c`)
- Run initialization → Method dispatch: dispatches method (evidence: `Source/Akagi/main.c`)
- Method dispatch → Method implementations: routes to method
- Method implementations → Azagarampur methods: includes methods
- Azagarampur methods → Akagi support: calls support (evidence: `Source/Akagi/methods/azagarampur.c`)
- Method implementations → AppInfo handling: uses AppInfo
- Method implementations → PCA service handling: uses PCA service (evidence: `Source/Akagi/methods/azagarampur.c`)
- Akagi entry → Payload DLL: loads payload
- Payload DLL → PCA payload: uses PCA path (evidence: `Source/Fubuki/dllmain.c`)
- Payload DLL → UI access payload: uses UI path (evidence: `Source/Fubuki/dllmain.c`)
- Yuubari entry → Basic UAC scan: runs basic scan (evidence: `Source/Yuubari/main.c`)
- Yuubari entry → COM object scan: lists COM objects (evidence: `Source/Yuubari/main.c`)
- Yuubari entry → Autoelevation scan: lists autoelevation (evidence: `Source/Yuubari/main.c`)
- Yuubari entry → AppInfo scan: runs AppInfo scan
