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.
15 lines
451 B
15 lines
451 B
3 years ago
|
#pragma once
|
||
3 years ago
|
#include <obf/transform/operation.hpp>
|
||
3 years ago
|
|
||
3 years ago
|
namespace theo::obf::transform {
|
||
|
class add_op_t : public operation_t {
|
||
3 years ago
|
explicit add_op_t()
|
||
|
: operation_t([&](std::size_t val,
|
||
|
std::size_t imm) -> std::size_t { return val + imm; },
|
||
|
type_t::add_op) {}
|
||
|
|
||
|
public:
|
||
|
static add_op_t* get();
|
||
|
std::vector<std::uint8_t> native(xed_inst_t* inst, std::size_t imm);
|
||
|
};
|
||
3 years ago
|
} // namespace theo::obf::transform
|