uroboros-diversification/src/instrumentation/gfree/gfree.py
def rewrite_instr(self):
        """
        Rewrite x86 instruction containing bytes encoding ret
        """
        i = 0
        bswap_bad = set(('EDX', 'EBX', 'RDX', 'RBX'))
        while i < len(self.instrs):
            ins = self.instrs[i]
            if ins[0].upper() == 'MOVNTI':
                self.instrs[i] = type(ins)(('mov',) + ins[1:])
            elif ins[0].upper() == 'BSWAP' and ins[1].upper() in bswap_bad:
                self.instrs[i:i+1] = inlining.bswapsub(ins[1], get_loc(ins))
            i += 1

        Rewrite x86 instruction containing bytes encoding ret
        
Rewrite x86 instruction containing bytes encoding ret
Rewrite x86 instruction containing bytes encoding ret
def rewrite_instr(self):
        i = 0
        bswap_bad = set(('EDX', 'EBX', 'RDX', 'RBX'))
        while i < len(self.instrs):
            ins = self.instrs[i]
            if ins[0].upper() == 'MOVNTI':
                self.instrs[i] = type(ins)(('mov',) + ins[1:])
            elif ins[0].upper() == 'BSWAP' and ins[1].upper() in bswap_bad:
                self.instrs[i:i+1] = inlining.bswapsub(ins[1], get_loc(ins))
            i += 1
def rewrite_instr ( self ) : i = 0 bswap_bad = set ( ( 'EDX' , 'EBX' , 'RDX' , 'RBX' ) ) while i < len ( self . instrs ) : ins = self . instrs [ i ] if ins [ 0 ] . upper ( ) == 'MOVNTI' : self . instrs [ i ] = type ( ins ) ( ( 'mov' , ) + ins [ 1 : ] ) elif ins [ 0 ] . upper ( ) == 'BSWAP' and ins [ 1 ] . upper ( ) in bswap_bad : self . instrs [ i : i + 1 ] = inlining . bswapsub ( ins [ 1 ] , get_loc ( ins ) ) i += 1
Rewrite x86 instruction containing bytes encoding ret
Rewrite x86 instruction containing bytes encoding ret
"""
        Rewrite x86 instruction containing bytes encoding ret
        """
self