libmwemu 0.25.2

x86 32/64bits and system internals emulator, for securely emulating malware and other stuff.
Documentation
use crate::emu;
use crate::winapi::winapi64::kernel32::load_library;

pub fn LoadLibraryA(emu: &mut emu::Emu) {
    let dllptr = emu.regs().rcx;
    let dll = emu.maps.read_string(dllptr);

    emu.regs_mut().rax = load_library(emu, &dll);

    if emu.cfg.verbose >= 1 {
        log_red!(
            emu,
            "** {} kernel32!LoadLibraryA  '{}' =0x{:x} rip: 0x{:x}",
            emu.pos,
            &dll,
            emu.regs().get_eax() as u32,
            emu.regs().rip
        );
    }
}