#!/usr/bin/python

import pydasm
# Very silly, nop and some xor's 
buffer = "\x0f\x01\x0d\x00\x00\x00\x00\xc3"
offset = 0 
while offset < len(buffer): 
	i = pydasm.get_instruction(buffer[offset:], pydasm.MODE_32) 
	print pydasm.get_instruction_string(i, pydasm.FORMAT_ATT, 0) 
	if not i: 
		break 
	offset += i.length

