@@ -0,0 +1,951 @@
+import os%0Aimport sys%0A%0A#Python 2 depended modules%0Atry:%0A    __import__('imp').find_module('pyopenreil')%0A    from pyopenreil.REIL import *%0A    from pyopenreil.utils import asm%0Aexcept ImportError:%0A    pass%0A%0A%0Aclass Reil:%0A%0A%09def __init__(self, mode, *args, **kwargs):%0A%09%09self.mode = mode%0A%09%09return%0A%0A%0A%09def symprint(self,app):%0A%09%09self.widget.Symrwidget.editor.append(app)%0A%0A%09def entry(self):%0A%09%09self.widget.Symrwidget.editor.clear()%0A%09%09self.widget.commandWidget.stopButton.setDisabled(False)%0A%09%09code = self.widget.codeWidget.getCleanCodeAsByte(as_string=True, parse_string=True)%0A%09%09code = tuple(synt for synt in code.split('%5Cn') if synt)%0A%09%09try:%0A%09%09%09viasyntax = asm.Reader(ARCH_X86,(code),addr = 0)%0A%09%09%09store = CodeStorageTranslator(viasyntax)%0A%09%09%09irl = store.get_func(0)%0A%09%09%09for func in irl.bb_list: self.symprint(str(func).replace(%22 %22*4,%22 %22))%0A%09%09except (ReadError,OSError):%0A%09%09%09self.symprint(%22An error occured when converting instructions into the symbolic form%22)%0A%09%09return%0A

Create reil.py