libmwemu 0.24.4

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
use crate::emu;

pub fn WinExec(emu: &mut emu::Emu) {
    let cmdline_ptr = emu.regs().rcx;
    let cmdline = emu.maps.read_string(cmdline_ptr);

    log_red!(emu, "kernel32!WinExec  '{}'", cmdline);

    emu.regs_mut().rax = 32;
}