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.
21 lines
456 B
21 lines
456 B
#pragma once
|
|
#include <spdlog/spdlog.h>
|
|
#include <decomp/symbol.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::comp::obf
|