abhijit mohanta Posted September 29, 2010 Posted September 29, 2010 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.
Killboy Posted September 29, 2010 Posted September 29, 2010 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now