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

pub fn GetStdHandle(emu: &mut emu::Emu) {
    let nstd = emu.regs().rcx as usize; // Parameter passed in RCX in x64
    log_red!(emu, "** {} kernel32!GetStdHandle nstd: {}", emu.pos, nstd);
    emu.regs_mut().rax = nstd as u64;
}