I would like to list all exported functions in a DLL and dump their bytes. It's pretty trivial to list all the exports using either dumpbin
or rabin2
from the radare2
package. I also found a way to disassemble the whole DLL using dumpbin
but there's no way to see function boundaries in the dump.
I'm looking for a way to disassemble (with bytes) or ideally just dump the bytes for for a specific or all functions inside a DLL. I don't mind parsing the output if it's got some other information in it. I've tried all kids of tools and so far I was not able to achieve what I need.
One of the possible directions would be to script radare2
to do that.