libmwemu 0.24.5

x86 32/64bits and system internals emulator, for securely emulating malware and other stuff.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::emu::Emu;
use yaxpeax_arm::armv8::a64::{Instruction, Operand};

pub fn execute(emu: &mut Emu, ins: &Instruction) -> bool {
    if let Operand::PCOffset(offset) = ins.operands[0] {
        let pc = emu.regs_aarch64().pc;
        emu.regs_aarch64_mut().pc = pc.wrapping_add(offset as u64);
        emu.force_reload = true;
        true
    } else {
        false
    }
}