Seregon/ShadPKG

A tool for deriving PKG packet encryption keys for ps4 written in c++

C++/47.3 KB/No license
core/decompiler/analysis/JumpTableAnalysis.h
ShadPKG / core / decompiler / analysis / JumpTableAnalysis.h
1#pragma once
2 
3#include "../ir/IR.h"
4#include <memory>
5#include <vector>
6 
7namespace ShadPKG::Decompiler::Analysis {
8 
9class JumpTableAnalysis {
10public:
11 explicit JumpTableAnalysis(std::shared_ptr<IR::Function> func);
12 void analyze();
13 
14private:
15 std::shared_ptr<IR::Function> func_;
16 
17 // Helper to read memory from context
18 uint64_t readPointer(uint64_t address);
19 int32_t readInt32(uint64_t address);
20};
21 
22} // namespace ShadPKG::Decompiler::Analysis
23