parent
9cf6cc8f03
commit
78f2b39b71
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <comp/obf/pass.hpp>
|
#include <obf/pass.hpp>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace theo::comp::obf {
|
namespace theo::obf {
|
||||||
class engine_t {
|
class engine_t {
|
||||||
explicit engine_t(){};
|
explicit engine_t(){};
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <comp/obf/pass.hpp>
|
#include <obf/pass.hpp>
|
||||||
|
|
||||||
namespace theo::comp::obf {
|
namespace theo::obf {
|
||||||
class jcc_rewrite_pass_t : public pass_t {
|
class jcc_rewrite_pass_t : public pass_t {
|
||||||
explicit jcc_rewrite_pass_t() : pass_t(decomp::sym_type_t::inst_split){};
|
explicit jcc_rewrite_pass_t() : pass_t(decomp::sym_type_t::inst_split){};
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <comp/obf/pass.hpp>
|
#include <obf/pass.hpp>
|
||||||
|
|
||||||
namespace theo::comp::obf {
|
namespace theo::obf {
|
||||||
class next_inst_pass_t : public pass_t {
|
class next_inst_pass_t : public pass_t {
|
||||||
explicit next_inst_pass_t() : pass_t(decomp::sym_type_t::inst_split){};
|
explicit next_inst_pass_t() : pass_t(decomp::sym_type_t::inst_split){};
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <comp/obf/pass.hpp>
|
#include <obf/pass.hpp>
|
||||||
|
|
||||||
namespace theo::comp::obf {
|
namespace theo::obf {
|
||||||
class reloc_transform_pass_t : public pass_t {
|
class reloc_transform_pass_t : public pass_t {
|
||||||
explicit reloc_transform_pass_t() : pass_t(decomp::sym_type_t::inst_split){};
|
explicit reloc_transform_pass_t() : pass_t(decomp::sym_type_t::inst_split){};
|
||||||
|
|
@ -1,19 +1,19 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <comp/obf/engine.hpp>
|
#include <obf/engine.hpp>
|
||||||
#include <comp/symbol_table.hpp>
|
#include <recomp/symbol_table.hpp>
|
||||||
#include <decomp/decomp.hpp>
|
#include <decomp/decomp.hpp>
|
||||||
|
|
||||||
namespace theo::comp {
|
namespace theo::recomp {
|
||||||
using resolver_t = std::function<std::uintptr_t(std::string)>;
|
using resolver_t = std::function<std::uintptr_t(std::string)>;
|
||||||
using copier_t = std::function<void(std::uintptr_t, void*, std::uint32_t)>;
|
using copier_t = std::function<void(std::uintptr_t, void*, std::uint32_t)>;
|
||||||
using allocator_t =
|
using allocator_t =
|
||||||
std::function<std::uintptr_t(std::uint32_t,
|
std::function<std::uintptr_t(std::uint32_t,
|
||||||
coff::section_characteristics_t)>;
|
coff::section_characteristics_t)>;
|
||||||
|
|
||||||
class comp_t {
|
class recomp_t {
|
||||||
public:
|
public:
|
||||||
explicit comp_t(decomp::decomp_t* dcmp);
|
explicit recomp_t(decomp::decomp_t* dcmp);
|
||||||
explicit comp_t(decomp::decomp_t* dcmp,
|
explicit recomp_t(decomp::decomp_t* dcmp,
|
||||||
allocator_t alloc,
|
allocator_t alloc,
|
||||||
copier_t copy,
|
copier_t copy,
|
||||||
resolver_t resolve);
|
resolver_t resolve);
|
@ -1,6 +1,6 @@
|
|||||||
#include <comp/obf/engine.hpp>
|
#include <obf/engine.hpp>
|
||||||
|
|
||||||
namespace theo::comp::obf {
|
namespace theo::obf {
|
||||||
engine_t* engine_t::get() {
|
engine_t* engine_t::get() {
|
||||||
static engine_t obj;
|
static engine_t obj;
|
||||||
return &obj;
|
return &obj;
|
@ -1,6 +1,6 @@
|
|||||||
#include <comp/obf/transform/add_op.hpp>
|
#include <obf/transform/add_op.hpp>
|
||||||
|
|
||||||
namespace theo::comp::obf::transform {
|
namespace theo::obf::transform {
|
||||||
add_op_t* add_op_t::get() {
|
add_op_t* add_op_t::get() {
|
||||||
static add_op_t obj;
|
static add_op_t obj;
|
||||||
return &obj;
|
return &obj;
|
@ -1,6 +1,6 @@
|
|||||||
#include <comp/symbol_table.hpp>
|
#include <recomp/symbol_table.hpp>
|
||||||
|
|
||||||
namespace theo::comp {
|
namespace theo::recomp {
|
||||||
symbol_table_t::symbol_table_t(const std::vector<decomp::symbol_t>&& syms) {
|
symbol_table_t::symbol_table_t(const std::vector<decomp::symbol_t>&& syms) {
|
||||||
std::for_each(syms.begin(), syms.end(), [&](decomp::symbol_t sym) {
|
std::for_each(syms.begin(), syms.end(), [&](decomp::symbol_t sym) {
|
||||||
m_table.insert({sym.hash(), sym});
|
m_table.insert({sym.hash(), sym});
|
Loading…
Reference in new issue