libmwemu 0.24.1

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
14
15
16
use crate::{tests::helpers, *};

#[test]
// this tests a linux 64bits raw arithmetic code.
pub fn sc64lin_arith_100iter() {
    helpers::setup();

    let mut emu = emu64();
    emu.cfg.maps_folder = "../../maps/maps64/".to_string();

    let sample = "../../test/sc64lin_arith_100iter.bin";
    emu.load_code(sample);
    emu.run(Some(0x3c0040));

    assert_eq!(emu.regs().rax, 0x4d9364d94bc0001e);
}