X 64 DBG
X 64 DBG
X 64 DBG
Release 0.1
x64dbg
1 Suggested reads 1
1.1 What is x64dbg? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 GUI manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.5 Developers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
i
ii
CHAPTER 1
Suggested reads
If you came here because someone told you to read the manual, start by reading all sections of the introduction.
Contents:
1.2 Introduction
This section explains the basics of x64dbg. Make sure to fully read this!
Contents:
1
x64dbg Documentation, Release 0.1
1.2.1 Features
This program is currently under active development. It supports many basic and advanced features to ease debugging
on Windows.
Basic features
Advanced features
• Decompiler (snowman)
• Yara pattern matching
• Import reconstructor integrated (Scylla)
• Analysis
• Conditional breakpoints and tracing with great flexibility
GUI features
1.2.2 Input
When using x64dbg you can often use various things as input.
Commands
Variables
Variables optionally start with a $ and can only store one DWORD (QWORD on x64).
Registers
Remarks
• The variable names for most registers are the same as the names for them, except for the following registers:
• x87 Control Word Flag: The flags for this register is named like this: _x87CW_UM
• In addition to the registers in the architecture, x64dbg provides the following registers: CAX , CBX , CCX , CDX
, CSP , CBP , CSI , CDI , CIP. These registers are mapped to 32-bit registers on 32-bit platform, and to 64-bit
registers on 64-bit platform. For example, CIP is EIP on 32-bit platform, and is RIP on 64-bit platform. This
feature is intended to support architecture-independent code.
1.2. Introduction 3
x64dbg Documentation, Release 0.1
Memory locations
You can read/write from/to a memory location by using one of the following expressions:
• [addr] read a DWORD/QWORD from addr.
• n:[addr] read n bytes from addr.
• seg:[addr] read a DWORD/QWORD from a segment at addr.
• byte:[addr] read a BYTE from addr.
• word:[addr] read a WORD from addr.
• dword:[addr] read a DWORD from addr.
• qword:[addr] read a QWORD from addr (x64 only).
Remarks
• n is the amount of bytes to read, this can be anything smaller than 4 on x32 and smaller than 8 on x64 when
specified, otherwise there will be an error.
• seg can be gs, es, cs, fs, ds, ss. Only fs and gs have an effect.
Flags
Debug flags (interpreted as integer) can be used as input. Flags are prefixed with an _ followed by the flag name. Valid
flags are: _cf, _pf, _af, _zf, _sf, _tf, _if, _df, _of, _rf, _vm, _ac, _vif, _vip and _id.
Numbers
All numbers are interpreted as hex by default! If you want to be sure, you can x or 0x as a prefix. Decimal numbers
can be used by prefixing the number with a dot: .123=7B.
Expressions
Labels/Symbols
User-defined labels and symbols are a valid expressions (they resolve to the address of said label/symbol).
Module Data
DLL exports
Type GetProcAddress and it will automatically be resolved to the actual address of the function. To explicitly
define from which module to load the API, use: [module].dll:[api] or [module]:[api]. In a similar way
you can resolve ordinals, try [module]:[ordinal]. Another macro allows you to get the loaded base of a module.
When [module] is an empty string :GetProcAddress for example, the module that is currently selected in the
CPU will be used.
If you want to access the loaded module base, you can write: [module]:0, [module]:base,
[module]:imagebase or [module]:header.
RVA/File offset
If you want to access a module RVA you can either write [module]:0+[rva] or you can write
[module]:$[rva]. If you want to convert a file offset to a VA you can use [module]:#[offset]. When
[module] is an empty string :0 for example, the module that is currently selected in the CPU will be used.
To access a module entry point you can write [module]:entry, [module]:oep or [module]:ep. Notice that
when there are exports with the names entry, oep or ep the address of these will be returned instead.
Remarks
Instead of the : delimiter you can also use a . If you need to query module information such as
[module]:imagebase or [module]:entry you are advised to use a ? as delimiter instead: [module]?
entry. The ? delimiter does checking for named exports later, so it will still work when there is an export called
entry in the module.
Last words
Input for arguments can always be done in any of the above forms, except if stated otherwise.
1.2.3 Expressions
The debugger allows usage of basic expressions. Just type an expression in the command window and the result will
be displayed in the console. Apart from calculations, it allows quick variable changes using a C-like syntax.
Input
The basic input (numbers/variables) can be used as constants in expressions, see Input for more information.
Operators
You can use the following operators in your expression. They are processed in the following order:
1. parentheses/brackets: (1+2), [1+6] have priority over other operations.
2. unary minus/binary not/logical not: -1 (negative 1), ~1 (binary not of 1), !0 (logical not of 0).
3. multiplication/division: 2*3 (regular multiplication), 2`3 (gets high part of the multiplication), 6/3 (regular
division), 5%3 (modulo/remainder of the division).
4. addition/subtraction: 1+3 (addition), 5-2 (subtraction).
1.2. Introduction 5
x64dbg Documentation, Release 0.1
5. left/right shift/rotate: 1<<2 (shift left, shl for unsigned, sal for signed), 10>>1 (shift right, shl for unsigned, sal
for signed), 1<<<2 (rotate left), 1>>>2 (rotate right).
6. smaller (equal)/bigger (equal): 4<10, 3>6, 1<=2, 6>=7 (resolves to 1 if true, 0 if false).
7. equal/not equal: 1==1, 2!=6 (resolves to 1 if true, 0 if false).
8. binary and: 12&2 (regular binary and).
9. binary xor: 2^1 (regular binary xor).
10. binary or: 2|8 (regular binary or).
11. logical and: 0&&3 (resolves to 1 if true, 0 if false).
12. logical or: 0||3 (resolves to 1 if true, 0 if false).
13. logical implication: 0->1 (resolved to 1 if true, 0 if false).
Quick-Assigning
Changing memory, a variable, register or flag can be easily done using a C-like syntax:
• a?=b where ? can be any non-logical operator. a can be any register, flag, variable or memory location. b can
be anything that is recognized as an expression.
• a++/a-- where a can be any register, flag, variable or memory location.
Functions
You can use functions in expressions. See Expression Functions for the documentation of these functions.
You may use functions in an expression. The following functions are defined by the debugger:
GUI Interaction
Source
Modules
• mod.party(addr) : Get the party of the module addr. 0 is user module, 1 is system module.
• mod.base(addr) : Get the base address of the module addr.
• mod.size(addr) : Get the size of the module addr.
• mod.hash(addr) : Get the hash of the module addr.
• mod.entry(addr) : Get the entry address of the module addr.
• mod.system(addr) : True if the module at addr is a system module. No module is a user module.
• mod.user(addr) : True if the module at addr is a user module. No module is a user module.
• mod.main() : Returns the base of the main module (debuggee). If this is a DLL it will return 0 until loaded.
• mod.rva(addr) : Get the RVA of addr. If addr is not inside a module it will return 0.
• mod.offset(addr) : Get the file offset of addr. If addr is not inside a module it will return 0.
Process Information
General Purpose
Memory
Disassembly
1.2. Introduction 7
x64dbg Documentation, Release 0.1
Trace record
Byte/Word/Dword/Qword/Ptr
Functions
References
Arguments
This assumes the return address is on the stack (eg you are inside the function).
• arg.get(index) : Gets the argument at index (zero-based).
• arg.set(index, value) : Sets the argument at index (zero-based) to value.
Plugins
Plugins can register their own expression functions. See the plugin documentation for more details.
1.2.5 Variables
Reserved Variables
Operations overview
1.2. Introduction 9
x64dbg Documentation, Release 0.1
– Resume execution of the debuggee (skip the next steps). This will also skip executing plugin callbacks and
GUI updates.
• If log condition is set, evaluate the expression (defaults to 1);
• If command condition is set, evaluate the expression (defaults to break condition);
• If break condition evaluated to 1 (or any value other than ‘0’):
– Print the standard log message; (if the breakpoint is set to be silent, standard log message is supressed.)
– Execute plugin callbacks.
• If log text is set and log condition evaluated to 1 (or any value other than ‘0’):
– Format and print the log text (see String Formatting).
• If command text is set and command condition evaluated to 1:
– Set the system variable $breakpointcondition to the break condition;
– Set the system variable $breakpointlogcondition to the log condition;
– Execute the command in command text;
– The break condition will be set to the value of $breakpointcondition. So if you modify this system
variable in the script, you will be able to control whether the debuggee would break.
• If break condition evaluated to 1 (or any value other than ‘0’):
– Break the debuggee and wait for the user to resume.
Hit counter
A hit counter records how many times a breakpoint has been reached. It will be incremented unconditionally, even
if fast resume is enabled on this breakpoint. It may be viewed at breakpoint view and reset with ResetBreakpointHit-
Count.
Logging
The log can be formatted by x64dbg to log the current state of the program. See formatting on how to format the log
string.
Notes
You can set a conditional breakpoint with GUI by setting a software breakpoint(key F2) first, then right-click on the
instruction and select “Edit breakpoint” command from the context menu. Fill in the conditional expression and/or
other information as necessary, then confirm and close the dialog.
You should not use commands that can change the running state of the debuggee (such as run) inside the breakpoint
command, because these commands are unstable when used here. You can use break condition, command condition
or $breakpointcondition instead.
If you don’t know where the condition will become true, try conditional tracing instead!
Examples
See also
Operations overview
1.2. Introduction 11
x64dbg Documentation, Release 0.1
Logging
The log can be formatted by x64dbg to log the current state of the program. See formatting on how to format the log
string. If you are looking for logging the address and disassembly of all instructions traced you can use {p:cip}
{i:cip}. To redirect the log to a file use TraceSetLogFile.
Trace record
If you use one of the trace record-based tracing options, the initial evaluation of break condition includes the type
of trace record tracing that you specified. The normal break condition can be used to break before the trace record
condition is satisfied. If you want to include trace record in your condition for full control, you can use the expression
functions.
Notes
You can start a conditional tracing by “Trace over until condition”/”Trace into until condition” commands in the Debug
menu.
You should not use commands that can change the running state of the debuggee (such as run) inside the breakpoint
command, because these commands are unstable when used here. You can use break condition, command condition
or $tracecondition instead.
See also
• Tracing
• Expressions
• Expression Functions
• String Formatting
This section explains the simple string formatter built into x64dbg.
The basic syntax is {?:expression} where ? is the optional type of the expression. The default type is x. To
output { or } in the result, escape them as {{ or }}.
Types
• d signed decimal: -3
• u unsigned decimal: 57329171
• p zero prefixed pointer: 0000000410007683
• s string pointer: this is a string
• x hex: 3C28A
• a address info: 00401010 <module.EntryPoint>
• i instruction text: jmp 0x77ac3c87
Complex Type
Examples
Plugins
Plugins can use _plugin_registerformatfunction to register custom string formatting functions. The syn-
tax is {type;arg1;arg2;argN@expression} where type is the name of the registered function, argN is
any string (these are passed to the formatting function as arguments) and expression is any valid expression.
1.2.9 Inability
This section gives a list of features currently not supported in x64dbg. You are always welcome to contribute to x64dbg
to help fixing them.
• Fine-grained memory breakpoint. Unlike other debuggers, memory breakpoint is supported only on a whole
memory page, but not on a subrange of the memory page.
• Search for non-English strings. Searching for non-English strings via the built-in strings search may not be able
to find all the non-English strings.
• Log non-English strings into log with built-in “{s:[...]}” syntax.
1.2. Introduction 13
x64dbg Documentation, Release 0.1
1.3.1 Menus
File
Open
The Open action lets you open an executable to debug it. The file can be an EXE file or a DLL file.
The command for this action is InitDebug/initdbg/init.
Recent Files
The Recent Files submenu contains several entries that you previously debugged. It does not include any file that
cannot be debugged by the program.
The entries for this submenu can be found in the Recent Files section of the config INI file. You can edit that file
to remove entries.
Attach
Attach lets you attach to a running process. It will show a dialog listing the running processes, and allow you to choose
one to attach. Currently you can only attach to an executable that is of the same architecture as the program. (eg, you
cannot attach to a 64-bit process with x32dbg)
If you are debugging an executable, attaching to another process will terminate the previous debuggee.
The command for this action is AttachDebugger/attach.
Detach
This action will detach the debugger from the debuggee, allowing the debuggee to run without being controlled by the
debugger. You cannot execute this action when you are not debugging.
The command for this action is DetachDebugger/detach.
Import database
Export database
Patch file
Opens the patch dialog. You can view your patches and apply the patch to a file in the dialog.
Restart as Admin
It will restart x64dbg and the current debuggee with administrator privilege.
Exit
Terminate the debugger. If any process is being debugged by this program, they are going to be terminated as well.
Debug
This menu contains the following actions. You cannot use any of these menu items except “Restart” and “Command”
when you are not debugging.
Run
Place a single-shoot software breakpoint at the selected instruction, and then execute the command run/go/r/g to run
the debuggee.
Enter an address. The debugger will then place a software breakpoint at that address, and then execute the command
run/go/r/g to run the debuggee.
Pause
Try to pause the debuggee when it is running, or try to stop animation. The command for this action is pause.
Restart
Execute the command InitDebug/initdbg/init with the most recent used file.
Close
Display the current command line arguments of the debuggee in a dialog, and allow you to change it. The command
line arguments will be saved in the database for later use.
Step Into
Step into, until another source line is reached. The command for this menu entry is TraceIntoConditional
src.line(cip) && !src.disp(cip).
Enter an expression. The debugger will execute the command TraceIntoConditional/ticnd. Also see Expressions for
the legal expression format.
Animate into
Step Over
Step over, until another source line is reached. The command for this menu entry is TraceOverConditional
src.line(cip) && !src.disp(cip).
Enter an expression. The debugger will execute the command TraceOverConditional/tocnd. Also see Expressions for
the legal expression format.
Animate over
Step over the instructions, until the current instruction pointed to by EIP or RIP is ret instruction.
The command for this action is StepOut/rtr.
Step over the instructions, until the current instruction pointed to by EIP or RIP is ret instruction. This instruction
passes first-chance exceptions to the debuggee but swallows second-chance exceptions.
The command for this action is eStepOut/ertr.
Animate command
Pop up a dialog to enter a command, and execute that command at a steady frequency.
Trace Record
Command
Set focus to the command box at the bottom of the window, so that you can enter a command to execute.
Plugins
This menu includes all the available plugin menus. When you install a plugin, it may register a menu here. You can
refer to the documentation of the plugin for more information.
Scylla
Launch scylla.
Favourites
This menu is customizable. When you click “Manage Favourite Tools” menu entry, a dialog will appear. You can add
your custom tools to the menu, and also assign hotkeys to them. By default the path of the tool or script will appear in
the menu, but if you set description of it, the description will appear in the menu instead.
• If you add %PID% in the command line of a tool, it will be replaced with the (decimal) PID of the debuggee (or
0 if not debugging).
• If you add %DEBUGGEE% it will add the (unquoted) full path of the debuggee.
• If you add %MODULE% it will add the (unquoted) full path of the module currently in the disassembly.
• If you add %-????-% it will perform String Formatting on whatever you put in place of ????. Example:
%-{cip}-% will be replaced with the hex value of cip.
Currently, three types of entries may be inserted into this menu: Tool, Script and Command.
See also:
You can also add entries to this menu via the following commands:
AddFavouriteCommand
AddFavouriteTool
AddFavouriteToolShortcut/SetFavouriteToolShortcut
Options
Preferences
Show the Settings dialog. You can modify various settings in the dialog.
Appearance
Show the Appearance dialog. You can customize the color scheme or font in the dialog.
Shortcuts
Show the Shortcuts dialog. You can customize the shortcut keys for most of the operations.
Customize Menus
Show the “Customize menus” dialog. You can click on the nodes to expand the corresponding menu and check or
uncheck the menu items. Checked item will appear in “More commands” section of the menu, to shorten the menu
displayed. You can check all menu entries that you don’t use.
Topmost
Keep the main window above other windows(or stop staying topmost).
Reload style.css
Reload style.css file. If this file is present, new color scheme specified in this file will be applied.
Set a initialization script globally or for the debuggee. If a global initialization script is specified, it will be executed
when the program is at the system breakpoint or the attach breakpoint for every debuggee. If a per-debuggee initializa-
tion script is specified, it will be executed after the global initialization script finishes. You can clear the script setting
by clearing the file path and click “OK” in the browse dialog.
Import settings
Import settings from another configuration file. The corresponding entries in the configuration file will override the
current configuration, but the missing entries will stay unmodified.
Languages
Allow the user to choose a language for the program. “American English - United States” is the native language for
the program.
Help
Calculator
Show a calculator that can perform expression evaluation, hex to decimal conversion and more.
Donate
Blog
Report Bug
Manual
FAQ
About
Generate an exception to generate a crash dump. This may help if the software encounters a deadlock. You can submit
this crash dump to the developer team to help them fix the bug.
1.3.2 Views
This section describes the usage of the views in the user interface.
Content:
CPU
This view is the main view. It includes the registers view, the disassembly view, the dump view and the watch view,
the stack view, and the info box.
Graph
Graph view contains the control flow graph. When you use graph command or context menu in the disassembly view,
it will show the control flow graph here.
There is two modes to show the control flow graph: Normal mode and overview mode.
In overview mode, the program will draw all the control flow graph within the window area, but not output the
disassembly. When the first instruction is traced when trace record is enabled on this memory page, the whole basic
block will be shown in a different color (Default is green).
Log
This view includes all the log messages. When an address is output in the log message, it will be shown as a hyperlink.
You can click on it to follow it in disassembly or in dump, depending on its memory access rights.
The log view has the following context menu:
Clear
Select All
Copy
Save
Disables or enables log output. When the logging is disabled, no more messages will output to the log.
Auto scroll
Enables or disables auto-scrolling. When enabled, the log view will scroll to the bottom as new log messages are
coming in.
Redirect Log
Redirect log message to a file. If you enable this feature, all the messages will be saved to a UTF-16 encoded text file.
The message will be saved to the text file no matter whether logging is enabled.
This menu entry is valid only if the log redirection is active. It stops log redirection.
Notes
Notes view have two text fields to edit, one globally and one for the debuggee. Any text entered here will be saved,
and will be restored in future debugging sessions, so the user can make notes conveniently. Global notes will be stored
in “notes.txt” under the working directory. Debuggee notes will be stored in the debug database. You cannot edit
per-debuggee notes while not debugging.
Call Stack
Call stack view displays the call stack of the current thread. It has 6 columns.
Address is the base address of the stack frame.
To is the address of the code that is going to return to.
From is the probable address of the routine that is going to return.
Size is the size of the call stack frame, in bytes.
Comment is a brief description of the call stack frame.
Party describes whether the procedure that is going to return to, is a user module or a system module.
When Show suspected call stack frame option in the context menu in call stack view is active, it will search through
the entire stack for possible return addresses. When it is inactive, it will use standard stack walking algorithm to get
the call stack. It will typically get more results when Show suspected call stack frame option is active, but some of
which may not be actual call stack frames.
1.3.3 Settings
This section describes the settings dialog and each setting in the dialog. All the settings with “*” mark do not take
effect until next start.
Contents:
Events
This page contains a list of debug events. You can specify whether the program should pause when the debug events
happen.
System Breakpoint
This event happens when the process is being initialized but have not begun to execute user code yet.
TLS Callbacks
Set a single-shoot breakpoint on the TLS callbacks when a module is loaded to pause at the TLS callback.
Entry Breakpoint
Set a single-shoot breakpoint on the entry of the EXE module to pause at the entry point.
DLL Entry
Set a single-shoot breakpoint on the entry of the DLL module to pause at the entry point.
Attach Breakpoint
Thread Entry
Set a single-shoot breakpoint on the entry of the thread when a thread is about to run.
DLL Load
DLL Unload
Thread Start
Thread End
Debug Strings
Exceptions
This page contains a list of ignored exceptions. When a listed first-chance exception occurs, x64dbg will pass that
exception to the debuggee without pausing.
Add Range
You can specify a range of exception codes to ignore. The input is hexadecimal.
Delete Range
Add Last
GUI
Some FPU registers, especially SSE and AVX registers, are usually used to perform parallel computation. Using little
endian helps to correspond floating point numbers to their index in memory arrays. However, big endian representation
are more familiar to most users. This option can set whether FPU registers are shown as little endian or as big endian.
You also edit the FPU registers in the endianness set here.
Allow column order, width and layout of some views, to be saved in the config file. Note that not all views support
this option. Currently, this option has not been implemented in the CPU view.
Show PID in hexadecimal in the attach dialog. If not set, it will use decimal, just like in the Task Manager.
Allow x64dbg to load and save tab order. If not set, x64dbg will always use the default tab order.
When you add a watched variable in the watch view, a label with the name of the watched variable can appear in the
side bar of the disassembly view if the address is in the sight. They just look like labels for registers. This label might
help you understand the operation and progress of a self modifying routine. If disabled, no labels will be added in the
side bar for watched variables.
When a debug event occurs, x64dbg will focus itself so you can view the state of the debuggee. In some circumstances
this might not be desired. This option can be used to tell x64dbg not to focus itself when a debug event occurs.
Other settings
These settings do not appear in settings dialog, nor can they be changed in x64dbg GUI elsewhere, but can be modified
by editing the INI configuration file.
Engine
AnimateInterval
If set to a value of milliseconds, animation will proceed every specified milliseconds. Minimum value is 20ms.
MaxSkipExceptionCount
If set (default is 10000), during a run that ignores first-chance exceptions(example, erun), it will only ignore that
specified number of first-chance exceptions. After that the debuggee will pause when one more first-chance exception
happens. If set to 0 first-chance exceptions will always be ignored during such runs.
Gui
NonprintReplaceCharacter
If set to a Unicode value, dump view will use this character to represent nonprintable characters, instead of the default
”.”
NullReplaceCharacter
If set to a Unicode value, dump view will use this character to represent null characters, instead of the default ”.”
Misc
AnimateIgnoreError
Set to 1 to ignore errors while animating, so animation will continue when an error in the animated command occurs.
NoSeasons
1.3.4 Dialogs
Entropy
This dialog contains a graph that displays the entropy changing trend of selected data.
The height of each point represents the entropy of a continous 128-byte data block. The data blocks are sampled
evenly over the selected buffer. The base address differences between the neighbouring sampled data blocks are the
same. If the selected buffer is over 38400 bytes (300*128), there will be gaps between sampled data blocks. If the
selected buffer is less than 38400 bytes, the data blocks will overlap. If the selected buffer is less than 128 bytes (size
of a data block), then the data block size will be set to half the buffer size.
The x64dbg GUI is currently available in multiple languages. The launcher is available in both English and Chinese.
You can choose the UI language in the Options menu.
You can contribute your translations at http://translate.x64dbg.com
1.3.6 Tips
This section contains some useful tips about the user interface of this program.
Modules view
Relative Addressing
If you double-click the address column, then relative addressing will be used. The address column will show the
relative address relative to the double-clicked address.
Tables
You can reorder and hide any column by right-clicking, middle-clicking or double-clicking on the header. Alterna-
tively, you can drag one column header to another one to exchange their order.
Highlight mode
Don’t know how to hightlight a register? Press Ctrl+H (or click “Highlight mode” menu on the disassembly view).
When the red border is shown, click on the register(or command, immediate or any token), then that token will be
hightlighted with an underline.
In disassembly view, pressing middle mouse button will copy the selected address to the clipboard.
You can select the entire function by double-clicking on the checkbox next to the disassembly. This checkbox can also
be used to fold the block into a single line.
Code page
You can use the codepage dialog(in the context menu of the dump view) to select a code page. UTF-16LE is the
codepage that matches windows unicode encoding. You can use UTF-16LE code page to view strings in a unicode
application.
You can rename the windows of x64dbg by renaming “x64dbg.exe” or “x32dbg.exe” to another name. You should
also rename the “x64dbg.ini” or “x32dbg.ini” to keep it the same name as the debugger.
Unusual instructions are the instruction which is either privileged, invalid, have no use in ordinary applications, or
make attempts to access sensitive information.
To notify the user of their existence, unusual instructions are usually special-colored in the disassembly.
The following instructions are considered unusual:
• All privileged instructions (including I/O instructions and RDMSR/WRMSR)
• RDTSC,RDTSCP,RDRAND,RDSEED
• CPUID
• SYSENTER and SYSCALL
• UD2 and UD2B
1.4 Commands
This section contains various commands that are used for calculations etc.
Content:
inc
Increase a value.
arguments
arg1 Destination.
result
dec
Decrease a value.
arguments
arg1 Destination.
result
add
arguments
arg1 Destination.
arg2 Source.
result
sub
arguments
arg1 Destination.
arg2 Source.
result
mul
arguments
arg1 Destination.
arg2 Source.
result
div
arguments
arg1 Destination.
arg2 Source.
1.4. Commands 29
x64dbg Documentation, Release 0.1
result
and
arguments
arg1 Destination.
arg2 Source.
result
or
arguments
arg1 Destination.
arg2 Source.
result
xor
arguments
arg1 Destination.
arg2 Source.
result
neg
Negate a value.
arguments
arg1 Destination.
result
not
arguments
arg1 Destination.
result
bswap
arguments
arg1 Destination.
result
rol
arguments
arg1 Destination.
arg2 Source.
1.4. Commands 31
x64dbg Documentation, Release 0.1
result
ror
arguments
arg1 Destination.
arg2 Source.
result
shl/sal
arguments
arg1 Destination.
arg2 Source.
result
shr
arguments
arg1 Destination.
arg2 Source.
result
sar
arguments
arg1 Destination.
arg2 Source.
result
push
arguments
result
pop
arguments
[arg1] The destination. When not specified it will just increase CSP.
result
test
1.4. Commands 33
x64dbg Documentation, Release 0.1
arguments
result
This command sets the internal variables $_EZ_FLAG and $_BS_FLAG. $_EZ_FLAG is set to 1 when arg1 & arg2
== 0. $_BS_FLAG is always set to 0.
cmp
This command compares two expressions. Notice that when you want to check for values being bigger or smaller, the
comparison arg1>arg2 is made. If this evaluates to true, the $_BS_FLAG is set to 1, meaning the value is bigger. So
you test if arg1 is bigger/smaller than arg2.
arguments
result
This command sets the internal variables $_EZ_FLAG and $_BS_FLAG. They are checked when a branch is per-
formed.
mov/set
Set a variable.
arguments
arg1 Variable name (optionally prefixed with a $) to set. When the variable does not exist, it will be created.
arg2 Value to store in the variable. If you use #11 22 33# it will write the bytes 11 22 33 in the process
memory at arg1.
result
Contents:
InitDebug/initdbg/init
Initializes the debugger. This command will load the executable (do some basic checks), set breakpoints on TLS
callbacks (if present), set a breakpoint at the process entry point and break at the system breakpoint before giving back
control to the user.
arguments
arg1 Path to the executable file to debug. If no full path is given, the GetCurrentDirectory API will be called
to retrieve a full path. Use quotation marks to include spaces in your path.
[arg2] Commandline to create the process with.
[arg3] Current folder (passed to the CreateProcess API).
result
This command will give control back to the user after the system breakpoint is reached. It will set $pid and
$hp/$hProcess variables.
StopDebug/stop/dbgstop
arguments
result
AttachDebugger/attach
arguments
result
This command will give control back to the user after the system breakpoint is reached. It will set $pid and
$hp/$hProcess variables.
1.4. Commands 35
x64dbg Documentation, Release 0.1
DetachDebugger/detach
arguments
results
run/go/r/g
arguments
[arg1] When specified, place a single-shot breakpoint at this location before running.
results
erun/ego/er/eg
Free the lock and allow the program to run, passing all first-chance exceptions to the debuggee.
arguments
[arg1] When specified, place a single-shot breakpoint at this location before running.
results
serun/sego
Free the lock and allow the program to run, swallowing the current exception, skipping exception dispatching in
the debuggee.
arguments
[arg1] When specified, place a single-shot breakpoint at this location before running.
results
pause
arguments
result
DebugContinue/con
arguments
[arg1] When set (to anything), the exception will be handled by the program. Otherwise the exception will be
swallowed.
result
StepInto/sti
arguments
result
eStepInto/esti
Single Step (using Trap-Flag), passing all first-chance exceptions to the debuggee.
1.4. Commands 37
x64dbg Documentation, Release 0.1
arguments
result
seStepInto/sesti
Single Step (using Trap-Flag), swallowing the current exception, skipping exception dispatching in the debuggee.
arguments
result
StepOver/step/sto/st
Step over calls. When the instruction at EIP/RIP isn’t a call, a StepInto is performed.
arguments
results
eStepOver/estep/esto/est
Step over calls, passing all first-chance exceptions to the debuggee. When the instruction at EIP/RIP isn’t a call, a
eStepInto is performed.
arguments
result
seStepOver/sestep/sesto/sest
Step over calls, swallowing the current exception, skipping exception dispatching in the debuggee. When the
instruction at EIP/RIP isn’t a call, a eStepInto is performed.
arguments
result
StepOut/rtr
Return from function by calling StepOver until the current instruction is a RET.
arguments
result
eStepOut/ertr
Return from function by calling eStepOver until the current instruction is a RET. This command passes all first-chance
exceptions to the debuggee.
arguments
result
skip
Skip the next instruction. This command swallows the current exception (if present). Useful if you want to continue
after an INT3 command.
1.4. Commands 39
x64dbg Documentation, Release 0.1
arguments
result
InstrUndo
Undo last instruction stepped. This command is only valid if some instructions are stepped in. Stepping over, running
or tracing will clear the history context.
arguments
results
SetBPX/bp/bpx
Set an INT3 (SHORT/LONG) or UD2 breakpoint and optionally assign a name to it.
arguments
result
DeleteBPX/bpc/bc
arguments
[arg1] Name or address of the breakpoint to delete. If this argument is not specified, all breakpoints will be deleted.
result
EnableBPX/bpe/be
arguments
[arg1] Name or address of the breakpoint to enable. If this argument is not specified, all breakpoints will be enabled.
result
DisableBPX/bpd/bd
arguments
[arg1] Name or address of the breakpoint to disable. If this argument is not specified, all breakpoints will be
disabled.
result
SetHardwareBreakpoint/bph/bphws
1.4. Commands 41
x64dbg Documentation, Release 0.1
arguments
result
DeleteHardwareBreakpoint/bphc/bphwc
arguments
[arg1] Name or address of the hardware breakpoint to delete. If this argument is not specified, all hardware break-
points will be deleted.
result
EnableHardwareBreakpoint/bphe/bphwe
arguments
[arg1] Address of the hardware breakpoint to enable. If this argument is not specified, as many as possible hardware
breakpoints will be enabled.
result
DisableHardwareBreakpoint/bphd/bphwd
arguments
[arg1] Address of the hardware breakpoint to disable. If this argument is not specified, all hardware breakpoints
will be disabled.
result
SetMemoryBPX/membp/bpm
Set a memory breakpoint (GUARD_PAGE) on the whole memory region the provided address is in.
arguments
result
DeleteMemoryBPX/membpc/bpmc
arguments
[arg1] Name or (base) address of the memory breakpoint to delete. If this argument is not specified, all memory
breakpoints will be deleted.
result
EnableMemoryBreakpoint/membpe/bpme
1.4. Commands 43
x64dbg Documentation, Release 0.1
arguments
[arg1] Address of the memory breakpoint to enable. If this argument is not specified, all memory breakpoints will
be enabled.
result
DisableMemoryBreakpoint/membpd/bpmd
arguments
[arg1] Address of the memory breakpoint to disable. If this argument is not specified, all memory breakpoints will
be disabled.
result
LibrarianSetBreakpoint/bpdll
arguments
result
LibrarianRemoveBreakpoint/bcdll
arguments
result
LibrarianEnableBreakpoint/bpedll
arguments
[arg1] DLL Name of the DLL breakpoint to enable. If this argument is not specified, all DLL breakpoints will be
enabled.
result
LibrarianDisableBreakpoint/bpddll
arguments
[arg1] DLL Name of the DLL breakpoint to disable. If this argument is not specified, all DLL breakpoints will be
disabled.
result
SetExceptionBPX
Set an exception breakpoint. If an exception breakpoint is active, all the exceptions with the same chance and code
will be captured as a breakpoint event and will not be handled by the default exception handling policy.
arguments
result
1.4. Commands 45
x64dbg Documentation, Release 0.1
DeleteExceptionBPX
arguments
[arg1] Name, exception name or code of the exception breakpoint to delete. If this argument is not specified, all
exception breakpoints will be deleted.
result
EnableExceptionBPX
arguments
[arg1] Name, exception name or code of the exception breakpoint to enable. If this argument is not specified, all
exception breakpoints will be enabled.
result
DisableExceptionBPX
arguments
[arg1] Name, exception name or code of the exception breakpoint to enable. If this argument is not specified, all
exception breakpoints will be disabled.
result
bpgoto
Configure the breakpoint so that when the program reaches it, the program will be directed to a new location. It is
equivallent to the following commands:
SetBreakpointCondition arg1, 0
SetBreakpointCommand arg1, "CIP=arg2"
SetBreakpointCommandCondition arg1, 1
SetBreakpointFastResume arg1, 0
arguments
results
bplist
Get a list of breakpoints. This list includes their state (enabled/disabled), their type, their address and (optionally) their
names.
arguments
result
This command does not set any result variables. A list entry has the following format:
STATE:TYPE:ADDRESS[:NAME]
STATEcan be 0 or 1. 0 means disabled, 1 means enabled. Only singleshoot and ‘normal’ breakpoints can be disabled.
TYPEcan be one of the following values: BP, SS, HW and GP. BP stands for a normal breakpoint (set using the
SetBPX command), SS stands for SINGLESHOT, HW stands for HARDWARE and GP stand for Guard Page, the
way of setting memory breakpoints.
ADDRESSis the breakpoint address, given in 32 and 64 bits for the x32 and x64 debugger respectively.
NAMEis the name assigned to the breakpoint.
SetBPXOptions/bptype
arguments
arg1 Default type. This can be “short” (CC), “long” (CD03) or “ud2” (0F0B). Type default type affects both NOR-
MAL and SINGLESHOT breakpoints.
1.4. Commands 47
x64dbg Documentation, Release 0.1
result
This section describes commands that can be used to set various advanced properties of breakpoints.
Contents:
SetBreakpointName/bpname
Sets the name of a software breakpoint. It will be displayed in the breakpoints view and in the log when the breakpoint
is hit.
arguments
result
SetBreakpointCondition/bpcond/bpcnd
Sets the software breakpoint condition. When this condition is set, it is evaluated every time the breakpoint hits and
the debugger would stop only if condition is not 0.
arguments
result
SetBreakpointLog/bplog/bpl
Sets log text when a software breakpoint is hit. When log condition is not specified, it will always be logged regardless
of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetBreakpointLogCondition/bplogcondition
Sets the logging condition of a software breakpoint. When log condition is not specified, log text always be logged
regardless of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetBreakpointCommand
Sets the command to execute when a software breakpoint is hit. If the command condition is not specified, it will be
executed when the debugger breaks, otherwise it will be executed when the condition is satisfied.
arguments
result
SetBreakpointCommandCondition
Sets the command condition of a software breakpoint. When command condition is not specified, the command will
be executed when the debugger would break, otherwise it will be executed when the condition is satisfied.
1.4. Commands 49
x64dbg Documentation, Release 0.1
arguments
result
SetBreakpointFastResume
Sets the fast resume flag of a software breakpoint. If this flag is set and the break condition doesn’t evaluate to break,
no GUI, plugin, logging or any other action will be performed, except for incrementing the hit counter.
arguments
result
SetBreakpointSingleshoot
Sets the singleshoot flag of a software breakpoint. If this flag is set the breakpoint will be removed on the first hit.
arguments
result
SetBreakpointSilent
Sets the silent flag of a software breakpoint. If this flag is set, the default log message will not appear. User-defined
log is not affected.
arguments
result
GetBreakpointHitCount
arguments
result
ResetBreakpointHitCount
arguments
result
SetHardwareBreakpointName/bphwname
Sets the name of a hardware breakpoint. It will be displayed in the breakpoints view and in the log when the breakpoint
is hit.
arguments
1.4. Commands 51
x64dbg Documentation, Release 0.1
result
SetHardwareBreakpointCondition/bphwcond
Sets the hardware breakpoint condition. When this condition is set, it is evaluated every time the breakpoint hits and
the debugger would stop only if condition is not 0.
arguments
result
SetHardwareBreakpointLog/bphwlog
Sets log text when a hardware breakpoint is hit. When log condition is not specified, it will always be logged regardless
of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetHardwareBreakpointLogCondition/bphwlogcondition
Sets the logging condition of a hardware breakpoint. When log condition is not specified, log text always be logged
regardless of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetHardwareBreakpointCommand
Sets the command to execute when a hardware breakpoint is hit. If the command condition is not specified, it will be
executed when the debugger breaks, otherwise it will be executed when the condition is satisfied.
arguments
result
SetHardwareBreakpointCommandCondition
Sets the command condition of a hardware breakpoint. When command condition is not specified, the command will
be executed when the debugger would break, otherwise it will be executed when the condition is satisfied.
arguments
result
SetHardwareBreakpointFastResume
Sets the fast resume flag of a hardware breakpoint. If this flag is set and the break condition doesn’t evaluate to break,
no GUI, plugin, logging or any other action will be performed, except for incrementing the hit counter.
arguments
1.4. Commands 53
x64dbg Documentation, Release 0.1
result
SetHardwareBreakpointSingleshoot
Sets the singleshoot flag of a hardware breakpoint. If this flag is set the breakpoint will be removed on the first hit.
arguments
result
SetHardwareBreakpointSilent
Sets the silent flag of a hardware breakpoint. If this flag is set, the default log message will not appear. User-defined
log is not affected.
arguments
result
GetHardwareBreakpointHitCount
arguments
result
ResetHardwareBreakpointHitCount
arguments
result
SetMemoryBreakpointName/bpmname
Sets the name of a memory breakpoint. It will be displayed in the breakpoints view and in the log when the breakpoint
is hit.
arguments
result
SetMemoryBreakpointCondition/bpmcond
Sets the memory breakpoint condition. When this condition is set, it is evaluated every time the breakpoint hits and
the debugger would stop only if condition is not 0.
arguments
result
SetMemoryBreakpointLog/bpmlog
Sets log text when a memory breakpoint is hit. When log condition is not specified, it will always be logged regardless
of the break condition, otherwise it will be logged when the logging condition is satisfied.
1.4. Commands 55
x64dbg Documentation, Release 0.1
arguments
result
SetMemoryBreakpointLogCondition/bpmlogcondition
Sets the logging condition of a memory breakpoint. When log condition is not specified, log text always be logged
regardless of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetMemoryBreakpointCommand
Sets the command to execute when a memory breakpoint is hit. If the command condition is not specified, it will be
executed when the debugger breaks, otherwise it will be executed when the condition is satisfied.
arguments
result
SetMemoryBreakpointCommandCondition
Sets the command condition of a memory breakpoint. When command condition is not specified, the command will
be executed when the debugger would break, otherwise it will be executed when the condition is satisfied.
arguments
result
SetMemoryBreakpointFastResume
Sets the fast resume flag of a memory breakpoint. If this flag is set and the break condition doesn’t evaluate to break,
no GUI, plugin, logging or any other action will be performed, except for incrementing the hit counter.
arguments
result
SetMemoryBreakpointSingleshoot
Sets the singleshoot flag of a memory breakpoint. If this flag is set the breakpoint will be removed on the first hit.
arguments
result
SetMemoryBreakpointSilent
Sets the silent flag of a memory breakpoint. If this flag is set, the default log message will not appear. User-defined
log is not affected.
1.4. Commands 57
x64dbg Documentation, Release 0.1
arguments
result
GetMemoryBreakpointHitCount
arguments
result
ResetMemoryBreakpointHitCount
arguments
result
SetLibrarianBreakpointName
Sets the name of a librarian breakpoint. It will be displayed in the breakpoints view and in the log when the breakpoint
is hit.
arguments
result
SetLibrarianBreakpointCondition
Sets the librarian breakpoint condition. When this condition is set, it is evaluated every time the breakpoint occurs and
the debugger would stop only if condition is not 0.
arguments
result
SetLibrarianBreakpointLog
Sets log text when a librarian breakpoint is hit. When log condition is not specified, it will always be logged regardless
of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetLibrarianBreakpointLogCondition
Sets the logging condition of a librarian breakpoint. When log condition is not specified, log text always be logged
regardless of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
1.4. Commands 59
x64dbg Documentation, Release 0.1
result
SetLibrarianBreakpointCommand
Sets the command to execute when a librarian breakpoint is hit. If the command condition is not specified, it will be
executed when the debugger breaks, otherwise it will be executed when the condition is satisfied.
arguments
result
SetLibrarianBreakpointCommandCondition
Sets the command condition of a librarian breakpoint. When command condition is not specified, the command will
be executed when the debugger would break, otherwise it will be executed when the condition is satisfied.
arguments
result
SetLibrarianBreakpointFastResume
Sets the fast resume flag of a librarian breakpoint. If this flag is set and the break condition doesn’t evaluate to break,
no GUI, plugin, logging or any other action will be performed, except for incrementing the hit counter.
arguments
result
SetLibrarianBreakpointSingleshoot
Sets the singleshoot flag of a librarian breakpoint. If this flag is set the librarian breakpoint will be removed on the
first hit.
arguments
result
SetLibrarianBreakpointSilent
Sets the silent flag of a librarian breakpoint. If this flag is set, the default log message will not appear. User-defined
log is not affected.
arguments
result
GetLibrarianBreakpointHitCount
arguments
result
1.4. Commands 61
x64dbg Documentation, Release 0.1
ResetLibrarianBreakpointHitCount
arguments
result
SetExceptionBreakpointName
Sets the name of an exception breakpoint. It will be displayed in the breakpoints view and in the log when the
breakpoint is hit.
arguments
result
SetExceptionBreakpointCondition
Sets the exception breakpoint condition. When this condition is set, it is evaluated every time the exception occurs
(chance must match) and the debugger would stop only if condition is not 0.
arguments
result
SetExceptionBreakpointLog
Sets log text when an exception breakpoint is hit. When log condition is not specified, it will always be logged
regardless of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetExceptionBreakpointLogCondition
Sets the logging condition of an exception breakpoint. When log condition is not specified, log text always be logged
regardless of the break condition, otherwise it will be logged when the logging condition is satisfied.
arguments
result
SetExceptionBreakpointCommand
Sets the command to execute when an exception breakpoint is hit. If the command condition is not specified, it will
be executed when the debugger breaks, otherwise it will be executed when the condition is satisfied.
arguments
result
SetExceptionBreakpointCommandCondition
Sets the command condition of an exception breakpoint. When command condition is not specified, the command will
be executed when the debugger would break, otherwise it will be executed when the condition is satisfied.
1.4. Commands 63
x64dbg Documentation, Release 0.1
arguments
result
SetExceptionBreakpointFastResume
Sets the fast resume flag of an exception breakpoint. If this flag is set and the break condition doesn’t evaluate to break,
no GUI, plugin, logging or any other action will be performed, except for incrementing the hit counter.
arguments
result
SetExceptionBreakpointSingleshoot
Sets the singleshoot flag of an exception breakpoint. If this flag is set the exception breakpoint will be removed on the
first hit.
arguments
result
SetExceptionBreakpointSilent
Sets the silent flag of an exception breakpoint. If this flag is set, the default log message will not appear. User-defined
log is not affected.
arguments
result
GetExceptionBreakpointHitCount
arguments
result
ResetExceptionBreakpointHitCount
arguments
result
1.4.5 Tracing
Contents:
TraceIntoConditional/ticnd
Trace the program by StepInto, until the specified condition is satisfied, or maximum number of steps reached.
1.4. Commands 65
x64dbg Documentation, Release 0.1
arguments
arg1 The condition used. When this is evaluated to be a value other than 0, tracing will stop.
[arg2] The maximum step count to trace before the debugger gives up.
results
TraceOverConditional/tocnd
Trace the program by StepOver, until the specified condition is satisfied, or maximum number of steps reached.
arguments
arg1 The condition used. When this is evaluated to be a value other than 0, tracing will stop.
[arg2] The maximum step count to trace before the debugger gives up.
results
TraceIntoBeyondTraceRecord/tibt
Perform StepInto until the program reaches somewhere outside the trace record.
arguments
[arg1] The break condition of tracing. When this condition is satisfied, tracing will stop regardless of EIP/RIP
location. If this argument is not specified then tracing will be unconditional.
[arg2] The maximun steps before the debugger gives up. If this argument is not specified, the default value will be
50000.
result
TraceOverBeyondTraceRecord/tobt
Perform StepOver until the program reaches somewhere outside the trace record.
arguments
[arg1] The break condition of tracing. When this condition is satisfied, tracing will stop regardless of EIP/RIP
location. If this argument is not specified then tracing will be unconditional.
[arg2] The maximun steps before the debugger gives up. If this argument is not specified, the default value will be
50000.
result
TraceIntoIntoTraceRecord/tiit
Perform StepInto until the program reaches somewhere inside the trace record.
arguments
[arg1] The break condition of tracing. When this condition is satisfied, tracing will stop regardless of EIP/RIP
location. If this argument is not specified then tracing will be unconditional.
[arg2] The maximun steps before the debugger gives up. If this argument is not specified, the default value will be
50000.
result
TraceOverIntoTraceRecord/toit
Perform StepOver until the program reaches somewhere inside the trace record.
arguments
[arg1] The break condition of tracing. When this condition is satisfied, tracing will stop regardless of EIP/RIP
location. If this argument is not specified then tracing will be unconditional.
[arg2] The maximun steps before the debugger gives up. If this argument is not specified, the default value will be
50000.
result
RunToParty
Run the program until the program reaches somewhere belonging to the party number. This works by putting tempo-
rary memory breakpoints on all memory pages with matching party number.
1.4. Commands 67
x64dbg Documentation, Release 0.1
arguments
results
RunToUserCode/rtu
arguments
results
TraceSetLog/SetTraceLog
Change the trace log text and condition during tracing. See Conditional Tracing for more information.
arguments
results
TraceSetCommand/SetTraceCommand
Change the trace command text and condition during tracing. See Conditional Tracing for more information.
arguments
results
TraceSetLogFile/SetTraceLogFile
arguments
arg1 File name to redirect the trace log to. This file will be cleared and overwritten when the trace starts. This does
nothing if you don’t set the log text!
results
StartRunTrace/opentrace
Start recording a run trace with a specified file. The file will also be opened in the trace view. Note you need to use
TraceIntoConditional or other command to actually trace the program.
arguments
arg1 The file name. Default file extension “trace32” or “trace64” is not added automatically.
result
StopRunTrace/tc
arguments
result
Contents:
1.4. Commands 69
x64dbg Documentation, Release 0.1
createthread[,threadcreate,newthread,threadnew]
arguments
results
switchthread/threadswitch
Switch the internal current thread to another thread (resulting in different callstack + different registers displayed).
arguments
[arg1] ThreadId of the thread to switch to (see the Threads tab). When not specified, the main thread is used.
result
suspendthread/threadsuspend
arguments
[arg1] ThreadId of the thread to suspend (see the Threads tab). When not specified, the main thread is used.
result
resumethread/threadresume
arguments
[arg1] ThreadId of the thread to resume (see the Threads tab). When not specified, the main thread is used.
result
killthread/threadkill
arguments
[arg1] ThreadId of the thread to kill (see the Threads tab). When not specified, the main thread is used.
[arg2] Thread exit code. When not specified, 0 will be used.
result
suspendallthreads/threadsuspendall
arguments
result
resumeallthreads/threadresumeall
arguments
result
setthreadpriority/setprioritythread/threadsetpriority
1.4. Commands 71
x64dbg Documentation, Release 0.1
arguments
arg1 ThreadId of the thread to change the priority of (see the Threads tab).
arg2 Priority value, this can be the integer of a valid thread priority (see MSDN) or one of the following values:
“Normal”, “AboveNormal”, “TimeCritical”, “Idle”, “BelowNormal”, “Highest”, “Lowest”.
result
setthreadname/threadsetname
Set thread name (only for the debugger, nothing changes in the debuggee).
arguments
arg1 ThreadId of the thread to change the priority of (see the Threads tab).
arg2 New thread name. Leave empty to remove the current name.
result
alloc
Allocate memory in the debuggee (using VirtualAllocEx). The memory is allocated with
PAGE_EXECUTE_READWRITE protection.
arguments
[arg1] Size of the memory to allocate. When not specified, a default size of 0x1000 is used.
[arg2] Address to allocate the memory at. Unspecified or zero means a random address.
result
This command sets $result to the allocated memory address. It also sets the $lastalloc variable to the allocated memory
address when VirtualAllocEx succeeded.
Fill/memset
arguments
result
free
arguments
[arg1] Address of the memory to free. When not specified, the value at $lastalloc is used.
result
This command sets $result to 1 if VirtualFreeEx succeeded, otherwise it’s set to 0. $lastalloc is set to zero when the
address specified is equal to $lastalloc.
getpagerights/getpagerights/getrightspage
arguments
arg1 Memory Address of page (it fix the address if this arg is not the top address of a page).
result
setpagerights/setpagerights/setrightspage
1.4. Commands 73
x64dbg Documentation, Release 0.1
arguments
arg1 Memory Address of page (it fix the address if this arg is not the top address of a page).
arg2 New Rights, this can be one of the following values: “Execute”, “ExecuteRead”, “ExecuteReadWrite”, “Ex-
ecuteWriteCopy”, “NoAccess”, “ReadOnly”, “ReadWrite”, “WriteCopy”. You can add a G at first for add PAGE
GUARD. example: “GReadOnly”. Read the MSDN for more info.
result
savedata
arguments
arg1 The filename. If you use :memdump: as name it will save a file as memdump_pid_addr_size.bin in the
x64dbg directory. You can use String Formatting here.
arg2 The address of the memory region.
arg3 The size of the memory region.
results
This section contains the commands that can be used to control certain properties managed by the operating system.
Content:
DisablePrivilege
arguments
results
EnablePrivilege
arguments
results
GetPrivilegeState
arguments
results
This command sets $result to 1 if the privilege is disabled on the debuggee, 2 or 3 if the privilege is enabled on
the debuggee, 0 if the privilege is not found in the privilege collection of the token of the debuggee or something is
wrong with the API.
handleclose/closehandle
arguments
arg1 The handle value of the handle, in the context of the debuggee.
results
This section describes the commands that control the watch view.
Contents:
1.4. Commands 75
x64dbg Documentation, Release 0.1
AddWatch
arguments
results
DelWatch
arguments
result
SetWatchdog
arguments
results
SetWatchExpression
arguments
results
SetWatchName
arguments
results
CheckWatchdog
Evaluate all the watch items, trigger or reset watchdog when appropiate.
arguments
results
1.4. Commands 77
x64dbg Documentation, Release 0.1
1.4.10 Variables
var/varnew
arguments
result
vardel
arguments
arg1 Name of the variable to delete ($ will be prepended when not present).
result
varlist
arguments
result
1.4.11 Searching
find
Find a pattern.
arguments
arg1 The address to start searching from. Notice that the searching will stop when the end of the memory page this
address resides in has been reached. This means you cannot search the complete process memory without enumerating
the memory pages first.
arg2 The byte pattern to search for. This byte pattern can contain wildcards (?) for example: EB0?90??8D.
[arg3] The size of the data to search in. Default is the size of the memory region.
result
The $result variable is set to the virtual address of the address that matches the byte pattern. $result will be 0 when the
pattern could not be matched.
findall
arguments
arg1 The address to start searching from. Notice that the searching will stop when the end of the memory page this
address resides in has been reached. This means you cannot search the complete process memory without enumerating
the memory pages first.
arg2 The byte pattern to search for. This byte pattern can contain wildcards (?) for example: EB0?90??8D.
[arg3] The size of the data to search in. Default is the size of the memory region.
result
findallmem/findmemall
1.4. Commands 79
x64dbg Documentation, Release 0.1
arguments
result
findasm/asmfind
arguments
arg1 Instruction to look for (make sure to use quoted “mov eax, ebx” to ensure you actually search for that instruc-
tion). You can use String Formatting here.
[arg2] Address of/inside a memory page to look in. When not specified CIP will be used.
[arg3] The size of the data to search in. Default is the size of the memory region.
result
findguid/guidfind
Find references to GUID. The referenced GUID must be registered in the system, otherwise it will not be found.
arguments
[arg1] The base of the memory range. If not specified, RIP or EIP will be used.
[arg2] The size of the memory range.
[arg3] The region to search. 0 is current region (specified with arg1 and arg2). 1 is current module (the module
specified with arg1). 2 is all modules.
results
reffind/findref/ref
arguments
result
reffindrange/findrefrange/refrange
arguments
arg1 Start of the range (will be included in the results when found).
[arg2] End of range (will be included in the results when found). When not specified the first argument will be
used.
[arg3] Address of/inside a memory page to look in. When not specified CIP will be used.
[arg4] The size of the data to search in.
result
refstr/strref
arguments
[arg1] Address of/inside a memory page to find referenced text strings in. When not specified CIP will be used.
[arg2] The size of the data to search in.
result
modcallfind
1.4. Commands 81
x64dbg Documentation, Release 0.1
arguments
[arg1] Address of/inside a memory page to find inter-modular calls in. When not specified EIP/RIP will be used.
[arg2] The size of the data to search in.
result
yara
arguments
result
yaramod
arguments
result
setmaxfindresult/findsetmaxresult
arguments
results
This section contains commands that manipulate the user database (comments, labels and bookmarks).
dbsave/savedb
arguments
[arg1] Path to save the database to. If not specified your current program database is used.
result
dbload/loaddb
arguments
[arg1] Path to load the database from. If specified your current data will not be automatically cleared (import). If
not specified all your data will be cleared and the current program database is reloaded from disk.
result
1.4. Commands 83
x64dbg Documentation, Release 0.1
dbclear/cleardb
arguments
result
commentset/cmt/cmtset
Set a comment.
arguments
result
commentdel/cmtc/cmtdel
Delete a comment.
arguments
result
commentlist
arguments
result
commentclear
arguments
result
labelset/lbl/lblset
Set a label.
arguments
result
labeldel/lblc/lbldel
Delete a label.
arguments
result
labellist
1.4. Commands 85
x64dbg Documentation, Release 0.1
arguments
result
labelclear
arguments
result
bookmarkset/bookmark
Set a bookmark.
arguments
result
bookmarkdel/bookmarkc
Delete a bookmark.
arguments
result
bookmarklist
arguments
result
bookmarkclear
arguments
result
functionadd/func
Add a function.
arguments
result
functiondel/funcc
Delete a function.
arguments
1.4. Commands 87
x64dbg Documentation, Release 0.1
result
functionlist
arguments
result
functionclear
arguments
result
argumentadd
Add a argument.
arguments
result
argumentdel
Delete a argument.
arguments
result
argumentlist
arguments
result
argumentclear
arguments
result
1.4.13 Analysis
analyse/analyze/anal
Do function analysis.
arguments
1.4. Commands 89
x64dbg Documentation, Release 0.1
result
exanalyse/exanalyze/exanal
Do exception directory analysis. This kind of analysis doesn’t work on 32-bit executables.
arguments
results
cfanalyze/cfanalyse/cfanal
arguments
results
analyse_nukem/analyze_nukem/anal_nukem
arguments
result
analxrefs/analx
arguments
results
analrecur/analr
arguments
results
analadv
arguments
results
virtualmod
arguments
1.4. Commands 91
x64dbg Documentation, Release 0.1
result
symdownload/downloadsym
arguments
[arg1] Module name (with or without extension) to attept to download symbols for. When not specified, an attempt
will be done to download symbols for all loaded modules.
[arg2] Symbol Store URL. When not specified, the default store will be used.
result
imageinfo
Output the image information for a module. The information describes the Characteristics and DLL Characteristics
fields in the PE header structure.
arguments
[arg1] The base of the module. If not specified the module at CIP will be used.
results
GetRelocSize/grs
Get the correct size of a relocation table. This is useful while unpacking and restoring the original relocation table.
arguments
results
exhandlers
arguments
results
exinfo
EXCEPTION_DEBUG_INFO:
dwFirstChance: 1
ExceptionCode: 80000001 (EXCEPTION_GUARD_PAGE)
ExceptionFlags: 00000000
ExceptionAddress: 00007FFE16FB1B91 ntdll.00007FFE16FB1B91
NumberParameters: 2
ExceptionInformation[00]: 0000000000000008
ExceptionInformation[01]: 00007FFE16FB1B91 ntdll.00007FFE16FB1B91
arguments
results
traceexecute
arguments
result
1.4. Commands 93
x64dbg Documentation, Release 0.1
1.4.14 Types
This section contains commands that are used to manipulate data types.
Contents:
DataUnknown
arguments
result
DataByte/db
arguments
result
DataWord/dw
arguments
result
DataDword/dw
arguments
result
DataFword
arguments
result
DataQword/dq
arguments
result
DataTbyte
1.4. Commands 95
x64dbg Documentation, Release 0.1
arguments
result
DataOword
arguments
result
DataMmword
arguments
result
DataXmmword
arguments
result
DataYmmword
arguments
result
DataFloat/DataReal4/df
arguments
result
DataDouble/DataReal8
arguments
result
1.4. Commands 97
x64dbg Documentation, Release 0.1
DataLongdouble/DataReal10
arguments
result
DataAscii/da
arguments
result
DataUnicode/du
arguments
result
DataCode/dc
arguments
result
DataJunk
arguments
result
DataMiddle
arguments
result
AddType
arguments
1.4. Commands 99
x64dbg Documentation, Release 0.1
result
AddStruct
arguments
result
AddUnion
arguments
result
AddMember
arguments
result
AppendMember
arguments
result
AddFunction
arguments
result
AddArg
arguments
result
AppendArg
arguments
result
SizeofType
arguments
result
VisitType
arguments
result
ClearTypes
arguments
[arg1] The owner to clear. Leave this empty unless you know what you’re doing.
result
RemoveType
Remove a type.
arguments
result
EnumTypes
arguments
result
LoadTypes
arguments
arg1 The path to the JSON file. The owner of the loaded types will be the filename of the JSON file. Any types
previously defined with this owner will be removed.
result
ParseTypes
arguments
arg1 The path to the header file. The owner of the loaded types will be the filename of the header file. Any types
previously defined with this owner will be removed.
result
1.4.15 Plugins
StartScylla/scylla/imprec
Start the Scylla plugin auto-selecting the currently debugged DLL/EXE and EIP/RIP as entry point.
arguments
result
plugload/pluginload/loadplugin
Load a plugin.
arguments
result
plugunload/pluginunload/unloadplugin
Unload a plugin.
arguments
result
This section contains various commands that are only used or available in a scripting context. Commands that also
exist in a non-scripting context have priority.
Contents:
call
A call works exactly the same as an uncondentional branch, but it places it’s address on the script stack.
arguments
result
invalid
Invalid command to throw an error message. This command will halt the script execution.
arguments
result
error
arguments
result
Jxx/IFxx
There are various branches that can react on the flags set by the cmp (and maybe other) command(s):
• unconditional branch - jmp/goto* branch if not equal - jne/ifne(q)/jnz/ifnz
• branch if equal - je/ife(q)/jz/ifz
• branch if smaller - jb/ifb/jl/ifl
• branch if bigger - ja/ifa/jg/ifg
• branch if bigger/equal - jbe/ifbe(q)/jle/ifle(q)
• branch if smaller/equal - jae/ifae(q)/jge/ifge(q)
arguments
result
log
arguments
[arg1] Format string (see String Formatting). When not specified, a newline will be logged.
result
msg
arguments
arg1 Message box text. You can use String Formatting here.
result
msgyn
arguments
arg1 Message box text. You can use String Formatting here.
result
The $result variable will be set to 1 when the user answered yes. Otherwise it’s set to 0.
pause
Halt the script execution. The user can resume the script after this command.
arguments
result
printstack[,logstack]
arguments
result
ret
When called without an entry on the stack, this command will end the script and set the script IP to the first line. When
‘call’ was executed before, ret will return from that call.
arguments
result
scriptload
arguments
result
scriptdll/dllscript
arguments
arg1 The filename and path of the script DLL. If a full path is not provided x64dbg will look in the scripts
directory for the DLL.
results
This command does not set any result variables. However, the script DLL may set any variable.
remarks
After AsyncStart() or Start() finishes, the script DLL will be unloaded from the process.
1.4.17 GUI
This section describes the commands that control various portions of the GUI.
Contents:
disasm/dis/d
arguments
[arg1] The address to disassemble at. When not specified, there will be disassembled at CIP.
result
dump
arguments
result
sdump
arguments
[arg1] The address to dump at (must be inside the thread stack range). If not specified, csp will be used.
result
memmapdump
arguments
result
graph
arguments
[arg1] The address of the function. The default value is EIP or RIP. [arg2] Options. If it contains “force” the
graph will be reanalyzed, if it contains “silent” no messages will be printed on the console.
results
guiupdateenable
arguments
result
guiupdatedisable
arguments
result
setfreezestack
arguments
result
refinit
arguments
[arg1] The title of the new reference view. You can use String Formatting here.
result
refadd
Add an entry to the reference view. You need to call ‘refinit’ before using refadd.
arguments
result
reget
arguments
result
The $result variable will be set to the address of the requested reference (zero on failure).
EnableLog/LogEnable
arguments
results
DisableLog/LogDisable
Disable the log output. New log messages will not be appended to the log view, but they will still be saved in the log
file if log redirection is enabled in the log view.
arguments
results
ClearLog/cls/lc/lclr
arguments
result
AddFavouriteTool
arguments
results
AddFavouriteCommand
arguments
results
AddFavouriteToolShortcut/SetFavouriteToolShortcut
arguments
results
FoldDisassembly
arguments
results
1.4.18 Miscellaneous
This section contains all commands that do not directly fit in another section.
Contents:
chd
arguments
result
zzz/doSleep
arguments
[arg1] Time (in milliseconds) to sleep. If not specified this is set to 100ms (0.1 second). Keep in mind that input is
in hex per default so Sleep 100 will actually sleep 256 milliseconds (use Sleep .100 instead).
result
HideDebugger/dbh/hide
arguments
result
loadlib
arguments
result
The $result variable will be set to the address of the loaded library.
asm
Assemble an instruction.
arguments
result
gpa
arguments
result
The $resultvariable is set to the export address. When the export is not found, $resultwill be set to 0.
setjit/jitset
Set the Just-In-Time Debugger in Windows. In WIN64 systems there are two JIT entries: one for a x32 debugger and
other for a x64 debugger. In a WIN64 system when a x32 process crash: Windows attach the x32 debugger stored in
the x32-JIT entry.
Important notes:
• Its possible change the x32-JIT entry from the x64 debugger (using the x32 arg).
• Its possible change the x64-JIT entry from the x32 debugger ONLY if the x32 debugger its running in a WIN64
System (using the x64 arg).
arguments
result
getjit/jitget
Get the Just-In-Time Debugger in Windows. In WIN64 systems there are two JIT entries: one for a x32 debugger and
other for a x64 debugger. In a WIN64 system when a x32 process crash: Windows attach the x32 debugger stored in
the x32-JIT entry.
Important notes:
• Its possible get the x32-JIT entry from the x64 debugger (using the x32 arg).
• Its possible get the x64-JIT entry from the x32 debugger ONLY if the x32 debugger its running in a WIN64
System (using the x64 arg).
arguments
result
getjitauto/jitgetauto
Get the Auto Just-In-Time Debugger FLAG in Windows. if this flag value its TRUE Windows runs the debugger
without user confirmation when a process crash. In WIN64 systems there are two JIT AUTO FLAG entries: one for
a x32 debugger and other for a x64 debugger. In a WIN64 system when a x32 process crash with AUTO FLAG =
FALSE: Windows confirm before attach the x32 debugger stored in the x32-JIT entry.
Important notes:
• Its possible get the x32-JIT AUTO FLAG entry from the x64 debugger (using the x32 arg).
• Its possible get the x64-JIT AUTO FLAG entry from the x32 debugger ONLY if the x32 debugger its running
in a WIN64 System (using the x64 arg).
arguments
result
setjitauto/jitsetauto
Set the Auto Just-In-Time Debugger FLAG in Windows. if this flag value its TRUE Windows runs the debugger
without user confirmation when a process crash. In WIN64 systems there are two JIT AUTO FLAG entries: one for
a x32 debugger and other for a x64 debugger. In a WIN64 system when a x32 process crash with AUTO FLAG =
FALSE: Windows confirm before attach the x32 debugger stored in the x32-JIT entry.
Important notes:
• Its possible set the x32-JIT AUTO FLAG entry from the x64 debugger (using the x32 arg).
• Its possible set the x64-JIT AUTO FLAG entry from the x32 debugger ONLY if the x32 debugger its running in
a WIN64 System (using the x64 arg).
arguments
arg1
1. 1/ON: Set current JIT entry FLAG as TRUE.
2. 0/FALSE: Set current JIT entry FLAG as FALSE.
3. x32: Set the x32-JIT AUTO FLAG TRUE or FALSE. It needs an arg2: can be ON/1 or OFF/0.
4. x64: Set the x64-JIT AUTO FLAG TRUE or FALSE. It needs an arg2: can be ON/1 or OFF/0.
result
getcommandline/getcmdline
arguments
result
setcommandline/setcmdline
arguments
result
mnemonichelp
Output the detailed help information about an assembly mnemonic to the log.
arguments
result
mnemonicbrief
Output the brief help information about an assembly mnemonic to the log.
arguments
result
config
Get or set the configuration of x64dbg. It can also be used to load and store configuration specific to the script in the
configuration file of x64dbg.
arguments
results
This command sets $result to the current configuration number if arg3 is not set.
1.5 Developers
This section contains documentation intended to help developers to write code related to this program.
Contents:
1.5.1 Plugins
The basics
This page covers the basic principles of plugin development for x64dbg. See the plugin page for example plugins and
templates.
Exports
A plugin has at least one export. This export must be called pluginit. See the PLUG_INITSTRUCT and the plugin
headers for more information. The other valid exports are:
plugstop called when the plugin is about to be unloaded. Remove all registered commands and callbacks here.
Also clean up plugin data.
plugsetup Called when the plugin initialization was successful, here you can register menus and other GUI-related
things.
CB* Instead of calling _plugin_registercallback, you can create a CDECL export which has the name of the
callback. For example when you create an export called CBMENUENTRY, this will be registered as your callback for
the event CB_MENUENTRY. Notice that you should not use an underscore in the export name.
CBALLEVENTS An export with the name CBALLEVENTS will get every event registered to it. This is done prior to
registering optional other export names.
Definitions
Initialization exports.
Callback exports. Make sure to only export callbacks that you actually use!
Notes
The following coding guide are helpful to make your plugin more complaint.
Character encoding
x64dbg uses UTF-8 encoding everywhere it accepts a string. If you are passing a string to x64dbg, ensure that it is
converted to UTF-8 encoding. This will help to reduce encoding errors.
Functions
This section contains information about the _plugin_ prefixed functions exported by x64dbg.
Contents:
_plugin_debugpause
This function returns debugger control to the user. You would use this function when you write an unpacker that needs
support from x64dbg (for example in development). Calling this function will set the debug state to ‘paused’ and it
will not return until the user runs the debuggee using the run command .
void _plugin_debugpause();
Parameters
Return Values
_plugin_debugskipexceptions
This function returns sets if the debugger should skip first-chance exceptions. This is useful when creating unpackers
or other plugins that run the debuggee.
void _plugin_debugskipexceptions(
bool skip //skip flag
);
Parameters
Return Values
_plugin_logprintf
void _plugin_logprintf(
const char* format, //format string
... //additional arguments
);
Parameters
Return Values
_plugin_logputs
void _plugin_logputs(
const char* text //text to print
);
Parameters
text Piece of text to put to the log window. This text can contain line breaks.
Return Values
_plugin_menuadd
int _plugin_menuadd(
int hMenu, //menu handle to add the new child menu to
const char* title //child menu title
);
Parameters
hMenu Menu handle from a previously-added child menu or from the main plugin menu.
title Menu title.
Return Values
_plugin_menuaddentry
bool _plugin_menuaddentry(
int hMenu, //menu handle to add the new child menu to
int hEntry, //plugin-wide identifier for the menu entry
const char* title //menu entry title
);
Parameters
hMenu Menu handle from a previously-added child menu or from the main plugin menu.
hEntry A plugin-wide identifier for the menu entry. This is the value you will get in the
PLUG_CB_MENUENTRY callback structure.
title Menu entry title.
Return Values
Returns true when the entry was added without problems, false otherwise.
_plugin_menuaddseparator
bool _plugin_menuaddseparator(
int hMenu //menu handle to add the separator to
);
Parameters
hMenu Menu handle from a previously-added child menu or from the main plugin menu.
Return Values
_plugin_menuclear
This function removes all entries and child menus from a menu. It will not remove the menu itself.
bool _plugin_menuclear (
int hMenu //menu handle of the menu to clear
);
Parameters
hMenu Menu handle from a previously-added child menu or from the main plugin menu.
Return Values
_plugin_menuentryseticon
void _plugin_menuentryseticon (
int pluginHandle, //plugin handle
int hEntry, //handle of the menu entry
const ICONDATA* icon //icon data
);
Parameters
Return Values
_plugin_menuentrysetchecked
This function sets the checked state of a menu entry. Notice that this function sets a menu item as checkable and thus
it will toggle per default on click. If you want different behavior, make sure to call this function on every click with
your desired state.
void _plugin_menuentrysetchecked (
int pluginHandle, //plugin handle
int hEntry, //handle of the menu entry
bool checked //new checked state
);
Parameters
Return Values
_plugin_menuseticon
void _plugin_menuseticon (
int hMenu, //handle of the menu
const ICONDATA* icon //icon data
);
Parameters
hMenu Menu handle from a previously-added child menu or from the main plugin menu.
icon Icon data. See bridgemain.h for a definition.
Return Values
_plugin_registercallback
This function registers an event callback for a plugin. Every plugin can have it’s own callbacks for every event. It is
not possible to have multiple callbacks on the same event.
void _plugin_registercallback(
int pluginHandle, //plugin handle
CBTYPE cbType, //event type
CBPLUGIN cbPlugin //callback function
);
Parameters
void CBPLUGIN(
CBTYPE bType //event type (useful when you use the same function for multiple events
void* callbackInfo //pointer to a structure of information (see above)
);
Return Values
_plugin_registercommand
This function registers a command for usage inside scripts or the command bar.
bool _plugin_registercommand(
int pluginHandle, //plugin handle
const char* command, //command name
CBPLUGINCOMMAND cbCommand, //function that is called when the command is executed
bool debugonly //restrict the command to debug-only
);
Parameters
bool CBPLUGINCOMMAND(
int argc //argument count (number of arguments + 1)
char* argv[] //array of arguments (argv[0] is the full command, arguments start at
˓→argv[1])
);
debugonly When set, the command will never be executed when there is no target is being debugged.
Return Values
This function returns true when the command was successfully registered, make sure to check this, other plugins may
have already registered the same command.
_plugin_unregistercallback
This plugin unregisters a previously set callback. It is only possible to remove callbacks that were previously set using
_plugin_registercallback.
bool _plugin_unregistercallback(
int pluginHandle, //plugin handle
CBTYPE cbType //callback type to remove
);
Parameters
• CB_BREAKPOINT,
• CB_PAUSEDEBUG,
• CB_RESUMEDEBUG,
• CB_STEPPED,
• CB_ATTACH,
• CB_DETACH,
• CB_DEBUGEVENT,
• CB_MENUENTRY,
• CB_WINEVENT,
• CB_WINEVENTGLOBAL
Return Values
This function returns true when the callback was removed without problems.
_plugin_unregistercommand
This function removes a command set by a plugin. It is only possible to remove commands that you previously
registered using _plugin_registercommand.
bool _plugin_unregistercommand(
int pluginHandle, //plugin handle
const char* command //command name
);
Parameters
Return Values
This function returns true when the callback was removed without problems.
_plugin_waituntilpaused
bool _plugin_waituntilpaused();
Parameters
Return Values
This command returns true if the debuggee is still active, returns false if the debuggee has stopped running.
_plugin_hash
This function allows you to hash some data. It is used by x64dbg in various places.
bool _plugin_hash(
const void* data, //data to hash
duint size //size (in bytes) of the data to hash
);
Parameters
Return Values
Structures
PLUG_INITSTRUCT
This structure is used by the only needed export in the plugin interface:
struct PLUG_INITSTRUCT
{
//data provided by the debugger to the plugin.
[IN] int pluginHandle; //handle of the plugin
PLUG_SETUPSTRUCT
This structure is used by the function that allows the creation of plugin menu entries:
struct PLUG_SETUPSTRUCT
{
//data provided by the debugger to the plugin.
[IN] HWND hwndDlg; //GUI window handle
[IN] int hMenu; //plugin menu handle
[IN] int hMenuDisasm; //plugin disasm menu handle
[IN] int hMenuDump; //plugin dump menu handle
[IN] int hMenuStack; //plugin stack menu handle
};
Callback Structures
void CBPLUGIN(
CBTYPE bType //event type (useful when you use the same function for multiple events
void* callbackInfo //pointer to a structure of information (see below)
);
Contents:
PLUG_CB_INITDEBUG
struct PLUG_CB_INITDEBUG
{
const char* szFileName;
};
PLUG_CB_STOPDEBUG
Called when the debugging has been stopped, useful to reset some variables:
struct PLUG_CB_STOPDEBUG
{
void* reserved;
};
PLUG_CB_CREATEPROCESS
Called after process creation (in the debug loop), after the initialization of the symbol handler, the database file and
setting breakpoints on TLS callbacks / the entry breakpoint:
struct PLUG_CB_CREATEPROCESS
{
CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo;
IMAGEHLP_MODULE64* modInfo;
const char* DebugFileName;
PROCESS_INFORMATION* fdProcessInfo;
};
PLUG_CB_EXITPROCESS
Called after the process exits (in the debug loop), before the symbol handler is cleaned up:
struct PLUG_CB_EXITPROCESS
{
EXIT_PROCESS_DEBUG_INFO* ExitProcess;
};
PLUG_CB_CREATETHREAD
Called after thread creation (in the debug loop), after adding the thread to the internal thread list, before breaking the
debugger on thread creation and after setting breakpoints on the thread entry:
struct PLUG_CB_CREATETHREAD
{
CREATE_THREAD_DEBUG_INFO* CreateThread;
DWORD dwThreadId;
};
PLUG_CB_EXITTHREAD
Called after thread termination (in the debug loop), before the thread is removed from the internal thread list, before
breaking on thread termination:
struct PLUG_CB_EXITTHREAD
{
EXIT_THREAD_DEBUG_INFO* ExitThread;
DWORD dwThreadId;
};
PLUG_CB_SYSTEMBREAKPOINT
Called at the system breakpoint (in the debug loop), after setting the initial dump location, before breaking the debugger
on the system breakpoint:
struct PLUG_CB_SYSTEMBREAKPOINT
{
void* reserved;
};
PLUG_CB_LOADDLL
Called on DLL loading (in the debug loop), after the DLL has been added to the internal library list, after setting the
DLL entry breakpoint:
struct PLUG_CB_LOADDLL
{
LOAD_DLL_DEBUG_INFO* LoadDll;
IMAGEHLP_MODULE64* modInfo;
const char* modname;
};
PLUG_CB_UNLOADDLL
Called on DLL unloading (in the debug loop), before removing the DLL from the internal library list, before breaking
on DLL unloading:
struct PLUG_CB_UNLOADDLL
{
UNLOAD_DLL_DEBUG_INFO* UnloadDll;
};
PLUG_CB_OUTPUTDEBUGSTRING
Called on a DebugString event (in the debug loop), before dumping the string to the log, before breaking on a debug
string:
struct PLUG_CB_OUTPUTDEBUGSTRING
{
OUTPUT_DEBUG_STRING_INFO* DebugString;
};
PLUG_CB_EXCEPTION
Called on an unhandled (by the debugger) exception (in the debug loop), after setting the continue status, after locking
the debugger to pause:
struct PLUG_CB_EXCEPTION
{
EXCEPTION_DEBUG_INFO* Exception;
};
PLUG_CB_BREAKPOINT
Called on a normal/memory/hardware breakpoint (in the debug loop), after locking the debugger to pause:
struct PLUG_CB_BREAKPOINT
{
BRIDGEBP* breakpoint;
};
PLUG_CB_PAUSEDEBUG
Called after the debugger has been locked to pause (in the debug loop), before any other callback that’s before pausing
the debugger:
struct PLUG_CB_PAUSEDEBUG
{
void* reserved;
};
PLUG_CB_RESUMEDEBUG
Called after the debugger has been unlocked to resume (outside of the debug loop:
struct PLUG_CB_RESUMEDEBUG
{
void* reserved;
};
PLUG_CB_STEPPED
Called after the debugger stepped (in the debug loop), after locking the debugger to pause:
struct PLUG_CB_STEPPED
{
void* reserved;
};
PLUG_CB_ATTACH
struct PLUG_CB_ATTACH
{
DWORD dwProcessId;
};
PLUG_CB_DETACH
struct PLUG_CB_DETACH
{
PROCESS_INFORMATION* fdProcessInfo;
};
PLUG_CB_DEBUGEVENT
Called on any debug event, even the ones that are handled internally.
Avoid doing stuff that takes time here, this will slow the debugger down a lot!:
struct PLUG_CB_DEBUGEVENT
{
DEBUG_EVENT* DebugEvent;
};
PLUG_CB_MENUENTRY
Called when a menu entry created by the plugin has been clicked, the GUI will resume when this callback returns:
struct PLUG_CB_MENUENTRY
{
int hEntry;
};
PLUG_CB_WINEVENT
PLUG_CB_WINEVENTGLOBAL
PLUG_CB_LOADSAVEDB
Load or save data to database. Data is retrieved or stored or retrieved in a JSON format:
Two constants are defined in the _plugins.h file for the loadSaveType:
PLUG_DB_LOADSAVE_DATA PLUG_DB_LOADSAVE_ALL
struct PLUG_CB_LOADSAVEDB
{
json_t* root;
int loadSaveType;
};
PLUG_CB_FILTERSYMBOL
Called before a symbol is emitted to the automatic labels. Set retval to false if you want to filter the symbol.
struct PLUG_CB_FILTERSYMBOL
{
const char* symbol;
bool retval;
};
PLUG_CB_TRACEEXECUTE
Called during conditional tracing. Set the stop member to true to stop tracing.
struct PLUG_CB_TRACEEXECUTE
{
duint cip;
bool stop;
};
1.5.2 Functions
This section describes functions in the bridge. Many are currently undocumented, help if you can!
Contents:
Bridge Functions
BridgeAlloc
Function description.
void* BridgeAlloc(
size_t size // memory size to allocate
);
Parameters
Return Value
Returns a pointer to the memory block allocated. If an error occurs allocating memory, then x64dbg is closed down.
Example
Related functions
• BridgeFree
BridgeFree
Function description.
void BridgeFree(
void* ptr // pointer to memory block to free
);
Parameters
Return Value
Example
Related functions
• BridgeAlloc
BridgeGetDbgVersion
int BridgeGetDbgVersion();
Parameters
Return Value
Example
Related functions
BridgeInit
Initializes the Bridge, defines the .ini file used for x64dbg and loads the main GUI and Debug functions. Internal
function, don’t use!
Parameters
Return Value
Example
Example code.
Related functions
BridgeSettingFlush
bool BridgeSettingFlush();
Parameters
Return Value
Example
Example code.
Related functions
• BridgeSettingGet
• BridgeSettingGetUint
• BridgeSettingSet
• BridgeSettingSetUint
• BridgeSettingRead
BridgeSettingGet
bool BridgeSettingGet(
const char* section, // ini section name to read
const char* key, // ini key in the section to read
char* value // string to hold the value read
);
Parameters
Return Value
Example
Example code.
Related functions
BridgeSettingGetUint
bool BridgeSettingGetUint(
const char* section, // ini section name to write to
const char* key, // ini key in the section to write
duint* value // an integer variable to hold the value read
);
Parameters
Return Value
Example
Example code.
Related functions
BridgeSettingRead
bool BridgeSettingRead(
int* errorLine // line that error occurred on
);
Parameters
Return Value
Example
Example code.
Related functions
BridgeSettingSet
bool BridgeSettingSet(
const char* section, // ini section name to write to
const char* key, // ini key in the section to write
char* value // string value to write
);
Parameters
Return Value
Example
Example code.
Related functions
BridgeSettingSetUint
bool BridgeSettingSetUint(
const char* section, // ini section name to write to
const char* key, // ini key in the section to write
duint value // an integer variable to write
);
Parameters
Return Value
Example
Example code.
Related functions
BridgeStart
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
Debug Functions
DbgArgumentAdd
Parameters
Return Value
Example
if(DbgArgumentAdd(0x00401000, 0x00401013))
GuiAddLogMessage("Argument successfully setted\r\n");
else
GuiAddLogMessage("Argument couldn't be set\r\n");
Related functions
• DbgArgumentDel
• DbgArgumentGet
• DbgArgumentOverlaps
DbgArgumentDel
Parameters
Return Value
Example
if(DbgArgumentDel(0x00401013))
GuiAddLogMessage("Argument successfully deleted\r\n");
else
GuiAddLogMessage("Argument couldn't be deleted\r\n");
Related functions
• DbgArgumentAdd
• DbgArgumentGet
• DbgArgumentOverlaps
DbgArgumentGet
This function gets the boundaries of the given argument location as start and end addresses.
Parameters
Return Value
The function return TRUE if the start and end addresses are found or FALSE otherwise. If TRUE, the variables start
and end will hold the fetched values.
Example
duint start;
duint end;
std::string message;
Related functions
• DbgArgumentAdd
• DbgArgumentDel
• DbgArgumentOverlaps
DbgArgumentOverlaps
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgAssembleAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearAutoBookmarkRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearAutoCommentRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearAutoFunctionRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearAutoLabelRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearBookmarkRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearCommentRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgClearLabelRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgCmdExec
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgCmdExecDirect
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgDelEncodeTypeRange
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgDelEncodeTypeSegment
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgDisasmAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgDisasmFastAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgExit
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgFunctionAdd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgFunctionDel
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgFunctionGet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgFunctionOverlaps
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgFunctions
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetArgTypeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetBookmarkAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetBpList
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetBpxTypeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetBranchDestination
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetCommentAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetEncodeSizeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetEncodeTypeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetEncodeTypeBuffer
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetFunctionTypeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetLabelAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetLoopTypeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetModuleAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetRegDump
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetStringAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetThreadList
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetTimeWastedCounter
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetWatchList
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetXrefCountAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgGetXrefTypeAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgInit
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgIsBpDisabled
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgIsDebugging
bool DbgIsDebugging();
Parameters
Return Value
Example
if(!DbgIsDebugging())
{
GuiAddLogMessage("You need to be debugging to use this option!\n");
return false;
}
.data
szMsg db "You need to be debugging to use this option!",13,10,0 ; CRLF
.code
Invoke DbgIsDebugging
.IF eax == FALSE
Invoke GuiAddLogMessage, Addr szMsg
.ENDIF
Related functions
• DbgIsRunning
DbgIsJumpGoingToExecute
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgIsRunLocked
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgIsRunning
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgIsValidExpression
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgLoopAdd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgLoopDel
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgLoopGet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgLoopOverlaps
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMemFindBaseAddr
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMemGetPageSize
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMemIsValidReadPtr
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMemMap
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMemRead
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMemWrite
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgMenuEntryClicked
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgModBaseFromName
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgReleaseEncodeTypeBuffer
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptAbort
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptBpGet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptBpToggle
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptCmdExec
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptGetBranchInfo
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptGetLineType
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptLoad
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptRun
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptSetIp
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptStep
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgScriptUnload
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetAutoBookmarkAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetAutoCommentAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetAutoFunctionAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetAutoLabelAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetBookmarkAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetCommentAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetEncodeType
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSetLabelAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSettingsUpdated
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgStackCommentGet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSymbolEnum
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgSymbolEnumFromCache
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgValFromString
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgValToString
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgWinEvent
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgWinEventGlobal
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgXrefAdd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgXrefDelAll
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
DbgXrefGet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GUI Functions
This section contains information about the Graphical User Interface GUI functions of x64dbg.
Contents:
GuiAddLogMessage
Function description.
void GuiAddLogMessage(
const char* msg // string containg message to add to log
);
Parameters
msg String containing the message to add to the log. Ensure that a carriage line and return feed are included with the
string for it to properly display it. Encoding is UTF-8.
Return Value
Example
.data
szMsg db "This text will be displayed in the log view",13,10,0 ; CRLF
.code
Invoke GuiAddLogMessage, Addr szMsg
Related functions
• GuiLogClear
GuiAddQWidgetTab
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiAddRecentFile
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiAddStatusBarMessage
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiAutoCompleteAddCmd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiAutoCompleteClearAll
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiAutoCompleteDelCmd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiCloseQWidgetTab
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiDisasmAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiDisplayWarning
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiDumpAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiDumpAtN
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiExecuteOnGuiThread
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiFocusView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetDebuggeeNotes
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetDisassembly
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetGlobalNotes
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetLineWindow
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetWindowHandle
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGraphAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiIsUpdateDisabled
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiLoadGraph
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiLoadSourceFile
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiLogClear
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiMenuAdd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiMenuAddEntry
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiMenuAddSeparator
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiMenuClear
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiMenuSetEntryIcon
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiMenuSetIcon
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceAddColumn
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceDeleteAllColumns
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceGetCellContent
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceGetRowCount
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceInitialize
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceReloadData
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceSetCellContent
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceSetCurrentTaskProgress
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceSetProgress
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceSetRowCount
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceSetSearchStartCol
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiReferenceSetSingleSelection
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiRegisterScriptLanguage
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiRepaintTableView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptAdd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptClear
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptEnableHighlighting
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptError
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptMessage
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptMsgyn
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptSetInfoLine
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptSetIp
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiScriptSetTitle
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSelectionGet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSelectionSet
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSetDebuggeeNotes
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSetDebugState
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSetGlobalNotes
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSetLastException
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiShowCpu
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiShowQWidgetTab
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiStackDumpAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSymbolLogAdd
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSymbolLogClear
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSymbolRefreshCurrent
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSymbolSetProgress
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSymbolUpdateModuleList
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUnregisterScriptLanguage
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateAllViews
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateArgumentWidget
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateBreakpointsView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateCallStack
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateDisable
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateDisassemblyView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateDumpView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateEnable
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateGraphView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateMemoryView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdatePatches
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateRegisterView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateSEHChain
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateSideBar
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateThreadView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateTimeWastedCounter
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateWatchView
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateWindowTitle
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
• genindex
• modindex
• search
235