/
githubmirror
/
x64dbg
Обзор
Документация
Войти
/
githubmirror
/
x64dbg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
src/dbg/analysis/analysis.h
33 строки
683 B
Duncan Ogilvie
Update zydis_wrapper
19 сен 2023, 07:25
19 сен 2023, 07:25
952c16a
Код
Авторство
О чём код?
#ifndef _ANALYSIS_H #define _ANALYSIS_H #include "_global.h" #include <zydis_wrapper.h> class Analysis { public: explicit Analysis(duint base, duint size); Analysis(const Analysis & that) = delete; virtual ~Analysis(); virtual void Analyse() = 0; virtual void SetMarkers() = 0; protected: duint mBase; duint mSize; unsigned char* mData; Zydis mZydis; bool inRange(duint addr) const { return addr >= mBase && addr < mBase + mSize; } const unsigned char* translateAddr(duint addr) const { return inRange(addr) ? mData + (addr - mBase) : nullptr; } }; #endif //_ANALYSIS_H