2023-05-30 12:33:52 +02:00
|
|
|
#pragma once
|
|
|
|
|
2023-06-23 03:48:55 +02:00
|
|
|
#include "Zydis.h"
|
2023-05-30 15:27:11 +02:00
|
|
|
#include "../types.h"
|
2023-05-30 12:33:52 +02:00
|
|
|
|
|
|
|
class Disassembler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Disassembler();
|
|
|
|
~Disassembler();
|
2023-05-30 15:27:11 +02:00
|
|
|
void printInst(ZydisDecodedInstruction& inst, ZydisDecodedOperand* operands,u64 address);
|
|
|
|
void printInstruction(void* code,u64 address);
|
2023-05-30 12:33:52 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
ZydisDecoder m_decoder;
|
|
|
|
ZydisFormatter m_formatter;
|
2023-06-23 03:48:55 +02:00
|
|
|
};
|