Jump to content
Tuts 4 You

coding disassembler with hde32 library

abhijit mohanta

Recommended Posts

abhijit mohanta

I am trying to code disassembler using hde32 libary

following is the part of code


void *code = (void*)pbFileEP;//pbFileEP is entry point

unsigned int len = hde32_disasm(code,&hs)

can anybody suggest how to proceed further.

Link to comment

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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...