Skip to content

How to use the x64dbg Plugin SDK (x86)

fearless edited this page Jul 29, 2016 · 2 revisions

Overview

There are a number of ways of using the pluginsdk files in your own projects, below is a couple of options for using the x64dbg Plugin SDK (x86) with Masm32 and/or with the RadASM IDE

Masm32

  • Copy the x64dbgpluginsdk.inc, x32dbg.inc, x32bridge.inc, debug_x86.inc and TitanEngine_x86.inc files from pluginsdk\include folder to your masm32\include folder
  • Copy the x32dbg.lib, x32bridge.lib, debug_x86.lib and TitanEngine_x86.lib files from pluginsdk\lib folder to your masm32\lib folder
  • Add a line in your source code:
    include x64dbgpluginsdk.inc
  • or add the following lines to your source code
    include x32dbg.inc
    include x32bridge.inc
    include debug_x86.inc
    include TitanEngine_x86.inc
    includelib x32dbg.lib
    includelib x32bridge.lib
    includelib debug_x86.lib
    includelib TitanEngine_x86.lib

RadASM

Alternatively you can use the included template to easily create a x32dbg plugin project ready to use

  • Copy the template\x32dbg_plugin.tpl file to your RadASM\Masm\Templates folder.
  • Open RadASM and choose a new project.
  • Choose assembler type as masm (which requires you to have the Masm32 SDK package and steps above are completed)
  • Choose the project name and folder.
  • Specify project as a dll (dynamic link library) type .
  • Select 'x32dbg plugin' as the project template to use and allow it to create & setup a ready to run barebones x32dbg plugin.

With any of these options, feel free to add any other includes and libs as you normally would.

Resources