You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
483 B
22 lines
483 B
#pragma once
|
|
#include <spdlog/spdlog.h>
|
|
#include <decomp/symbol.hpp>
|
|
#include <obf/transform/gen.hpp>
|
|
|
|
#define XED_ENCODER
|
|
extern "C" {
|
|
#include <xed-decode.h>
|
|
#include <xed-interface.h>
|
|
}
|
|
|
|
namespace theo::obf {
|
|
class pass_t {
|
|
public:
|
|
explicit pass_t(decomp::sym_type_t sym_type) : m_sym_type(sym_type){};
|
|
virtual void run(decomp::symbol_t* sym) = 0;
|
|
|
|
decomp::sym_type_t sym_type() { return m_sym_type; }
|
|
private:
|
|
decomp::sym_type_t m_sym_type;
|
|
};
|
|
} // namespace theo::obf
|