def cb2(vm, gpr, fpr, data): global sss, fibo rdi = gpr.rdi gpr.rax = fibo[rdi] ddd = (sss[rdi-1] ^ sss[rdi-2])&0xffffffff pyqbdi.writeMemory(gpr.rbp, p32(ddd)) gpr.rip = 0x40069f vm.setGPRState(gpr) return pyqbdi.BREAK_TO_VM
def put_bytes(self, addr, value): pyqbdi.writeMemory(addr, value)
def put_dword(self, addr, value): pyqbdi.writeMemory(addr, struct.pack("<I", value))
def put_byte(self, addr, value): pyqbdi.writeMemory(addr, chr(value))