16 #pragma comment(lib, "capstone.lib")
18 #define EXPORT comment(linker, "/EXPORT:"__FUNCTION__"="__FUNCDNAME__)
62 memcpy(curInst, (
void*)&insn[index], bufSize);
static mcore_handle handle
cs_arch
Architecture type.
cs_opt_type
Runtime option for the disassembled engine.
CAPSTONE_EXPORT unsigned int CAPSTONE_API cs_version(int *major, int *minor)
CAPSTONE_EXPORT bool CAPSTONE_API cs_support(int query)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_errno(csh handle)
CAPSTONE_EXPORT size_t CAPSTONE_API cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_t count, cs_insn **insn)
CAPSTONE_EXPORT const char *CAPSTONE_API cs_group_name(csh ud, unsigned int group)
CAPSTONE_EXPORT bool CAPSTONE_API cs_reg_read(csh ud, const cs_insn *insn, unsigned int reg_id)
CAPSTONE_EXPORT const char *CAPSTONE_API cs_strerror(cs_err code)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle)
CAPSTONE_EXPORT bool CAPSTONE_API cs_insn_group(csh ud, const cs_insn *insn, unsigned int group_id)
CAPSTONE_EXPORT int CAPSTONE_API cs_op_count(csh ud, const cs_insn *insn, unsigned int op_type)
CAPSTONE_EXPORT const char *CAPSTONE_API cs_insn_name(csh ud, unsigned int insn)
CAPSTONE_EXPORT void CAPSTONE_API cs_free(cs_insn *insn, size_t count)
CAPSTONE_EXPORT const char *CAPSTONE_API cs_reg_name(csh ud, unsigned int reg)
CAPSTONE_EXPORT bool CAPSTONE_API cs_reg_write(csh ud, const cs_insn *insn, unsigned int reg_id)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_close(csh *handle)
CAPSTONE_EXPORT int CAPSTONE_API cs_op_index(csh ud, const cs_insn *insn, unsigned int op_type, unsigned int post)
CAPSTONE_EXPORT cs_insn *CAPSTONE_API cs_malloc(csh ud)
CAPSTONE_EXPORT bool CAPSTONE_API cs_disasm_iter(csh ud, const uint8_t **code, size_t *size, uint64_t *address, cs_insn *insn)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
const char *__stdcall bs_strerror(cs_err code)
bool __stdcall bs_reg_write(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)
cs_insn *__stdcall bs_malloc(csh handle)
bool __stdcall bs_support(int query)
const char *__stdcall bs_insn_name(csh handle, unsigned int insn_id)
const char *__stdcall bs_reg_name(csh handle, unsigned int reg_id)
int __stdcall bs_op_index(csh handle, const cs_insn *insn, unsigned int op_type, unsigned int position)
unsigned int __stdcall bs_version(int *major, int *minor)
cs_err __stdcall bs_close(csh *handle)
cs_err __stdcall bs_option(csh handle, cs_opt_type type, size_t value)
void __stdcall bs_free(cs_insn *insn, size_t count)
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)
int __stdcall bs_op_count(csh handle, const cs_insn *insn, unsigned int op_type)
bool __stdcall bs_disasm_iter(csh handle, const uint8_t **code, size_t *size, uint64_t *address, cs_insn *insn)
bool __stdcall bs_reg_read(csh handle, const cs_insn *insn, unsigned int reg_id)
cs_err __stdcall bs_errno(csh handle)
cs_err __stdcall bs_open(cs_arch arch, cs_mode mode, csh *handle)