Hello. I'm not sure where to post this, but here goes.
I need to read instructions one by one from a binary, but the fact that IA-32 instructions are not fixed-size makes it difficult. Is there some resource available on the Internet that has the size information for every opcode?
Here's an example
So, is there a list with all the opcodes and their instruction size? Thanks!
//I could read the first byte and determine the length of the rest of the instrucition if I had some sort of a reference.
B8 78 56 34 12 mov eax, 0x12345678
//B8 would suggest that it's an instruction that moves a dword into eax and I'd have to read additional 4 bytes to complete the instruction
6A 3E push 0x3e
//6A, the opcode to push a byte value on the stack, would mean that I only need to read one more byte