libmwemu 0.24.5

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
17
use crate::{emu::Emu, threading::context::ArchThreadState};

impl Emu {
    pub fn fls(&self) -> &Vec<u32> {
        match &self.threads[self.current_thread_id].arch {
            ArchThreadState::X86 { fls, .. } => fls,
            _ => panic!("fls() called on aarch64 emu"),
        }
    }

    pub fn fls_mut(&mut self) -> &mut Vec<u32> {
        match &mut self.threads[self.current_thread_id].arch {
            ArchThreadState::X86 { fls, .. } => fls,
            _ => panic!("fls_mut() called on aarch64 emu"),
        }
    }
}