Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <capstone.h>
Go to the source code of this file.
Macros | |
#define | EXPORT comment(linker, "/EXPORT:"__FUNCTION__"="__FUNCDNAME__) |
Functions | |
unsigned int __stdcall | bs_version (int *major, int *minor) |
bool __stdcall | bs_support (int query) |
cs_err __stdcall | bs_open (cs_arch arch, cs_mode mode, csh *handle) |
cs_err __stdcall | bs_close (csh *handle) |
cs_err __stdcall | bs_option (csh handle, cs_opt_type type, size_t value) |
cs_err __stdcall | bs_errno (csh handle) |
const char *__stdcall | bs_strerror (cs_err code) |
size_t __stdcall | bs_disasm (csh handle, const uint8_t *code, size_t code_size, uint64_t address, size_t count, cs_insn **insn) |
void __stdcall | getInstruction (cs_insn *insn, uint32_t index, void *curInst, uint32_t bufSize) |
const char *__stdcall | bs_reg_name (csh handle, unsigned int reg_id) |
void __stdcall | bs_free (cs_insn *insn, size_t count) |
cs_insn *__stdcall | bs_malloc (csh handle) |
int __stdcall | bs_op_index (csh handle, const cs_insn *insn, unsigned int op_type, unsigned int position) |
int __stdcall | bs_op_count (csh handle, const cs_insn *insn, unsigned int op_type) |
bool __stdcall | bs_reg_write (csh handle, const cs_insn *insn, unsigned int reg_id) |
bool __stdcall | bs_reg_read (csh handle, const cs_insn *insn, unsigned int reg_id) |
bool __stdcall | bs_insn_group (csh handle, const cs_insn *insn, unsigned int group_id) |
const char *__stdcall | bcs_group_name (csh handle, unsigned int group_id) |
const char *__stdcall | bs_insn_name (csh handle, unsigned int insn_id) |
bool __stdcall | bs_disasm_iter (csh handle, const uint8_t **code, size_t *size, uint64_t *address, cs_insn *insn) |
#define EXPORT comment(linker, "/EXPORT:"__FUNCTION__"="__FUNCDNAME__) |
Definition at line 18 of file vbCapstone.cpp.
Definition at line 106 of file vbCapstone.cpp.
References cs_group_name(), and handle.
cs_err __stdcall bs_close | ( | csh * | handle | ) |
size_t __stdcall bs_disasm | ( | csh | handle, |
const uint8_t * | code, | ||
size_t | code_size, | ||
uint64_t | address, | ||
size_t | count, | ||
cs_insn ** | insn | ||
) |
Definition at line 55 of file vbCapstone.cpp.
References count, cs_disasm(), and handle.
bool __stdcall bs_disasm_iter | ( | csh | handle, |
const uint8_t ** | code, | ||
size_t * | size, | ||
uint64_t * | address, | ||
cs_insn * | insn | ||
) |
Definition at line 116 of file vbCapstone.cpp.
References cs_disasm_iter(), and handle.
cs_err __stdcall bs_errno | ( | csh | handle | ) |
void __stdcall bs_free | ( | cs_insn * | insn, |
size_t | count | ||
) |
Definition at line 101 of file vbCapstone.cpp.
References cs_insn_group(), and handle.
Definition at line 111 of file vbCapstone.cpp.
References cs_insn_name(), and handle.
cs_insn* __stdcall bs_malloc | ( | csh | handle | ) |
Definition at line 86 of file vbCapstone.cpp.
References cs_op_count(), and handle.
int __stdcall bs_op_index | ( | csh | handle, |
const cs_insn * | insn, | ||
unsigned int | op_type, | ||
unsigned int | position | ||
) |
Definition at line 81 of file vbCapstone.cpp.
References cs_op_index(), and handle.
Definition at line 30 of file vbCapstone.cpp.
cs_err __stdcall bs_option | ( | csh | handle, |
cs_opt_type | type, | ||
size_t | value | ||
) |
Definition at line 40 of file vbCapstone.cpp.
References cs_option(), handle, type, and value.
Definition at line 65 of file vbCapstone.cpp.
References cs_reg_name(), and handle.
Definition at line 96 of file vbCapstone.cpp.
References cs_reg_read(), and handle.
Definition at line 91 of file vbCapstone.cpp.
References cs_reg_write(), and handle.
const char* __stdcall bs_strerror | ( | cs_err | code | ) |
Definition at line 20 of file vbCapstone.cpp.
References cs_version(), major, and minor.
Definition at line 60 of file vbCapstone.cpp.
References memcpy().