This is a cut-up version of libdisasm originally from the bastard project http://bastard.sourceforge.net/