• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <capstone.h>
2 
3 #define BINARY "\x3b\x30\x62\x93\x5d\x61\x03\xe8"
4 
main(int argc,char ** argv,char ** envp)5 int main(int argc, char **argv, char **envp) {
6   csh handle;
7   if (cs_open(CS_ARCH_X86, CS_MODE_64, &handle)) {
8     printf("cs_open(…) failed\n");
9     return 1;
10   }
11   cs_insn *insn;
12   cs_disasm(handle, (uint8_t *)BINARY, sizeof(BINARY) - 1, 0x1000, 0, &insn);
13   return 0;
14 }
15