x64dbg Documentation
x64dbg Documentation
x64dbg Documentation
Release 0.1
x64dbg
1 Suggested reads 1
1.1 What is x64dbg? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 GUI manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.4 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.5 Developers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
1.6 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
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)
• Import reconstructor integrated (Scylla)
• Analysis
• Conditional breakpoints and tracing with great flexibility
• Collect data while tracing
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.
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.
1.2. Introduction 3
x64dbg Documentation, Release 0.1
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).
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).
1.2. Introduction 5
x64dbg Documentation, Release 0.1
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 number 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. False: module is a user module.
• mod.user(addr) : True if the module at addr is a user module. False: module is NOT 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.
• mod.isexport(addr) : True if addr is an exported function from a module.
Process Information
General Purpose
Memory
Disassembly
1.2. Introduction 7
x64dbg Documentation, Release 0.1
Trace record
Byte/Word/Dword/Qword/Ptr
• ReadByte(addr),Byte(addr),byte(addr) : Read a byte from addr and return the value. Example:
byte(eax) reads a byte from memory location [eax].
• ReadWord(addr),Word(addr),word(addr) : Read a word (2 bytes) from addr and return the value.
• ReadDword(addr),Dword(addr),dword(addr) : Read a dword (4 bytes) from addr and return the
value.
• ReadQword(addr),Qword(addr),qword(addr) : Read a qword (8 bytes) from addr and return the
value (only available on x64).
• ReadPtr(addr),ReadPointer(addr),ptr(addr),Pointer(addr),pointer(addr) : Read a
pointer (4/8 bytes) from addr and return the value.
Functions
• func.start() : Return start of the function addr is part of, zero otherwise.
• func.end() : Return end of the function addr is part of, zero otherwise.
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.
Exceptions
This is a set of functions to get information about the last exception. They can be used for exceptions breakpoints to
construct more advanced conditions.
• ex.firstchance() : Whether the last exception was a first chance exception.
• ex.addr() : Last exception address.
• ex.code() : Last exception code.
• ex.flags() : Last exception flags.
• ex.infocount() : Last exception information count (number of parameters).
• ex.info(index) : Last exception information, zero if index is out of bounds.
Plugins
Plugins can register their own expression functions. See the plugin documentation for more details.
1.2.5 Variables
Reserved Variables
1.2. Introduction 9
x64dbg Documentation, Release 0.1
Operations overview
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.
Examples
A conditional breakpoint can only pause the debuggee when it is executed. It cannot pause the debuggee when the
breakpoint is not hit even if the condition is satisfied. If you don’t know where the condition will become true, try
conditional tracing instead!
See also
1.2. Introduction 11
x64dbg Documentation, Release 0.1
Operations overview
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, or via the graphical dialog.
An alternative way to record all instruction traced in the trace view is by enabling run trace. Right click in the trace
view and click Start Run Trace, then start tracing.
Trace record
If you use one of the trace record-based tracing options such as TraceIntoBeyondTraceRecord, 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.
When you use Trace Over, the debuggee would not be paused inside the calls that has been stepped over, even if the
condition is true. Also other operations, such as logging and trace record, are not executed. This makes tracing faster,
but if these operations are desired you should use Trace Into.
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
1.2. Introduction 13
x64dbg Documentation, Release 0.1
Complex Type
Examples
Logging
When using the log command you should put quotes around the format string (log "{mem;8@rax}") to avoid
ambiguity with the ; (which separates two commands). See https://github.com/x64dbg/x64dbg/issues/1931 for more
details.
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.10 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. Update: x64dbg now provides support for non-English strings through
a generic algorithm.
• Other pending issues at issues.x64dbg.com.
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
(Default hotkey G), it will show the control flow graph here.
There are 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).
The graph view is now part of CPU view.
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.
Trace
Trace view is a view in which you can see history of stepped instructions. This lets you examine the details of each
instruction stepped when you are stepping manually or tracing automatically, or view a trace history previously saved.
This functionality must be enabled explicitly from trace view or CPU view. It features saving all the instructions,
registers and memory accesses during a trace.
You can double-click on columns to perform quick operation:
• Index: follow in disassembly.
• Address: toggle RVA display mode.
• Opcode: toggle breakpoint.
• Disassembly: follow in disassembly.
• Comments: set comments.
To enable trace logging into trace view, you first enable it via “Start Run Trace” menu. It will pop up a dialog
allowing you to save the recorded instructions into a file. The default location of this file is in the database directory.
Once started, every instruction you stepped or traced will appear immediately in Trace view. Instructions executed
while the debuggee is running or stepping over will not appear here.
Close
Close current trace file and clear the trace view, and also delete current trace file from disk.
Open
Open a trace file to view the content of it. It can be used when not debugging, but it is recommended that you debug
the corresponding debuggee when viewing a trace, as it will be able to render the instructions with labels from the
database of the debuggee. The debugger will show a warning if you want to load a trace file which is not recorded
from currently debugged executable.
Recent files
Search
Constant
Search for the user-specified constant in the entire recorded trace, and record the occurances in references view.
Memory Reference
When turned on, the disassembly view in the CPU view will automatically follow the EIP or RIP of selected instruction
in trace view.
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.
When enabled in graph view the offset addresses are shown in front of the disassembly.
Allows to zoom graph view by holding and turning the mousewheel up and down. Note: Press G on the CPU tab press
G to open graph view
When enabled the dialog “The debuggee is still running and will be terminated if you exit. Do you really want to
exit?” is shown when you exit x64dbg but it’s still attached to some process for debugging.
Here you can turn of the auto completion that will suggest words as soon you start typing in the “Enter expression”
dialog. Go to/expression from the right click context menu will bring up the “Enter expression” dialog. Note: That
stting will be handy in case there are delays when typing.
When enabled the column “ASCII” is added to the dump panels. Furthermore the view mode(right click) must be set
to “Address” to see this effect. Note: The column “ASCII” must not be hidden. Right click on column header to bring
up the ‘Edit column’ dialog to check. ^^ Note from the doc contributor: However please don’t ask why there is an
option here when there is also that ‘Edit column’ dialog that does nearly the same thing.
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
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.
Note: when you select only 1 instruction, or if the function is not analyzed, the checkbox might not appear. In this
case, please select the instruction you want to fold first.
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, if the debuggee
doesn’t support running in a system with a window or process named as such. 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
1.4. Commands 31
x64dbg Documentation, Release 0.1
• Throughout this documentation, [arg1] (argument with a square bracket) represents an optional argument.
arg1 (argument without a square bracket) represents an mandatory argument. “[” and “]” represent memory
reference operation in expression evaluation for the argument. If you don’t want to refer to the content in the
memory pointer, don’t add “[” and “]”.
• For commands with two or more arguments, a comma (,) is used to separate these arguments. Do not use a
space to separate the arguments.
• x64dbg only supports integer in expressions. Strings, Floating point numbers and SSE/AVX data is not sup-
ported. Therefore you cannot use [eax]=="abcd" operator to compare strings. Instead, you can compare
the first DWORD/QWORD of the string, or use an appropriate plugin which provides such feature.
• The “==” operator is used to test if both operands are equal. The “=” operator is used to transfer the value of the
expression to the destination.
Contents:
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 33
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 35
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 37
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 39
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 41
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 43
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 45
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 47
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 49
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 51
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 53
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 55
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 57
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 59
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 61
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 63
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 65
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 67
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 69
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. This is similar to ticnd tr.
hitcount(cip)==0&&arg1, arg2 except that it achieves higher performance by avoiding the expression func-
tion invocation.
Usage example: If you want to find out the forking point of the program when different inputs are provided, first
enable or re-enable trace record to clean trace record data. Then you trace while input A is provided. Finally you
provide input B and execute TraceIntoBeyondTraceRecord command. The program will be paused where the
instruction is never executed before.
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
1.4. Commands 71
x64dbg Documentation, Release 0.1
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.
arguments
arg1 The party number. This value cannot be an expression. Note: 0 is user module, 1 is system module.
results
see also
RunToUserCode
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
1.4. Commands 73
x64dbg Documentation, Release 0.1
result
Contents:
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
1.4. Commands 75
x64dbg Documentation, Release 0.1
result
setthreadpriority/setprioritythread/threadsetpriority
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
memcpy
arguments
result
This command sets $result to the total amount of bytes written at the destination. The condition $result ==
arg3 is true if all memory was copied.
free
1.4. Commands 77
x64dbg Documentation, Release 0.1
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
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
1.4. Commands 79
x64dbg Documentation, Release 0.1
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:
AddWatch
arguments
results
DelWatch
arguments
result
SetWatchdog
arguments
results
SetWatchExpression
arguments
results
1.4. Commands 81
x64dbg Documentation, Release 0.1
SetWatchName
arguments
results
CheckWatchdog
Evaluate all the watch items, trigger or reset watchdog when appropiate.
arguments
results
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 in a memory page. If you want to find all occurrences of a pattern in a memory page use 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. If you want to find all occurrences of a pattern in the entire memory map use findallmem.
arg2 The byte pattern to search for. This byte pattern can contain wildcards (?) for example: EB0?90??8D. You
can use String Formatting here.
[arg3] The size of the data to search in. Default is the size of the memory region.
1.4. Commands 83
x64dbg Documentation, Release 0.1
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. You can use findallmem to search for a pattern in the whole memory.
arg2 The byte pattern to search for. This byte pattern can contain wildcards (?) for example: EB0?90??8D. You
can use String Formatting here.
[arg3] The size of the data to search in. Default is the size of the memory region.
result
examples
Search for all occurrences a pattern in the memory page CIP is residing:
findall mem.base(cip), "0FA2 E8 ???????? C3"
Search for all occurences of the value of cax in the stack memory page:
findall mem.base(csp), "{bswap@cax}"
findallmem/findmemall
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
1.4. Commands 85
x64dbg Documentation, Release 0.1
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
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
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
dbclear/cleardb
1.4. Commands 87
x64dbg Documentation, Release 0.1
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
arguments
1.4. Commands 89
x64dbg Documentation, Release 0.1
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
result
1.4. Commands 91
x64dbg Documentation, Release 0.1
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
result
1.4. Commands 93
x64dbg Documentation, Release 0.1
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
result
1.4. Commands 95
x64dbg Documentation, Release 0.1
symdownload/downloadsym
arguments
[arg1] Module name (with or without extension) to attempt 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
symload/loadsym
arguments
arg1 Module name (with or without extension) to attempt to load symbols for.
arg2 Path to the symbol file.
[arg3] Force load. Set to 1 to skip symbol validation.
result
symunload/unloadsym
Unload a symbol.
arguments
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
1.4. Commands 97
x64dbg Documentation, Release 0.1
arguments
results
traceexecute
arguments
result
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
1.4. Commands 99
x64dbg Documentation, Release 0.1
result
DataQword/dq
arguments
result
DataTbyte
arguments
result
DataOword
arguments
result
DataMmword
arguments
result
DataXmmword
arguments
result
DataYmmword
arguments
result
DataFloat/DataReal4/df
arguments
result
DataDouble/DataReal8
arguments
result
DataLongdouble/DataReal10
arguments
result
DataAscii/da
arguments
result
DataUnicode/du
arguments
result
DataCode/dc
arguments
result
DataJunk
arguments
result
DataMiddle
arguments
result
AddType
arguments
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. When using a for-
mat string it is recommended to use quotes to avoid ambiguity with the ; (command separator): ``log "{mem;
8@rax}"``.
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
scriptcmd
arguments
Unlike other commands this command forwards everything after scriptcmd directly to the command processor.
For example scriptcmd add rax, 0x1245 will execute the command add rax, 0x1234.
result
example
This command can be used in combination with SetBreakpointCommand to execute scripts on breakpoint callbacks:
mycallback:
log "fn({arg.get(0)}, {arg.get(1)})"
ret
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
Hide the debugger from (very) simple detection methods. The PEB will be modified so that
IsDebuggerPresent() will return false.
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
The x64dbg can be automated and extended in various ways: by the use of x64dbg script, scriptdll/dllscript, a script
written in a language provided by a scripting plugin, or an x64dbg plugin.
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
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
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
struct PLUG_CB_WINEVENT
{
MSG* message;
long* result;
bool retval; //only set this to true if you want Qt to ignore the event.
};
PLUG_CB_WINEVENTGLOBAL
struct PLUG_CB_WINEVENTGLOBAL
{
MSG* message;
bool retval; //only set this to true if you want Qt to ignore the event.
};
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
Parameters
Return Value
Example
Example code.
Related functions
BridgeSettingSetUint
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;
else
{
GuiAddLogMessage("Argument start and end addresses couldn't be get\r\n");
}
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
Parameters
Return Value
true if the command is sent to the command processing thread for asynchronous execution, false otherwise.
Example
DbgCmdExec("run");
Related functions
• DbgCmdExecDirect
DbgCmdExecDirect
Parameters
Return Value
Example
DbgCmdExecDirect("run");
Related functions
• DbgCmdExec
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
Used by x64dbg GUI to send exit signal to debugger and close the debugger.
void DbgExit()
Parameters
No parameters
Return Value
No 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
duint DbgMemFindBaseAddr(
duint addr,
duint* size
);
Parameters
addr Virtual address which is in a specific module. size Pointer, which will, on success, hold the module size.
Return Value
On success, returns the virtual address of a specific module. On failure, it will return 0.
Example
Example code.
Related functions
• DbgMemGetPageSize
DbgMemGetPageSize
Function description.
Function definition.
Parameters
Return Value
Example
//Or use the following statement to get page base and size in one call.
duint sctionbase = DbgMemFindBaseAddr(sel.start, &pagesize); // get the base of
˓→this section ( begin addr of the section )
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.
bool DbgMemRead(
duint va,
void* dest,
duint size
);
Parameters
va Virtual address to source dest Pointer to pre allocated buffer of size size size Number of bytes that should be
read
Return Value
Example
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
Parameters
Return Value
Example
Related functions
• DbgSetCommentAt
• DbgSetAutoLabelAt
• DbgSetAutoBookmarkAt
• DbgSetLabelAt
• DbgSetBookmarkAt
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
Parameters
Return Value
Example
Related functions
• DbgSetAutoCommentAt
• DbgSetAutoLabelAt
• DbgSetAutoBookmarkAt
• DbgSetLabelAt
• DbgSetBookmarkAt
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
Parameters
Return Value
Example
eip = DbgValFromString("cip");
Related functions
• DbgValToString
DbgValToString
Parameters
Return Value
Example
DbgValToString("eax", 1);
Related functions
• DbgValFromString
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
Adds a message to the log. The message will be shown in the log window and on the status bar at the bottom of
x64dbg.
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
• GuiAddStatusBarMessage
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
Shows text in the statusbar, which can be used to inform the user.
Parameters
Return Value
Example
Related functions
• GuiAddLogMessage
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
Shows a warning dialog with title text and main message text.
Parameters
Return Value
Example
Related functions
• GuiAddLogMessage
• GuiAddStatusBarMessage
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
Returns into a variable a pointer to a string containing notes and information that a user has made relating to the target
being debugged (the debuggee). The function GuiGetGlobalNotes can be used to get the global notes stored by a user.
void GuiGetDebuggeeNotes(char** text)
Parameters
text A variable that will contain a pointer to a buffer on return. The pointer returned points to a string that will
contain the notes for the debuggee.
Return Value
This function does not return a value. The string containing the notes is returned via the pointer supplied via the text
parameter.
Example
Related functions
• GuiSetDebuggeeNotes
• GuiGetGlobalNotes
• GuiSetGlobalNotes
GuiGetDisassembly
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetGlobalNotes
Returns into a variable a pointer to a string containing global notes and information that a user has made. The function
GuiGetDebuggeeNotes can be used to get the local notes stored by a user for the target being debugged (the debuggee).
Parameters
text A variable that will contain a pointer to a buffer on return. The pointer returned points to a string that will
contain the global notes.
Return Value
This function does not return a value. The string containing the notes is returned via the pointer supplied via the text
parameter.
Example
Related functions
• GuiSetGlobalNotes
• GuiGetDebuggeeNotes
• GuiSetDebuggeeNotes
GuiGetLineWindow
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiGetWindowHandle
HWND GuiGetWindowHandle();
Parameters
Return Value
Example
hWnd = GuiGetWindowHandle();
Related functions
GuiGraphAt
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiIsUpdateDisabled
Returns the status of the internal update flag, which can be disabled via GuiUpdateDisable function or enabled vis the
GuiUpdateEnable function.
bool GuiIsUpdateDisabled()
Parameters
Return Value
Returns a boolean value indicating if the internal update flag is set to disabled. If it is set to disabled the value is TRUE
otherwise updates are enabled and the value is FALSE.
Example
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
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
void GuiLogClear();
Parameters
Return Value
Example
GuiLogClear();
Related functions
• GuiAddLogMessage
GuiMenuAdd
Parameters
hMenu Menu handle from a previously-added menu or from the main menu.
title A const char repesenting the text title of the menu item to be added.
Return Value
Example
Related functions
• GuiMenuAddEntry
• GuiMenuAddSeparator
• GuiMenuClear
• GuiMenuSetEntryIcon
• GuiMenuSetIcon
Note: Plugin developers should make use of the plugin functions provided:
• _
• _
• _
• _
• _
• _
GuiMenuAddEntry
Parameters
hMenu Menu handle from a previously-added menu or from the main menu.
title A const char repesenting the text title of the menu item to be added.
Return Value
Example
Related functions
• GuiMenuAdd
• GuiMenuAddSeparator
• GuiMenuClear
• GuiMenuSetEntryIcon
• GuiMenuSetIcon
Note: Plugin developers should make use of the plugin functions provided:
• _
• _
• _
• _
• _
• _
GuiMenuAddSeparator
Parameters
hMenu Menu handle from a previously-added menu or from the main menu.
Return Value
Example
Related functions
• GuiMenuAdd
• GuiMenuAddEntry
• GuiMenuClear
• GuiMenuSetEntryIcon
• GuiMenuSetIcon
Note: Plugin developers should make use of the plugin functions provided:
• _
• _
• _
• _
• _
• _
GuiMenuClear
This function removes all entries and child menus from a menu. It will not remove the menu itself.
Parameters
hMenu Menu handle from a previously-added menu or from the main menu.
Return Value
Example
Related functions
• GuiMenuAdd
• GuiMenuAddEntry
• GuiMenuAddSeparator
• GuiMenuSetEntryIcon
• GuiMenuSetIcon
Note: Plugin developers should make use of the plugin functions provided:
• _
• _
• _
• _
• _
• _
GuiMenuSetEntryIcon
Parameters
Return Value
Example
ICONDATA rocket;
rocket.data = icon_rocket;
rocket.size = sizeof(icon_rocket);
hNewMenuEntry = GuiMenuAddEntry(hMenu, &szMenuEntryText);
GuiMenuSetEntryIcon(hNewMenuEntry,&rocket);
Related functions
• GuiMenuAdd
• GuiMenuAddEntry
• GuiMenuAddSeparator
• GuiMenuClear
• GuiMenuSetIcon
Note: Plugin developers should make use of the plugin functions provided:
• _
• _
• _
• _
• _
• _
GuiMenuSetIcon
Parameters
hMenu Menu handle from a previously-added menu or from the main menu.
icon
Return Value
Example
ICONDATA rocket;
rocket.data = icon_rocket;
rocket.size = sizeof(icon_rocket);
hNewMenuEntry = GuiMenuAddEntry(hMenu, &szMenuEntryText);
GuiMenuSetIcon(hMenuDisasm,&rocket);
Related functions
• GuiMenuAdd
• GuiMenuAddEntry
• GuiMenuAddSeparator
• GuiMenuClear
• GuiMenuSetEntryIcon
Note: Plugin developers should make use of the plugin functions provided:
• _
• _
• _
• _
• _
• _
GuiReferenceAddColumn
Parameters
Return Value
Example
GuiReferenceAddColumn(8,&sztitle);
Related functions
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceDeleteAllColumns
void GuiReferenceDeleteAllColumns();
Parameters
Return Value
Example
GuiReferenceDeleteAllColumns();
Related functions
• GuiReferenceAddColumn
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceGetCellContent
Retrieves the data stored in a specified cell in the current Reference View instance, based on the supplied row and
column parameters.
Parameters
row An integer representing the row for the cell for which the data is fetched.
col An integer representing the column for the cell for which the data is fetched.
Return Value
The return value is a pointer to a char representing the data (typically a string) that was stored at the specified
row/column of the current Reference View instance. NULL if there was no data or the row/column specified was
incorrect.
Example
Data = GuiReferenceGetCellContent(0,0);
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceGetRowCount
Gets the total rows count in the current Reference View instance.
int GuiReferenceGetRowCount()
Parameters
Return Value
Returns an integer value representing the total rows in the current Reference View instance.
Example
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceInitialize
Initializes and creates a new instance of a Reference View. A new tab will appear under Reference Views entitled as
per the name parameter. Columns can be added to this instance via the GuiReferenceAddColumn function. Rows can
be inserted by using the GuiReferenceSetRowCount function and data for each cell (row and column) can be added
via the GuiReferenceSetCellContent function. See the appropriate functions for more details.
Parameters
name A const char representing the text string to name the Reference View instance.
Return Value
Example
GuiReferenceInitialize("Code Caves");
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceReloadData
void GuiReferenceReloadData();
Parameters
Return Value
Example
GuiReferenceReloadData();
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceSetCellContent
Sets a specified cell’s data content in the Reference View based on the supplied row and column parameters.
Parameters
Return Value
Example
Notes
The Reference View must be initialized beforehand, and any columns required added before adding any rows and
setting data for them.
Ensure you increment the row counter after you have set all data for all columns in a particular row, otherwise you
will just overwrite any data you have set previously.
GuiReferenceSetRowCount needs to be called before setting cell contents - to update the reference view with a total
count of rows, for example to add 5 rows: GuiReferenceSetRowCount(5), if you then decide to add another row later
on then you would specify GuiReferenceSetRowCount(6)
Ideally you will use some variable that is incremented to automatically keep track of total rows added.
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceSetCurrentTaskProgress
Sets the percentage bar and some status text in the current Reference View instance. This can indicate to the user that
an operation is taking place, e.g. searching/sorting.
Parameters
Return Value
Example
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceSetProgress
Sets the progress bar in the Reference View instance to a specific percentage value. This can be used to indicate to the
user an operation is occurring, e.g. searching/sorting etc.
Parameters
progress An integer representing the percentage value to set the progress bar to.
Return Value
Example
GuiReferenceSetProgress(0);
// do something
GuiReferenceSetProgress(50);
// do something else
GuiReferenceSetProgress(100);
// tell user operation has ended
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceSetRowCount
Sets the total number of rows that the Reference View will contain.
Parameters
count integer representing the total number of rows that the current Reference View will contain.
Return Value
Example
GuiReferenceSetRowCount(5);
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetSearchStartCol
• GuiReferenceSetSingleSelection
GuiReferenceSetSearchStartCol
Sets the search starting column in the current Reference View instance.
void GuiReferenceSetSearchStartCol(int col);
Parameters
Return Value
Example
GuiReferenceSetSearchStartCol(1);
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSingleSelection
GuiReferenceSetSingleSelection
Parameters
index integer representing the row index to set the current selection to.
scroll a boolean value indicating if the selected index should be scrolled into view if it is not currently.
Return Value
Example
GuiReferenceSetSingleSelection(0,true);
Related functions
• GuiReferenceAddColumn
• GuiReferenceDeleteAllColumns
• GuiReferenceGetCellContent
• GuiReferenceGetRowCount
• GuiReferenceInitialize
• GuiReferenceReloadData
• GuiReferenceSetCellContent
• GuiReferenceSetCurrentTaskProgress
• GuiReferenceSetProgress
• GuiReferenceSetRowCount
• GuiReferenceSetSearchStartCol
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
Gets the currently selected line (or lines) of the specified GUI view and returns the information as start and end
addresses into a SELECTIONDATA variable.
bool GuiSelectionGet(int hWindow, SELECTIONDATA* selection)
Parameters
hWindow an integer representing one of the following supported GUI views: GUI_DISASSEMBLY, GUI_DUMP,
GUI_STACK.
selection a SELECTIONDATA structure variable that stores the start and end address of the current selection.
Return Value
Example
SELECTIONDATA sel;
GuiSelectionGet(GUI_DISASSEMBLY, &sel)
sprintf(msg, "%p - %p", sel.start, sel.end);
Related functions
• GuiSelectionSet
GuiSelectionSet
Sets the currently selected line (or lines) of the specified GUI view based on the start and end addresses stored in a
SELECTIONDATA variable.
Parameters
hWindow an integer representing one of the following supported GUI views: GUI_DISASSEMBLY, GUI_DUMP,
GUI_STACK.
selection a SELECTIONDATA structure variable that stores the start and end address of the current selection.
Return Value
Example
SELECTIONDATA sel;
GuiSelectionGet(GUI_DISASSEMBLY, &sel)
sel.end += 4; //expand selection
GuiSelectionSet(GUI_DISASSEMBLY, &sel)
Related functions
• GuiSelectionGet
GuiSetDebuggeeNotes
Sets the notes of the target being debugged (the debuggee), based on the text variable passed to the function. The text
variable is a pointer to a string containing the information to set as the debuggee’s notes.
Parameters
text A variable that contains a pointer to a string that contains the text to set as the debuggee notes.
Return Value
Example
Related functions
• GuiGetDebuggeeNotes
• GuiGetGlobalNotes
• GuiSetGlobalNotes
GuiSetDebugState
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiSetGlobalNotes
Sets the global notes, based on the text variable passed to the function. The text variable is a pointer to a string
containing the information to set as the global notes.
Parameters
text A variable that contains a pointer to a string that contains the text to set as the global notes.
Return Value
Example
Related functions
• GuiGetGlobalNotes
• GuiGetDebuggeeNotes
• GuiSetDebuggeeNotes
GuiSetLastException
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiShowCpu
Switches the focus and view of the GUI to the main disassembly window (CPU tab)
void GuiShowCpu();
Parameters
Return Value
Example
GuiShowCpu();
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.
Parameters
message String containing the message to add to the symbol 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
GuiSymbolLogAdd(&szMsg);
Related functions
• GuiSymbolLogClear
• GuiSymbolRefreshCurrent
• GuiSymbolSetProgress
• GuiSymbolUpdateModuleList
GuiSymbolLogClear
Function description.
void GuiSymbolLogClear();
Parameters
Return Value
Example
GuiSymbolLogClear();
Related functions
• GuiSymbolLogAdd
• GuiSymbolRefreshCurrent
• GuiSymbolSetProgress
• GuiSymbolUpdateModuleList
GuiSymbolRefreshCurrent
void GuiSymbolRefreshCurrent();
Parameters
Return Value
Example
GuiSymbolRefreshCurrent();
Related functions
• GuiSymbolLogAdd
• GuiSymbolLogClear
• GuiSymbolSetProgress
• GuiSymbolUpdateModuleList
GuiSymbolSetProgress
Sets the progress bar in the symbol view based on the integer value supplied. This can be used to convey to the user
an operation and how close it is to completion, for example with searches.
Parameters
percent an integer representing the percentage to set for the progress bar.
Return Value
Example
GuiSymbolSetProgress(50);
Related functions
• GuiSymbolLogAdd
• GuiSymbolLogClear
• GuiSymbolRefreshCurrent
• GuiSymbolUpdateModuleList
GuiSymbolUpdateModuleList
Parameters
Return Value
Example
if(!SymGetModuleList(&modList))
{
GuiSymbolUpdateModuleList(0, nullptr);
return;
}
Related functions
• GuiSymbolLogAdd
• GuiSymbolLogClear
• GuiSymbolRefreshCurrent
• GuiSymbolSetProgress
GuiUnregisterScriptLanguage
Function description.
Function definition.
Parameters
Return Value
Example
Example code.
Related functions
GuiUpdateAllViews
void GuiUpdateAllViews();
Parameters
Return Value
Example
GuiUpdateAllViews();
Related functions
• GuiUpdateEnable
• GuiUpdateDisable
• GuiIsUpdateDisabled
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateArgumentWidget
void GuiUpdateArgumentWidget();
Parameters
Return Value
Example
GuiUpdateArgumentWidget();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateBreakpointsView
void GuiUpdateBreakpointsView();
Parameters
Return Value
Example
GuiUpdateBreakpointsView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateCallStack
void GuiUpdateCallStack();
Parameters
Return Value
Example
GuiUpdateCallStack();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateDisable
Sets and internal variable to disable the update of views. To re-enable updating after processing or performing some
operation, use the GuiUpdateEnable function.
void GuiUpdateDisable();
Parameters
Return Value
Example
GuiUpdateDisable();
Related functions
• GuiIsUpdateDisabled
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateDisassemblyView
void GuiUpdateDisassemblyView();
Parameters
Return Value
Example
GuiUpdateDisassemblyView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateDumpView
void GuiUpdateDumpView();
Parameters
Return Value
Example
GuiUpdateDumpView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateEnable
Sets an internal variable to enable (or re-enable if previously disabled via GuiUpdateDisable) the refresh of all views.
The updateNow parameter can be used to force the update straight away, otherwise the updates of views will continue
as per normal message scheduling, now that they have been enabled with GuiUpdateEnable.
Parameters
updateNow is a boolean value indicating if the update of all views should occur straight away.
Return Value
Example
GuiUpdateEnable(bool updateNow);
Related functions
• GuiIsUpdateDisabled
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateGraphView
void GuiUpdateGraphView();
Parameters
Return Value
Example
GuiUpdateGraphView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateMemoryView
void GuiUpdateMemoryView();
Parameters
Return Value
Example
GuiUpdateMemoryView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdatePatches
void GuiUpdatePatches();
Parameters
Return Value
Example
GuiUpdatePatches();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateRegisterView
void GuiUpdateRegisterView();
Parameters
Return Value
Example
GuiUpdateRegisterView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateSEHChain
void GuiUpdateSEHChain();
Parameters
Return Value
Example
GuiUpdateSEHChain();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateSideBar
void GuiUpdateSideBar();
Parameters
Return Value
Example
GuiUpdateSideBar();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateThreadView
void GuiUpdateThreadView();
Parameters
Return Value
Example
GuiUpdateThreadView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateTimeWastedCounter
void GuiUpdateTimeWastedCounter();
Parameters
Return Value
Example
GuiUpdateTimeWastedCounter();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateWatchView
void GuiUpdateWatchView();
Parameters
Return Value
Example
GuiUpdateWatchView();
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
GuiUpdateWindowTitle
Updates the x64dbg window title with a string to be appended to the title text. Typically the string is a filename.
Parameters
Return Value
Example
GuiUpdateWindowTitle("");
GuiUpdateWindowTitle(szFileName);
Related functions
• GuiUpdateAllViews
• GuiUpdateArgumentWidget
• GuiUpdateBreakpointsView
• GuiUpdateCallStack
• GuiUpdateDisable
• GuiUpdateDisassemblyView
• GuiUpdateDumpView
• GuiUpdateEnable
• GuiUpdateGraphView
• GuiUpdateMemoryView
• GuiUpdatePatches
• GuiUpdateRegisterView
• GuiUpdateSEHChain
• GuiUpdateSideBar
• GuiUpdateThreadView
• GuiUpdateTimeWastedCounter
• GuiUpdateWatchView
• GuiUpdateWindowTitle
x64dbg trace file is a binary file that contains all information about program execution. Each trace file is composed of
3 parts: Magic word, JSON header and binary trace blocks. x64dbg trace file is little-endian.
Magic word
Every trace file will begin with 4 bytes, “TRAC” (encoded in ASCII).
Header
Header is located after header at offset 4. It is composed of a 4-byte length field, followed by a JSON blob. The JSON
blob might not be null-terminated and might not be aligned to 4-byte boundary.
Binary trace data is immediately after header without any padding and might not be aligned to 4-byte boundary. It is
defined as a sequence of blocks. Currently, only block type 0 is defined.
Every block is started with a 1-byte type number. This type number must be 0, which means it is a block that describes
an instruction traced.
If the type number is 0, then the block will contain the following data:
struct {
uint8_t BlockType; //BlockType is 0, indicating it describes an instruction
˓→execution.
uint8_t RegisterChanges;
uint8_t MemoryAccesses;
uint8_t BlockFlagsAndOpcodeSize; //Bitfield
DWORD ThreadId;
uint8_t Opcode[];
uint8_t RegisterChangePosition[];
duint RegisterChangeNewData[];
uint8_t MemoryAccessFlags[];
duint MemoryAccessAddress[];
duint MemoryAccessOldData[];
duint MemoryAccessNewData[];
};
RegisterChanges is a unsigned byte that counts the number of elements in the array
RegisterChangePosition and RegisterChangeNewData.
MemoryAccesses is a unsigned byte that counts the number of elements in the array MemoryAccessFlags.
BlockFlagsAndOpcodeSize is a bitfield. The most significant bit is ThreadId bit. When this bit is set,
ThreadId field is available and indicates the thread id which executed the instruction. When this bit is clear, the
thread id that executed the instruction is the same as last instruction, so it is not stored in file. The least 4 significant
bits specify the length of Opcode field, in number of bytes. Other bits are reserved and set to 0. Opcode field
contains the opcode of current instruction.
RegisterChangePosition is an array of unsigned bytes. Each element indicates a pointer-sized integer in struct
REGDUMP that is updated after execution of current instruction, as an offset to previous location. The absolute index
is computed by adding the absolute index of previous element +1 (or 0 if it is first element) with this relative index.
RegisterChangeNewData is an array of pointer-sized integers that contains the new value of register, that is
recorded before the instruction is executed. REGDUMP structure is given below.
typedef struct
{
REGISTERCONTEXT regcontext;
FLAGS flags;
X87FPUREGISTER x87FPURegisters[8];
unsigned long long mmx[8];
MXCSRFIELDS MxCsrFields;
X87STATUSWORDFIELDS x87StatusWordFields;
X87CONTROLWORDFIELDS x87ControlWordFields;
LASTERROR lastError;
//LASTSTATUS lastStatus; //This field is not supported and not included in trace
˓→file.
} REGDUMP;
For example, ccx is the second member of regcontext. On x64 architecture, it is at byte offset 8 and on x86 ar-
chitecture it is at byte offset 4. On both architecture, it is at index 1 and cax is at index 0. Therefore, when
RegisterChangePosition[0] = 0, RegisterChangeNewData[0] contains the new value of cax. If
RegisterChangePosition[1] = 0, RegisterChangeNewData[1] contains the new value of ccx, since
the absolute index is computed by 0+0+1=1. The use of relative indexing helps achieve better data compression if
a lossless compression is then applied to trace file, and also allow future expansion of REGDUMP structure without
increasing size of RegisterChanges and RegisterChangePosition beyond a byte. Note: the file reader
can locate the address of the instruction using cip register in this structure.
x64dbg will save all registers at the start of trace, and every 512 instructions(this number might be changed in
future versions to have different tradeoff between speed and space). A block with all registers saved will have
RegisterChanges=172 on 64-bit platform and 216 on 32-bit platform. This allows x64dbg trace file to be
randomly accessed. x64dbg might be unable to open a trace file that has a sequence of instruction longer than an
implementation-defined limit without all registers saved.
MemoryAccessFlags is an array of bytes that indicates properties of memory access. Currently, only bit 0 is
defined and all other bits are reserved and set to 0. When bit 0 is set, it indicates the memory is not changed(This could
mean it is read, or it is overwritten with identical value), so MemoryAccessNewData will not have an entry for this
memory access. The file reader may use a disassembler to determine the true type of memory access.
MemoryAccessAddress is an array of pointers that indicates the address of memory access.
MemoryAccessOldData is an array of pointer-sized integers that stores the old content of memory.
MemoryAccessNewData is an array of pointer-sized integers that stores the new content of memory.
1.6 Licenses
Licenses:
Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/ Everyone is permitted to copy and distribute verba-
tim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change
the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change
all versions of a program–to make sure it remains free software for all its users. We, the Free Software Foundation,
use the GNU General Public License for most of our software; it applies also to any other work released this way by
its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed
to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that
you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free
programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights.
Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities
to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients
the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you
must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2)
offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers’ and authors’ protection, the GPL clearly explains that there is no warranty for this free software.
For both users’ and authors’ sake, the GPL requires that modified versions be marked as changed, so that their problems
will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although
the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users’ freedom to change
the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is
precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice
for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to
those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict develop-
ment and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that
patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents
cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
1. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”.
“Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission,
other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work
“based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily
liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy.
Propagation includes copying, distribution (with or without modification), making available to the public, and in some
countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interac-
tion with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and
prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no
warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under
this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such
as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code”
means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body,
or, in the case of interfaces specified for a particular programming language, one that is widely used among developers
working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in
the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only
to enable use of the work with that Major Component, or to implement a Standard Interface for which an implemen-
tation is available to the public in source code form. A “Major Component”, in this context, means a major essential
component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work
runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install,
and (for an executable work) run the object code and to modify the work, including scripts to control those activi-
ties. However, it does not include the work’s System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but which are not part of the work. For example,
Corresponding Source includes interface definition files associated with source files for the work, and the source code
for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by
intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the
Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
1. Treatment of plugins
This license does not affect plugins, i.e., dynamically linked libraries, that use the provided plugin interface mechanism
of x64dbg for contibuting additional features to the x64dbg project and can only be run from x64dbg. In fact you are
allowed to create and share (non-)commercial, non-standalone closed-source plugins for x64dbg under your own
license.
1. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided
the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program.
The output from running a covered work is covered by this License only if the output, given its content, constitutes a
covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license
otherwise remains in force. You may convey covered works to others for the sole purpose of having them make
modifications exclusively for you, or provide you with facilities for running those works, provided that you comply
with the terms of this License in conveying all material for which you do not control copyright. Those thus making or
running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms
that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not
allowed; section 10 makes it unnecessary.
1. Protecting Users’ Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling
obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting
or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to
the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and
you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work’s
users, your or third parties’ legal rights to forbid circumvention of technological measures.
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions
of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a
storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used
to limit the access or legal rights of the compilation’s users beyond what the individual works permit. Inclusion of a
covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
1. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey
the machine-readable Corresponding Source under the terms of this License, in one of these ways:
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System
Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally
used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling.
In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For
a particular product received by a particular user, “normally used” refers to a typical or common use of that class
of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or
expects or is expected to use, the product. A product is a consumer product regardless of whether the product has
substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use
of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information
required to install and execute modified versions of a covered work in that User Product from a modified version of its
Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the
conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to
the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding
Source conveyed under this section must be accompanied by the Installation Information. But this requirement does
not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for
example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support
service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product
in which it has been modified or installed. Access to a network may be denied when the modification itself materially
and adversely affects the operation of the network or violates the rules and protocols for communication across the
network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format
that is publicly documented (and with an implementation available to the public in source code form), and must require
no special password or key for unpacking, reading or copying.
1. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more
of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they
were included in this License, to the extent that they are valid under applicable law. If additional permissions apply
only to part of the Program, that part may be used separately under those permissions, but the entire Program remains
governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that
copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases
when you modify the work.) You may place additional permissions on material, added by you to a covered work, for
which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized
by the copyright holders of that material) supplement the terms of this License with terms:
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If
the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with
a term that is a further restriction, you may remove that term. If a license document contains a further restriction but
permits relicensing or conveying under this License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement
of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as
exceptions; the above requirements apply either way.
1. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt
otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including
any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently,
if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you
of the violation by some reasonable means, this is the first time you have received notice of violation of this License
(for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or
rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not
qualify to receive new licenses for the same material under section 10.
1. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation
of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise
does not require acceptance. However, nothing other than this License grants you permission to propagate or modify
any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or
propagating a covered work, you indicate your acceptance of this License to do so.
1. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run,
modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third
parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or sub-
dividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction,
each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party’s
predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding
Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For
example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License,
and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim
is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
1. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the
Program is based. The work thus licensed is called the contributor’s “contributor version”.
A contributor’s “essential patent claims” are all patent claims owned or controlled by the contributor, whether already
acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using,
or selling its contributor version, but do not include claims that would be infringed only as a consequence of further
modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent
sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor’s essential
patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its
contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated,
not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringe-
ment). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is
not available for anyone to copy, free of charge and under the terms of this License, through a publicly available
network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange,
in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients.
“Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered
work in a country, or your recipient’s use of the covered work in a country, would infringe one or more identifiable
patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring
conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing
them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is
automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of,
or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License.
You may not convey a covered work if you are a party to an arrangement with a third party that is in the business
of distributing software, under which you make payment to the third party based on the extent of your activity of
conveying the work, and under which the third party grants, to any of the parties who would receive the covered work
from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies
made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the
covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringe-
ment that may otherwise be available to you under applicable patent law.
1. No Surrender of Others’ Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of
this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to
satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence
you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further
conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
1. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a
work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey
the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the
special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network
will apply to the combination as such.
1. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from
time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new
problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of
the GNU General Public License “or any later version” applies to it, you have the option of following the terms and
conditions either of that numbered version or of any later version published by the Free Software Foundation. If the
Program does not specify a version number of the GNU General Public License, you may choose any version ever
published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be
used, that proxy’s public statement of acceptance of a version permanently authorizes you to choose that version for
the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are im-
posed on any author or copyright holder as a result of your choosing to follow a later version.
1. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IM-
PLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE
COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
1. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPY-
RIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PER-
MITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDEN-
TAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PRO-
GRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE
OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
THE POSSIBILITY OF SUCH DAMAGES.
1. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according
to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil
liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the
Program in return for a fee.
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve
this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to
most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to
where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
The hypothetical commands show w' andshow c’ should show the appropriate parts of the General Public License.
Of course, your program’s commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer”
for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see http:
//www.gnu.org/licenses/.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your
program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first,
please read http://www.gnu.org/philosophy/why-not-lgpl.html.
Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/ Everyone is permitted to copy and distribute verba-
tim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU
General Public License, supplemented by the additional permissions listed below.
1. Additional Definitions.
As used herein, “this License” refers to version 3 of the GNU Lesser General Public License, and the “GNU GPL”
refers to version 3 of the GNU General Public License.
“The Library” refers to a covered work governed by this License, other than an Application or a Combined Work as
defined below.
An “Application” is any work that makes use of an interface provided by the Library, but which is not otherwise based
on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided
by the Library.
A “Combined Work” is a work produced by combining or linking an Application with the Library. The particular
version of the Library with which the Combined Work was made is also called the “Linked Version”.
The “Minimal Corresponding Source” for a Combined Work means the Corresponding Source for the Combined
Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the
Application, and not on the Linked Version.
The “Corresponding Application Code” for a Combined Work means the object code and/or source code for the
Application, including any data and utility programs needed for reproducing the Combined Work from the Application,
but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU
GPL.
1. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied
by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may
convey a copy of the modified version:
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not
supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful,
or
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
1. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You
may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to
numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or
fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its
use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license document.
1. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict mod-
ification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such
modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and
its use are covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library
among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
d) Do one of the following:
e) Provide Installation Information, but only if you would otherwise be required to provide such information under
section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified
version of the Combined Work produced by recombining or relinking the Application with a modified version of the
Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding
Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in
the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
1. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other
library facilities that are not Applications and are not covered by this License, and convey such a combined library
under terms of your choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other
library facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where
to find the accompanying uncombined form of the same work.
1. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License
from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address
new problems or concerns.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain num-
bered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option
of following the terms and conditions either of that published version or of any later version published by the Free
Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General
Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free
Software Foundation.
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General
Public License shall apply, that proxy’s public statement of acceptance of any version is permanent authorization for
you to choose that version for the Library.
1.6.3 Zydis
1.6.4 XEDParse
Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/ Everyone is permitted to copy and distribute verba-
tim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU
General Public License, supplemented by the additional permissions listed below.
1. Additional Definitions.
As used herein, “this License” refers to version 3 of the GNU Lesser General Public License, and the “GNU GPL”
refers to version 3 of the GNU General Public License.
“The Library” refers to a covered work governed by this License, other than an Application or a Combined Work as
defined below.
An “Application” is any work that makes use of an interface provided by the Library, but which is not otherwise based
on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided
by the Library.
A “Combined Work” is a work produced by combining or linking an Application with the Library. The particular
version of the Library with which the Combined Work was made is also called the “Linked Version”.
The “Minimal Corresponding Source” for a Combined Work means the Corresponding Source for the Combined
Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the
Application, and not on the Linked Version.
The “Corresponding Application Code” for a Combined Work means the object code and/or source code for the
Application, including any data and utility programs needed for reproducing the Combined Work from the Application,
but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU
GPL.
1. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied
by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may
convey a copy of the modified version:
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not
supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful,
or
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
1. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You
may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to
numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or
fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its
use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license document.
1. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict mod-
ification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such
modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and
its use are covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library
among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
e) Provide Installation Information, but only if you would otherwise be required to provide such information under
section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified
version of the Combined Work produced by recombining or relinking the Application with a modified version of the
Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding
Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in
the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
1. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other
library facilities that are not Applications and are not covered by this License, and convey such a combined library
under terms of your choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other
library facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where
to find the accompanying uncombined form of the same work.
1. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License
from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address
new problems or concerns.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain num-
bered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option
of following the terms and conditions either of that published version or of any later version published by the Free
Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General
Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free
Software Foundation.
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General
Public License shall apply, that proxy’s public statement of acceptance of any version is permanent authorization for
you to choose that version for the Library.
1.6.5 asmjit
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter
it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment in the product documentation would be appreciated
but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original
software.
3. This notice may not be removed or altered from any source distribution.
1.6.6 jansson
1.6.7 LZ4
LZ4 Library Copyright (c) 2011-2014, Yann Collet All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
• Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
• Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the follow-
ing disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR-
RANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDI-
RECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
Snowman uses source code of multiple projects and, as a whole, is licensed under the terms of the GNU General
Public License as published by the Free Software Foundation, version 3 or any later version. In addition, you can use
all the code and changes contributed to the project and not explicitly copyrighted otherwise, e.g., by a note in a commit
message, under the following terms.
Copyright (c) 2010 Yegor Derevenets <yegor.derevenets@gmail.com> All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
• Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
• Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the follow-
ing disclaimer in the documentation and/or other materials provided with the distribution.
• Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR-
RANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDI-
RECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
• genindex
• modindex
• search
277