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.
19 lines
458 B
19 lines
458 B
#pragma once
|
|
#include <obf/transform/operation.hpp>
|
|
|
|
namespace theo::obf::transform {
|
|
class ror_op_t : public operation_t {
|
|
explicit ror_op_t()
|
|
: operation_t(
|
|
[&](std::size_t val, std::uint32_t imm) -> std::size_t {
|
|
return _rotr64(val, (std::uint8_t)imm);
|
|
},
|
|
XED_ICLASS_ROR) {}
|
|
|
|
public:
|
|
static ror_op_t* get() {
|
|
static ror_op_t obj;
|
|
return &obj;
|
|
}
|
|
};
|
|
} // namespace theo::obf::transform
|