CGO is currently required for the disasm package. We already have a golang built-in disasm.
My plan for this migration is to first:
- Find/port a binary regex library (probably modify https://github.com/dlclark/regexp2)
- Port over EnVisen's ROP gadget finder (https://github.com/polyverse/EnVisen/blob/master/internaljs/instruction_gadget_worker.js)
- Use Golang's built-in disassembly package.