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
use std::collections::BTreeMap;

use crate::emu::Emu;

impl Emu {
    pub fn fs(&self) -> &BTreeMap<u64, u64> {
        &self.threads[self.current_thread_id].fs
    }

    pub fn fs_mut(&mut self) -> &mut BTreeMap<u64, u64> {
        &mut self.threads[self.current_thread_id].fs
    }
}