#pragma once #include #include #include #define XED_ENCODER extern "C" { #include #include } /// /// this is the main namespace for obfuscation related things. /// namespace theo::obf { /// /// the pass_t class is a base clase for all passes made. you must override the /// pass_t::run virtual function and declare the logic of your pass there. /// /// in the constructor of your pass you must call the super constructor (the /// pass_t constructor) and pass it the type of symbol which you are interesting /// in receiving. /// class pass_t { public: /// /// the explicit constructor of the pass_t base class. /// /// the type of symbol in which the pass will run on. /// every symbol passed to the virtual "run" instruction will be of this /// type. explicit pass_t(decomp::sym_type_t sym_type) : m_sym_type(sym_type){}; /// /// virtual method which must be implimented by the pass that inherits this /// class. /// /// a symbol of the same type of m_sym_type. virtual void run(decomp::symbol_t* sym) = 0; /// /// gets the passes symbol type. /// /// the passes symbol type. decomp::sym_type_t sym_type() { return m_sym_type; } private: decomp::sym_type_t m_sym_type; }; } // namespace theo::obf