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

pub fn GetConsoleMode(emu: &mut emu::Emu) {
    let h_console_handle = emu.regs().rcx;
    let lp_mode = emu.regs().rdx as usize;
    log_red!(
        emu,
        "** {} kernel32!GetConsoleMode {:x} {:x}",
        emu.pos,
        h_console_handle,
        lp_mode
    );
    // TODO: implement this
    emu.maps.write_dword(lp_mode as u64, 0x00000003); //TODO: not sure what this is
    emu.regs_mut().rax = 1;
}