A tool for deriving PKG packet encryption keys for ps4 written in c++
| 1 | #pragma once |
| 2 | |
| 3 | #include "../ir/IR.h" |
| 4 | #include <memory> |
| 5 | #include <vector> |
| 6 | |
| 7 | namespace ShadPKG::Decompiler::Analysis { |
| 8 | |
| 9 | class JumpTableAnalysis { |
| 10 | public: |
| 11 | explicit JumpTableAnalysis(std::shared_ptr<IR::Function> func); |
| 12 | void analyze(); |
| 13 | |
| 14 | private: |
| 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 |