How therevealz/stellasora-metadatadecryption works
1. Repository purpose
- This is a small native C++ command-line utility whose sole job is to decrypt Stella Sora’s global-metadata.dat-style file and write a decrypted copy to disk.
2. Top-level structure
- The repo is intentionally minimal: one executable project (.sln + .vcxproj), one main source file (main.cpp), and one helper header (decrypt_chunk.hpp).
- There are no app layers, services, UI, databases, or network integrations.
3. Runtime boundary
- The program runs as a local desktop/CLI process.
- Its only external inputs/outputs are filesystem paths: one encrypted metadata file in, one decrypted metadata file out.
4. Entry point and orchestration
- main.cpp is the application entry point and likely handles:
- command-line argument parsing,
- input/output file validation,
- invoking the decryption routine,
- reporting success/failure to the console.
- This is the orchestration layer for the whole tool.
5. Decryption logic
- decrypt_chunk.hpp isolates the actual chunk-level decrypt logic.
- The structure suggests the file is processed in pieces rather than as one monolithic transform, which is typical for metadata decryption workflows.
- That header is the main algorithmic boundary in the repo.
6. Data flow
- The flow is straightforward:
- encrypted metadata file is read from disk,
- content is passed through the decryption routine,
- decrypted bytes are written to a new output file.
- No intermediate persistence or cross-process communication is implied.
7. Project/build tooling
- The repository uses a Visual Studio C++ solution/project (.sln, .vcxproj, .filters), so the primary build target is a Windows native executable.
- The architecture is therefore centered on a single compiled binary rather than multiple packages or modules.
8. Code organization boundary
- The split between main.cpp and decrypt_chunk.hpp separates “program control” from “cryptographic/byte-processing behavior.”
- That makes the diagram simple: CLI boundary on the left, decryption engine in the middle, output file on the right.
9. External dependency context
- The README credits an upstream project, indicating the decryption approach is derived from prior reverse-engineering work rather than an independent protocol implementation.
- There are no other named third-party runtime dependencies in the repo.
10. What to show in an architecture diagram
- A good diagram would have:
- user/terminal,
- encrypted metadata input file,
- the StellaSora-MetadataDecryption executable,
- the decryption helper module,
- decrypted metadata output file.
- The only meaningful boundary is between filesystem I/O and the decryption routine inside the executable.
Main entry points: main.cpp Main · StellaSora-MetadataDecryption.vcxproj Project · decrypt_chunk.hpp Decrypt chunk · StellaSora-MetadataDecryption.sln Solution
Components 8
Runtime
Local CLI execution boundary and file I/O
- Terminal · Runs the tool and provides file paths
- Encrypted file · Stella Sora metadata file to decrypt
- Decrypted file · Written decrypted metadata copy
- Tool · Single Windows command-line executable
Source
Program entry point and decryption logic
- Main · Parses arguments, validates paths, drives the decrypt flow
main.cpp - Decrypt chunk · Chunk-level metadata decryption routine
decrypt_chunk.hpp
Connections 11
- Terminal → Tool: launches · User starts the command-line utility
- Terminal → Encrypted file: selects · User supplies the encrypted metadata path
- Tool → Main: starts at · Executable enters through main.cpp
- Main → Encrypted file: reads · Validates and opens the encrypted source file
- Main → Decrypt chunk: invokes · Delegates byte processing to the chunk decrypt routine
- Decrypt chunk → Decrypted file: produces bytes for · Decrypted content is assembled for output
- Main → Decrypted file: writes · Saves the decrypted metadata file to disk
- Main → Tool: reports · Prints success or failure status to the console
- Solution → Project: includes · Solution contains the C++ project
- Project → Main: builds · Project compiles the entry point
- Project → Decrypt chunk: builds · Project includes the decryption helper header