language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
Assembly Language
x64dbg-development/src/dbg/test/pferrie/x32/pferrie.asm
global _start section .data @real: mov byte [l1],0b0h l1: mov al,1 ret section .text _start: jmp @real
C/C++
x64dbg-development/src/dbg/TitanEngine/TitanEngine.h
#ifndef TITANENGINE #define TITANENGINE #define TITCALL #if _MSC_VER > 1000 #pragma once #endif #include <windows.h> #include <stdint.h> #pragma pack(push, 1) // Global.Constant.Structure.Declaration: // Engine.External: #define UE_STRUCT_PE32STRUCT 1 #define UE_STRUCT_PE64STRUCT 2 #define UE_STRUCT_PESTRUCT 3 #de...
Text
x64dbg-development/src/dbg/TitanEngine/TitanEngine.txt
TitanEngine SDK References Contents Introduction to TitanEngine 12 Introduction to static unpackers . 13 Introduction to dynamic unpackers 14 Introduction to generic unpackers 15 Dynamic unpacker layout . 16 TitanEngine SDK References . 18 Unicode support . 19 Python support . 19 LUA support 19 De...
C++
x64dbg-development/src/dbg/WinInet-Downloader/downslib.cpp
/* Created by John Ã…kerblom 10/26/2014 */ #include "downslib.h" #include <windows.h> #include <stdio.h> #include <Wininet.h> #include <functional> #pragma comment(lib, "Wininet.lib") class Cleanup { std::function<void()> fn; public: explicit Cleanup(std::function<void()> fn) : fn(std::move(fn)) { } ~Cl...
C/C++
x64dbg-development/src/dbg/WinInet-Downloader/downslib.h
/* Created by John Ã…kerblom 10/26/2014 */ #pragma once #include <wchar.h> #include <stdbool.h> enum class downslib_error { ok, createfile, inetopen, openurl, statuscode, cancel, incomplete }; typedef bool (*downslib_cb)(void* userdata, unsigned long long read_bytes, unsigned long long t...
C/C++
x64dbg-development/src/dbg/XEDParse/XEDParse.h
#ifndef _XEDPARSE_H #define _XEDPARSE_H #include <windows.h> //XEDParse defines #ifdef XEDPARSE_BUILD #define XEDPARSE_EXPORT __declspec(dllexport) #else #define XEDPARSE_EXPORT __declspec(dllimport) #endif //XEDPARSE_BUILD #define XEDPARSE_CALL //calling convention #define XEDPARSE_MAXBUFSIZE 256 #define XEDPARSE_...
C++
x64dbg-development/src/exe/crashdump.cpp
#include <windows.h> #pragma warning(push) #pragma warning(disable:4091) #include <dbghelp.h> #pragma warning(pop) #include <stdio.h> #include <exception> #include <signal.h> #include "crashdump.h" #include "signaturecheck.h" #define PROCESS_CALLBACK_FILTER_ENABLED 0x1 BOOL (WINAPI* MiniDumpWriteDumpPtr)( _In_ ...
C/C++
x64dbg-development/src/exe/crashdump.h
#pragma once void CrashDumpInitialize(); LONG CALLBACK CrashDumpExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo); void InvalidParameterHandler(const wchar_t* Expression, const wchar_t* Function, const wchar_t* File, unsigned int Line, uintptr_t Reserved); void TerminateHandler(); void AbortHandler(int Signal);
C/C++
x64dbg-development/src/exe/icon.h
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by icon64.rc // #define IDI_ICON1 100 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NO_MFC 1 #define _APS_NEXT_RESOURCE_VALUE ...
x64dbg-development/src/exe/icon.rc
// Microsoft Visual C++ generated resource script. // #include "icon.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" //////////////////////////////////////////////////////////////...
x64dbg-development/src/exe/icon32.rc
// Microsoft Visual C++ generated resource script. // #include "icon.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" //////////////////////////////////////////////////////////////...
x64dbg-development/src/exe/icon64.rc
// Microsoft Visual C++ generated resource script. // #include "icon.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" //////////////////////////////////////////////////////////////...
C/C++
x64dbg-development/src/exe/LoadResourceString.h
#include <string> #include "strings.h" // String resources inline std::wstring _LoadResString(UINT uID) { wchar_t* p = nullptr; int len = ::LoadStringW(NULL, uID, reinterpret_cast<LPWSTR>(&p), 0); if(len > 0) { return std::wstring(p, len); } else { return std::wstring(); ...
C/C++
x64dbg-development/src/exe/resource.h
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by resource.rc // #define IDD_DIALOGLAUNCHER 105 #define IDC_BUTTON32 1001 #define IDC_BUTTON64 1002 #define IDC_BUTTON3 1003 #define IDC_BUTTONINSTALL 1003 ...
x64dbg-development/src/exe/resource.rc
// Microsoft Visual C++ generated resource script. // #pragma code_page(65001) #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" ////////////////////////////////...
C++
x64dbg-development/src/exe/signaturecheck.cpp
#include "signaturecheck.h" #include <delayimp.h> #include <Softpub.h> #include <wincrypt.h> #include <wintrust.h> #include <string> #include <vector> static wchar_t szApplicationDir[MAX_PATH]; static bool bPerformSignatureChecks = false; //#define DEBUG_SIGNATURE_CHECKS #ifdef DEBUG_SIGNATURE_CHECKS static const ...
C/C++
x64dbg-development/src/exe/signaturecheck.h
#pragma once #include <Windows.h> bool InitializeSignatureCheck(); HMODULE WINAPI LoadLibraryCheckedW(const wchar_t* szDll, bool allowFailure); HMODULE WINAPI LoadLibraryCheckedA(const char* szDll, bool allowFailure);
C/C++
x64dbg-development/src/exe/strings.h
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Strings.rc // #define IDS_SETUP 101 #define IDS_ERROR 105 #define IDS_ERRORGETTINGMODULEPATH 106 #define IDS_QUESTION 107 #define IDS_ASKSHELLEXT 108 #defi...
x64dbg-development/src/exe/strings.rc
// Microsoft Visual C++ generated resource script. // #include "strings.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" ///////////////////////////////////////////////////////////...
C++
x64dbg-development/src/exe/x64dbg_exe.cpp
/** @file x64dbg_exe.cpp @brief Implements the 64 debug executable class. */ #include <stdio.h> #include <windows.h> #include "crashdump.h" #include "../bridge/bridgemain.h" #include "LoadResourceString.h" #include "signaturecheck.h" /** @fn int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPST...
Visual C++ Project
x64dbg-development/src/exe/x64dbg_exe.vcxproj
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> ...
x64dbg-development/src/exe/x64dbg_exe.vcxproj.filters
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Filter Include="Source Files"> <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx<...
x64dbg-development/src/gui/default.css
/* QStatusBar == DebugStatusLabel, LogStatusLabel, TimeWastedCounter */ QStatusBar QLabel { background-color: #c0c0c0; } QStatusBar QFrame { qproperty-frameShape: Panel; qproperty-frameShadow: Sunken; } QStatusBar::item { border: none; } QStatusBar { background-color: #c0c0c0; } DebugStatusLabel...
x64dbg-development/src/gui/index.theme
[Icon Theme] Name=Default Comment=Default icon theme Directories=icons [icons] Size=16 Type=Scalable
x64dbg-development/src/gui/resource.qrc
<RCC> <qresource prefix="/Default"> <file>icons/folder-horizontal-open.png</file> <file>icons/arrow-step-into.png</file> <file>icons/arrow-step-over.png</file> <file>icons/control-pause.png</file> <file>icons/arrow-run.png</file> <file>icons/geolocation-goto.png</file...
x64dbg-development/src/gui/x64dbg.pro
#------------------------------------------------- # # Project created by QtCreator 2013-05-20T13:22:23 # #------------------------------------------------- ## ## Pre-defined global variables ## CONFIG(debug, debug|release) { DIR_SUFFIX = d } else { DIR_SUFFIX = } !contains(QMAKE_HOST.arch, x86_64) { X64...
C/C++
x64dbg-development/src/gui/Src/Exports.h
#pragma once #include "Imports.h" /************************************************************************************ Exported Function Prototypes ************************************************************************************/ #ifdef BUILD_LIB extern "C" __declspec(dllexport) int ...
C++
x64dbg-development/src/gui/Src/Imports.cpp
#include "Imports.h" #include <QString> bool DbgCmdExec(const QString & cmd) { return DbgCmdExec(cmd.toUtf8().constData()); } bool DbgCmdExecDirect(const QString & cmd) { return DbgCmdExecDirect(cmd.toUtf8().constData()); }
C/C++
x64dbg-development/src/gui/Src/Imports.h
#pragma once #ifndef _BRIDGEMAIN_H_ #include "bridge/bridgemain.h" #endif #ifndef _DBGFUNCTIONS_H #include "dbg/_dbgfunctions.h" #endif #ifndef _DBG_TYPES_H_ #include "dbg_types.h" #endif // Convenience overloads class QString; bool DbgCmdExec(const QString & cmd); bool DbgCmdExecDirect(const QString & cmd);
C++
x64dbg-development/src/gui/Src/main.cpp
#include "main.h" #include "zydis_wrapper.h" #include "MainWindow.h" #include "Configuration.h" #include <QTextCodec> #include <QFile> #include <QTranslator> #include <QTextStream> #include <QLibraryInfo> #include <QDebug> #include <QDir> #include "MiscUtil.h" MyApplication::MyApplication(int & argc, char** argv) ...
C/C++
x64dbg-development/src/gui/Src/main.h
#pragma once #include <QApplication> #include <QAbstractEventDispatcher> #include <QMessageBox> #include "Bridge.h" #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) #include <QAbstractNativeEventFilter> #endif class MyApplication : public QApplication { Q_OBJECT public: MyApplication(int & argc, char** argv); bo...
C/C++
x64dbg-development/src/gui/Src/BasicView/AbstractSearchList.h
#pragma once #include "AbstractStdTable.h" class AbstractSearchList { public: enum FilterType { FilterStartsWithTextCaseSensitive, //unused FilterStartsWithTextCaseInsensitive, //unused FilterContainsTextCaseSensitive, //unused FilterContainsTextCaseInsensitive, FilterR...
C++
x64dbg-development/src/gui/Src/BasicView/AbstractStdTable.cpp
#include "AbstractStdTable.h" #include "Bridge.h" #include "RichTextPainter.h" AbstractStdTable::AbstractStdTable(QWidget* parent) : AbstractTableView(parent) { setContextMenuPolicy(Qt::CustomContextMenu); connect(Bridge::getBridge(), SIGNAL(repaintTableView()), this, SLOT(reloadData())); connect(this, SI...
C/C++
x64dbg-development/src/gui/Src/BasicView/AbstractStdTable.h
#pragma once #include "AbstractTableView.h" class AbstractStdTable : public AbstractTableView { Q_OBJECT public: explicit AbstractStdTable(QWidget* parent = 0); QString paintContent(QPainter* painter, dsint rowBase, int rowOffset, int col, int x, int y, int w, int h) override; void updateColors() over...
C++
x64dbg-development/src/gui/Src/BasicView/AbstractTableView.cpp
#include "AbstractTableView.h" #include <QStyleOptionButton> #include "Configuration.h" #include "ColumnReorderDialog.h" #include "CachedFontMetrics.h" #include "Bridge.h" #include "DisassemblyPopup.h" #include "MethodInvoker.h" int AbstractTableView::mMouseWheelScrollDelta = 0; AbstractTableScrollBar::AbstractTableS...
C/C++
x64dbg-development/src/gui/Src/BasicView/AbstractTableView.h
#pragma once #include <QScrollBar> #include <QAbstractScrollArea> #include <QPushButton> #include <QApplication> #include <QMouseEvent> #include <QPainter> #include <QMenu> #include "StringUtil.h" #include "Configuration.h" #include "MenuBuilder.h" #include "MiscUtil.h" #include "ActionHelpers.h" class CachedFontMetr...
C++
x64dbg-development/src/gui/Src/BasicView/Disassembly.cpp
#include "Disassembly.h" #include "Configuration.h" #include "CodeFolding.h" #include "EncodeMap.h" #include "Bridge.h" #include "CachedFontMetrics.h" #include "QBeaEngine.h" #include "MemoryPage.h" Disassembly::Disassembly(QWidget* parent, bool isMain) : AbstractTableView(parent), mIsMain(isMain) { mMem...
C/C++
x64dbg-development/src/gui/Src/BasicView/Disassembly.h
#pragma once #include "AbstractTableView.h" #include "QBeaEngine.h" #include <QTextLayout> class CodeFoldingHelper; class MemoryPage; class Disassembly : public AbstractTableView { Q_OBJECT public: Disassembly(QWidget* parent, bool isMain); ~Disassembly() override; // Configuration void updateCo...
C/C++
x64dbg-development/src/gui/Src/BasicView/HeaderButton.h
#pragma once #include <QWidget> class HeaderButton : public QWidget { Q_OBJECT public: explicit HeaderButton(QWidget* parent = 0); void setGeometry(int x, int y, int w, int h); signals: public slots: };
C++
x64dbg-development/src/gui/Src/BasicView/HexDump.cpp
#include "HexDump.h" #include "Configuration.h" #include "Bridge.h" #include "StringUtil.h" #include <QMessageBox> static int getStringMaxLength(HexDump::DataDescriptor desc); static int byteStringMaxLength(HexDump::ByteViewMode mode); static int wordStringMaxLength(HexDump::WordViewMode mode); static int dwordStringM...
C/C++
x64dbg-development/src/gui/Src/BasicView/HexDump.h
#pragma once #include "AbstractTableView.h" #include "RichTextPainter.h" #include "MemoryPage.h" #include "VaHistory.h" #include <QTextCodec> class HexDump : public AbstractTableView { Q_OBJECT public: enum DataSize { Byte = 1, Word = 2, Dword = 4, Qword = 8, Tword ...
C++
x64dbg-development/src/gui/Src/BasicView/HistoryLineEdit.cpp
#include "HistoryLineEdit.h" #include "Bridge.h" HistoryLineEdit::HistoryLineEdit(QWidget* parent) : QLineEdit(parent) { mCmdIndex = -1; bSixPressed = false; } void HistoryLineEdit::loadSettings(QString sectionPrefix) { char buffer[MAX_SETTING_SIZE]; for(int i = 1; BridgeSettingGet(sectionPrefix.toUtf...
C/C++
x64dbg-development/src/gui/Src/BasicView/HistoryLineEdit.h
#pragma once #include <QLineEdit> #include <QKeyEvent> class HistoryLineEdit : public QLineEdit { Q_OBJECT public: explicit HistoryLineEdit(QWidget* parent = 0); void keyPressEvent(QKeyEvent* event); void addLineToHistory(QString parLine); QString getLineFromHistory(); QString addHistoryClear(...
C++
x64dbg-development/src/gui/Src/BasicView/LabeledSplitter.cpp
#include "LabeledSplitter.h" #include "LabeledSplitterDetachedWindow.h" #include <QPainter> #include <QpaintEvent> #include <QMenu> #include <QDesktopWidget> #include <QApplication> #include "Bridge.h" #include "Configuration.h" //LabeledSplitterHandle class LabeledSplitterHandle::LabeledSplitterHandle(Qt::Orientation...
C/C++
x64dbg-development/src/gui/Src/BasicView/LabeledSplitter.h
#pragma once #include <QSplitter> class LabeledSplitter; class QMenu; class QAction; class LabeledSplitterDetachedWindow; class LabeledSplitter : public QSplitter { Q_OBJECT public: LabeledSplitter(QWidget* parent); void addWidget(QWidget* widget, const QString & name); void insertWidget(int index, Q...
C++
x64dbg-development/src/gui/Src/BasicView/LabeledSplitterDetachedWindow.cpp
#include "LabeledSplitterDetachedWindow.h" LabeledSplitterDetachedWindow::LabeledSplitterDetachedWindow(QWidget* parent, LabeledSplitter* splitterwidget) : QMainWindow(parent), index(0) { mSplitterWidget = splitterwidget; } LabeledSplitterDetachedWindow::~LabeledSplitterDetachedWindow() { } void Label...
C/C++
x64dbg-development/src/gui/Src/BasicView/LabeledSplitterDetachedWindow.h
#pragma once #include <QMainWindow> #include <QSplitterHandle> class LabeledSplitter; class LabeledSplitterHandle : public QSplitterHandle { Q_OBJECT public: LabeledSplitterHandle(Qt::Orientation o, LabeledSplitter* parent); int originalSize; protected slots: QSize sizeHint() const override; QSi...
C++
x64dbg-development/src/gui/Src/BasicView/ReferenceView.cpp
#include <QHBoxLayout> #include <QMessageBox> #include <QLabel> #include <QTabWidget> #include "ReferenceView.h" #include "Configuration.h" #include "Bridge.h" #include "MiscUtil.h" ReferenceView::ReferenceView(bool sourceView, QWidget* parent) : StdSearchListView(parent, true, false), mParent(dynamic_cast<QTabWidget*...
C/C++
x64dbg-development/src/gui/Src/BasicView/ReferenceView.h
#pragma once #include <QProgressBar> #include <QLabel> #include "StdSearchListView.h" class DisassemblyPopup; class QTabWidget; class ReferenceView : public StdSearchListView { Q_OBJECT public: ReferenceView(bool sourceView = false, QWidget* parent = nullptr); void setupContextMenu(); void connectBr...
C++
x64dbg-development/src/gui/Src/BasicView/SearchListView.cpp
#include <QVBoxLayout> #include <QHBoxLayout> #include <QSplitter> #include <QLabel> #include <QTimer> #include "SearchListView.h" #include "FlickerThread.h" #include "MethodInvoker.h" SearchListView::SearchListView(QWidget* parent, AbstractSearchList* abstractSearchList, bool enableRegex, bool enableLock) : QWidg...
C/C++
x64dbg-development/src/gui/Src/BasicView/SearchListView.h
#pragma once #include <QWidget> #include <QLineEdit> #include <QCheckBox> #include "MenuBuilder.h" #include "ActionHelpers.h" #include "AbstractSearchList.h" class SearchListView : public QWidget, public ActionHelper<SearchListView> { Q_OBJECT public: explicit SearchListView(QWidget* parent, AbstractSearchLi...
C++
x64dbg-development/src/gui/Src/BasicView/ShortcutEdit.cpp
#include "ShortcutEdit.h" #include <QStyle> ShortcutEdit::ShortcutEdit(QWidget* parent) : QLineEdit(parent) { keyInt = -1; mError = true; } const QKeySequence ShortcutEdit::getKeysequence() const { if(keyInt == -1) //return empty on -1 return QKeySequence(); // returns current keystroke combin...
C/C++
x64dbg-development/src/gui/Src/BasicView/ShortcutEdit.h
#pragma once #include <QLineEdit> #include <QKeySequence> #include <QKeyEvent> class ShortcutEdit : public QLineEdit { Q_OBJECT Q_PROPERTY(bool error MEMBER mError READ error) int keyInt; bool mError; public: explicit ShortcutEdit(QWidget* parent = 0); const QKeySequence getKeysequence() cons...
C++
x64dbg-development/src/gui/Src/BasicView/StdIconSearchListView.cpp
#include "StdIconSearchListView.h" StdIconSearchListView::StdIconSearchListView(QWidget* parent, bool enableRegex, bool enableLock) : StdIconSearchListView(parent, enableRegex, enableLock, new StdTableSearchList(new StdIconTable(), new StdIconTable())) { } StdIconSearchListView::StdIconSearchListView(QWidget* par...
C/C++
x64dbg-development/src/gui/Src/BasicView/StdIconSearchListView.h
#pragma once #include "StdSearchListView.h" #include "StdIconTable.h" class StdIconSearchListView : public StdSearchListView { Q_OBJECT public: StdIconSearchListView(QWidget* parent, bool enableRegex, bool enableLock); StdIconSearchListView(QWidget* parent, bool enableRegex, bool enableLock, StdTableSearc...
C++
x64dbg-development/src/gui/Src/BasicView/StdIconTable.cpp
#include "StdIconTable.h" /************************************************************************************ Data Management ************************************************************************************/ void StdIconTable::setRowIcon(int r, const QIcon & icon) { mIcon.at(...
C/C++
x64dbg-development/src/gui/Src/BasicView/StdIconTable.h
#pragma once #include "StdTable.h" // StdIconTable extends StdTable by adding icons to one of the columns class StdIconTable : public StdTable { Q_OBJECT public: explicit StdIconTable(QWidget* parent = 0) : StdTable(parent), mIconColumn(0) {} // Data Management void setRowIcon(int r, const QIcon & ic...
C++
x64dbg-development/src/gui/Src/BasicView/StdSearchListView.cpp
#include "StdSearchListView.h" #include "MethodInvoker.h" StdSearchListView::StdSearchListView(QWidget* parent, bool enableRegex, bool enableLock) : StdSearchListView(parent, enableRegex, enableLock, new StdTableSearchList()) { } StdSearchListView::StdSearchListView(QWidget* parent, bool enableRegex, bool enableL...
C/C++
x64dbg-development/src/gui/Src/BasicView/StdSearchListView.h
#pragma once #include "SearchListView.h" #include "StdTableSearchList.h" class StdSearchListView : public SearchListView { Q_OBJECT public: StdSearchListView(QWidget* parent, bool enableRegex, bool enableLock); StdSearchListView(QWidget* parent, bool enableRegex, bool enableLock, StdTableSearchList* table...
C++
x64dbg-development/src/gui/Src/BasicView/StdTable.cpp
#include "StdTable.h" #include "Bridge.h" StdTable::StdTable(QWidget* parent) : AbstractStdTable(parent) { } /************************************************************************************ Sorting ********************************************************************************...
C/C++
x64dbg-development/src/gui/Src/BasicView/StdTable.h
#pragma once #include "AbstractStdTable.h" class StdTable : public AbstractStdTable { Q_OBJECT public: explicit StdTable(QWidget* parent = 0); // Sorting struct SortBy { typedef std::function<bool(const QString &, const QString &)> t; static bool AsText(const QString & a, const QS...
C++
x64dbg-development/src/gui/Src/BasicView/StdTableSearchList.cpp
#include "StdTableSearchList.h" #include "StdIconTable.h" void StdTableSearchList::filter(const QString & filter, FilterType type, int startColumn) { StdIconTable* mSearchIconList = qobject_cast<StdIconTable*>(mSearchList); StdIconTable* mIconList = qobject_cast<StdIconTable*>(mList); mSearchList->setRowCo...
C/C++
x64dbg-development/src/gui/Src/BasicView/StdTableSearchList.h
#pragma once #include "AbstractSearchList.h" #include "StdTable.h" class StdTableSearchList : public AbstractSearchList { public: friend class StdSearchListView; StdTableSearchList() : StdTableSearchList(new StdTable(), new StdTable()) { } StdTableSearchList(StdTable* list, StdTable* searchList) : mList(...
C++
x64dbg-development/src/gui/Src/Bridge/Bridge.cpp
#include "Bridge.h" #include <QClipboard> #include "QBeaEngine.h" #include "main.h" #include "Exports.h" #include "ReferenceManager.h" #include "SymbolView.h" /************************************************************************************ Global Variables ****************************...
C/C++
x64dbg-development/src/gui/Src/Bridge/Bridge.h
#pragma once #include <agents.h> #include <QObject> #include <QWidget> #include <QMutex> #include <QMenu> #include "Imports.h" #include "BridgeResult.h" class ReferenceManager; class SymbolView; class Bridge : public QObject { Q_OBJECT friend class BridgeResult; public: explicit Bridge(QObject* parent ...
C++
x64dbg-development/src/gui/Src/Bridge/BridgeResult.cpp
#include "BridgeResult.h" #include "Bridge.h" #include <QCoreApplication> BridgeResult::BridgeResult(Type type) : mType(type) { Bridge* bridge = Bridge::getBridge(); EnterCriticalSection(&bridge->csBridge); #ifdef DEBUG OutputDebugStringA(QString().sprintf("[x64dbg] [%u] BridgeResult(%d)\n", GetCurrent...
C/C++
x64dbg-development/src/gui/Src/Bridge/BridgeResult.h
#pragma once #include "Imports.h" class BridgeResult { public: enum Type { ScriptAdd, ScriptMessage, RefInitialize, MenuAddToList, MenuAdd, MenuAddEntry, MenuAddSeparator, MenuClear, MenuRemove, SelectionGet, SelectionSet,...
C++
x64dbg-development/src/gui/Src/Disassembler/QBeaEngine.cpp
#include "QBeaEngine.h" #include "StringUtil.h" #include "EncodeMap.h" #include "CodeFolding.h" QBeaEngine::QBeaEngine(int maxModuleSize) : _tokenizer(maxModuleSize), mCodeFoldingManager(nullptr), _bLongDataInst(false) { ZydisTokenizer::UpdateColors(); UpdateDataInstructionMap(); this->mEncodeMap = new...
C/C++
x64dbg-development/src/gui/Src/Disassembler/QBeaEngine.h
#pragma once #include <QString> #include <vector> #include "ZydisTokenizer.h" class EncodeMap; class CodeFoldingHelper; struct Instruction_t { enum BranchType { None, Conditional, Unconditional, Call }; Instruction_t() : rva(0), length(0), ...
C++
x64dbg-development/src/gui/Src/Disassembler/ZydisTokenizer.cpp
#include "ZydisTokenizer.h" #include "Configuration.h" #include "StringUtil.h" #include "CachedFontMetrics.h" ZydisTokenizer::ZydisTokenizer(int maxModuleLength) : _maxModuleLength(maxModuleLength), _success(false), isNop(false), _mnemonicType(TokenType::Uncategorized) { SetConfig(false, fals...
C/C++
x64dbg-development/src/gui/Src/Disassembler/ZydisTokenizer.h
#pragma once #include <zydis_wrapper.h> #include "RichTextPainter.h" #include "Configuration.h" #include <map> #include <QHash> #include <QtCore> class ZydisTokenizer { public: enum class TokenType { //filling Comma = 0, Space, ArgumentSpace, MemoryOperatorSpace, ...
C++
x64dbg-development/src/gui/Src/Gui/AboutDialog.cpp
#include "AboutDialog.h" #include "UpdateChecker.h" #include "ui_AboutDialog.h" #include <StringUtil.h> #include <QDesktopServices> #include <QUrl> AboutDialog::AboutDialog(UpdateChecker* updateChecker, QWidget* parent) : mUpdateChecker(updateChecker), QDialog(parent), ui(new Ui::AboutDialog) { ui->set...
C/C++
x64dbg-development/src/gui/Src/Gui/AboutDialog.h
#pragma once #include <QDialog> class UpdateChecker; namespace Ui { class AboutDialog; } class AboutDialog : public QDialog { Q_OBJECT public: explicit AboutDialog(UpdateChecker* updateChecker, QWidget* parent = 0); ~AboutDialog(); protected: bool eventFilter(QObject* obj, QEvent* event) overr...
User Interface
x64dbg-development/src/gui/Src/Gui/AboutDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>AboutDialog</class> <widget class="QDialog" name="AboutDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>321</width> <height>321</height> </rect> </property> <property name="windowTitle"> <string>About x6...
C++
x64dbg-development/src/gui/Src/Gui/AppearanceDialog.cpp
#include "AppearanceDialog.h" #include "ui_AppearanceDialog.h" #include <QColorDialog> #include <QFontDialog> #include <QMessageBox> #include <memory> #include "Configuration.h" #include "StringUtil.h" #include "MiscUtil.h" AppearanceDialog::AppearanceDialog(QWidget* parent) : QDialog(parent), ui(new Ui::AppearanceDia...
C/C++
x64dbg-development/src/gui/Src/Gui/AppearanceDialog.h
#pragma once #include <QAction> #include <QDialog> #include <QMap> #include <QColorDialog> #include <QLineEdit> namespace Ui { class AppearanceDialog; } class QTreeWidgetItem; class AppearanceDialog : public QDialog { Q_OBJECT public: explicit AppearanceDialog(QWidget* parent = 0); ~AppearanceDialo...
User Interface
x64dbg-development/src/gui/Src/Gui/AppearanceDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>AppearanceDialog</class> <widget class="QDialog" name="AppearanceDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>522</width> <height>429</height> </rect> </property> <property name="windowTitle"> <strin...
C++
x64dbg-development/src/gui/Src/Gui/AssembleDialog.cpp
#include "AssembleDialog.h" #include "ui_AssembleDialog.h" #include "ValidateExpressionThread.h" #include <QMessageBox> #include "Configuration.h" bool AssembleDialog::bWarningShowedOnce = false; #define ASSEMBLE_ERROR (-1337) AssembleDialog::AssembleDialog(QWidget* parent) : QDialog(parent), ui(new Ui::Assem...
C/C++
x64dbg-development/src/gui/Src/Gui/AssembleDialog.h
#pragma once #include <QDialog> #include <functional> #include "Bridge.h" class ValidateExpressionThread; namespace Ui { class AssembleDialog; } class AssembleDialog : public QDialog { Q_OBJECT public: explicit AssembleDialog(QWidget* parent = 0); ~AssembleDialog(); QString editText; static...
User Interface
x64dbg-development/src/gui/Src/Gui/AssembleDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>AssembleDialog</class> <widget class="QDialog" name="AssembleDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>526</width> <height>96</height> </rect> </property> <property name="windowTitle"> <string>0</...
C++
x64dbg-development/src/gui/Src/Gui/AttachDialog.cpp
#include "AttachDialog.h" #include "ui_AttachDialog.h" #include "StdIconSearchListView.h" #include "StdTable.h" #include <QMenu> #include <QMessageBox> #include <QFileInfo> AttachDialog::AttachDialog(QWidget* parent) : QDialog(parent), ui(new Ui::AttachDialog) { ui->setupUi(this); setWindowFlags(windowFlags() ...
C/C++
x64dbg-development/src/gui/Src/Gui/AttachDialog.h
#pragma once #include <QDialog> class StdIconSearchListView; class QMenu; class QAction; namespace Ui { class AttachDialog; } class AttachDialog : public QDialog { Q_OBJECT public: explicit AttachDialog(QWidget* parent = 0); ~AttachDialog(); private slots: void on_btnAttach_clicked(); void...
User Interface
x64dbg-development/src/gui/Src/Gui/AttachDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>AttachDialog</class> <widget class="QDialog" name="AttachDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>800</width> <height>400</height> </rect> </property> <property name="windowTitle"> <string>Attach...
C++
x64dbg-development/src/gui/Src/Gui/BreakpointsView.cpp
#include <QClipboard> #include <QRegularExpression> #include "BreakpointsView.h" #include "EditBreakpointDialog.h" #include "Bridge.h" #include "MenuBuilder.h" #include "Breakpoints.h" BreakpointsView::BreakpointsView(QWidget* parent) : StdTable(parent), mExceptionMaxLength(0) { auto charWidth = [this](int cou...
C/C++
x64dbg-development/src/gui/Src/Gui/BreakpointsView.h
#pragma once #include <QWidget> #include "Bridge.h" #include "StdTable.h" #include "QBeaEngine.h" class MenuBuilder; class BreakpointsView : public StdTable { Q_OBJECT public: explicit BreakpointsView(QWidget* parent = 0); protected: void setupContextMenu(); void updateColors() override; void so...
C++
x64dbg-development/src/gui/Src/Gui/BrowseDialog.cpp
#include "BrowseDialog.h" #include "ui_BrowseDialog.h" #include "MiscUtil.h" #include <QDirModel> #include <QCompleter> #include <QFileDialog> #include <Configuration.h> BrowseDialog::BrowseDialog(QWidget* parent, const QString & title, const QString & text, const QString & filter, const QString & defaultPath, bool sa...
C/C++
x64dbg-development/src/gui/Src/Gui/BrowseDialog.h
#pragma once #include <QDialog> namespace Ui { class BrowseDialog; } class BrowseDialog : public QDialog { Q_OBJECT public: BrowseDialog(QWidget* parent, const QString & title, const QString & text, const QString & filter, const QString & defaultPath, bool save); ~BrowseDialog(); QString path; ...
User Interface
x64dbg-development/src/gui/Src/Gui/BrowseDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>BrowseDialog</class> <widget class="QDialog" name="BrowseDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>487</width> <height>97</height> </rect> </property> <property name="windowTitle"> <string>Dialog<...
C++
x64dbg-development/src/gui/Src/Gui/CalculatorDialog.cpp
#include "CalculatorDialog.h" #include "ui_CalculatorDialog.h" #include "ValidateExpressionThread.h" static duint bswap(duint value) { duint result = 0; for(size_t i = 0; i < sizeof(value); i++) ((unsigned char*)&result)[sizeof(value) - i - 1] = ((unsigned char*)&value)[i]; return result; } QStrin...
C/C++
x64dbg-development/src/gui/Src/Gui/CalculatorDialog.h
#pragma once #include <QDialog> #include "Imports.h" class ValidateExpressionThread; namespace Ui { class CalculatorDialog; } class CalculatorDialog : public QDialog { Q_OBJECT enum class Format { Unknown = 0, Hex, SignedDec, UnsignedDec, Octal, Bytes...
User Interface
x64dbg-development/src/gui/Src/Gui/CalculatorDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>CalculatorDialog</class> <widget class="QDialog" name="CalculatorDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>502</width> <height>279</height> </rect> </property> <property name="sizePolicy"> <sizepo...
C++
x64dbg-development/src/gui/Src/Gui/CallStackView.cpp
#include "CallStackView.h" #include "CommonActions.h" #include "Bridge.h" CallStackView::CallStackView(StdTable* parent) : StdIconTable(parent) { int charwidth = getCharWidth(); addColumnAt(8 * charwidth, tr("Thread ID"), false); addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("Address"), false); //addr...
C/C++
x64dbg-development/src/gui/Src/Gui/CallStackView.h
#pragma once #include "StdIconTable.h" class CommonActions; class CallStackView : public StdIconTable { Q_OBJECT public: explicit CallStackView(StdTable* parent = 0); void setupContextMenu(); duint getSelectionVa(); protected: QString paintContent(QPainter* painter, dsint rowBase, int rowOffset, ...
C++
x64dbg-development/src/gui/Src/Gui/CloseDialog.cpp
#include "CloseDialog.h" #include "ui_CloseDialog.h" #include "MiscUtil.h" #include <QCloseEvent> CloseDialog::CloseDialog(QWidget* parent) : QDialog(parent), ui(new Ui::CloseDialog) { ui->setupUi(this); setModal(true); setWindowFlags(windowFlags() & ~(Qt::WindowContextHelpButtonHint | Qt::WindowCloseButto...
C/C++
x64dbg-development/src/gui/Src/Gui/CloseDialog.h
#pragma once #include <QDialog> class QCloseEvent; namespace Ui { class CloseDialog; } class CloseDialog : public QDialog { Q_OBJECT public: explicit CloseDialog(QWidget* parent = 0); ~CloseDialog(); void closeEvent(QCloseEvent* event); void allowClose(); private: Ui::CloseDialog* ui; ...
User Interface
x64dbg-development/src/gui/Src/Gui/CloseDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>CloseDialog</class> <widget class="QDialog" name="CloseDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>220</width> <height>80</height> </rect> </property> <property name="windowTitle"> <string/> </pro...
C++
x64dbg-development/src/gui/Src/Gui/CodepageSelectionDialog.cpp
#include "CodepageSelectionDialog.h" #include "ui_CodepageSelectionDialog.h" #include "Bridge.h" #include <QTextCodec> #include "MiscUtil.h" CodepageSelectionDialog::CodepageSelectionDialog(QWidget* parent) : QDialog(parent), ui(new Ui::CodepageSelectionDialog) { ui->setupUi(this); setModal(true); ...
C/C++
x64dbg-development/src/gui/Src/Gui/CodepageSelectionDialog.h
#pragma once #include <QDialog> namespace Ui { class CodepageSelectionDialog; } class CodepageSelectionDialog : public QDialog { Q_OBJECT public: explicit CodepageSelectionDialog(QWidget* parent = 0); ~CodepageSelectionDialog(); QByteArray getSelectedCodepage(); private: Ui::CodepageSelecti...
User Interface
x64dbg-development/src/gui/Src/Gui/CodepageSelectionDialog.ui
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>CodepageSelectionDialog</class> <widget class="QDialog" name="CodepageSelectionDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>396</width> <height>300</height> </rect> </property> <property name="windowTit...
C++
x64dbg-development/src/gui/Src/Gui/ColumnReorderDialog.cpp
#include "ColumnReorderDialog.h" #include "ui_ColumnReorderDialog.h" #include "AbstractTableView.h" #include <QMessageBox> ColumnReorderDialog::ColumnReorderDialog(AbstractTableView* parent) : QDialog(parent), mParent(parent), ui(new Ui::ColumnReorderDialog) { ui->setupUi(this); setWindowFlags(wind...