mirror of
https://github.com/connorjaydunn/BinaryShield
synced 2026-06-06 15:24:33 +00:00
22 lines
394 B
C++
22 lines
394 B
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <vector>
|
|
|
|
#include "util.h"
|
|
|
|
class VirtualInstruction
|
|
{
|
|
public:
|
|
VirtualInstruction(DWORD vmHandlerRva, long long operand, BYTE operandSize);
|
|
VirtualInstruction(DWORD vmHandlerRva);
|
|
|
|
std::vector<BYTE> getBytes();
|
|
|
|
void setOperand(long long operand);
|
|
private:
|
|
DWORD vmHandlerRva;
|
|
long long operand;
|
|
bool hasOperand = false;
|
|
BYTE operandSize;
|
|
}; |