24 #include <capstone/capstone.h>
27 #pragma warning(disable : 4054)
37 printf(
"Entering DriverEntry()\n");
41 printf(
"Leaving DriverEntry()\n");
50 KFLOATING_SAVE float_save;
77 printf(
"cs_driver!cs_driver_hello:\n");
78 for (
size_t j = 0; j <
count; j++) {
93 _Use_decl_annotations_
int __cdecl
printf(
const char *
const _Format, ...) {
97 va_start(
args, _Format);
98 status = vDbgPrintEx(DPFLTR_DEFAULT_ID, DPFLTR_ERROR_LEVEL, _Format,
args);
static mcore_handle handle
@ CS_ARCH_X86
X86 architecture (including x86 & x86-64)
@ CS_MODE_64
64-bit mode (X86, PPC)
@ CS_MODE_32
32-bit mode (X86)
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 cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle)
CAPSTONE_EXPORT void CAPSTONE_API cs_free(cs_insn *insn, size_t count)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_close(csh *handle)
DRIVER_INITIALIZE DriverEntry
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
static NTSTATUS cs_driver_hello()
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
KeRestoreFloatingPointState
static const char struct stat static buf struct stat static buf static vhangup int status
_W64 unsigned int uintptr_t
#define STATUS_UNSUCCESSFUL
#define NT_SUCCESS(status)