Posted September 29, 201014 yr I am trying to code disassembler using hde32 libaryfollowing is the part of codeReadFile(hFile,&lpBuffer,16,&noOfBytes,NULL); void *code = (void*)pbFileEP;//pbFileEP is entry point unsigned int len = hde32_disasm(code,&hs)can anybody suggest how to proceed further.
September 29, 201014 yr hde is a length disassembler engine. all it does is tell you the length of the given instruction and some data extracted from it.take a look at the hde32s structure for more info.to get the next instruction, simply add the returned length to the instruction offset, in your case:void* next = (void*)((BYTE*)code + len);if you need a disassembler that gives textual representation of mnemonics, take a look at Distorm or BeaEngine.
Create an account or sign in to comment