![]() |
miasm
Reverse engineering framework
|
#include <Python.h>#include "structmember.h"#include <stdint.h>#include <inttypes.h>#include <signal.h>#include "compat_py23.h"#include "queue.h"#include "vm_mngr.h"#include "bn.h"#include "vm_mngr_py.h"
Macros | |
| #define | MIN(a, b) (((a)<(b))?(a):(b)) |
| #define | MAX(a, b) (((a)>(b))?(a):(b)) |
| #define | RAISE(errtype, msg) {PyObject* p; p = PyErr_Format( errtype, msg ); return p;} |
Functions | |
| PyObject * | _vm_get_exception (unsigned int xcpt) |
| PyObject * | set_alarm (VmMngr *self) |
| PyObject * | vm_add_memory_page (VmMngr *self, PyObject *args) |
| PyObject * | vm_remove_memory_page (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_mem_access (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_mem (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_mem_access (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_mem (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_u8 (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_u16 (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_u32 (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_u64 (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_u8 (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_u16 (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_u32 (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_u64 (VmMngr *self, PyObject *args) |
| PyObject * | vm_add_memory_breakpoint (VmMngr *self, PyObject *args) |
| PyObject * | vm_remove_memory_breakpoint (VmMngr *self, PyObject *args) |
| PyObject * | vm_set_exception (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_exception (VmMngr *self, PyObject *args) |
| PyObject * | vm_init_memory_page_pool (VmMngr *self, PyObject *args) |
| PyObject * | vm_init_code_bloc_pool (VmMngr *self, PyObject *args) |
| PyObject * | vm_init_memory_breakpoint (VmMngr *self, PyObject *args) |
| PyObject * | vm_reset_memory_breakpoint (VmMngr *self, PyObject *args) |
| PyObject * | vm_reset_memory_access (VmMngr *self, PyObject *args) |
| PyObject * | py_add_mem_read (VmMngr *self, PyObject *args) |
| PyObject * | py_add_mem_write (VmMngr *self, PyObject *args) |
| PyObject * | vm_check_invalid_code_blocs (VmMngr *self, PyObject *args) |
| PyObject * | vm_check_memory_breakpoint (VmMngr *self, PyObject *args) |
| PyObject * | vm_dump (PyObject *self) |
| PyObject * | vm_dump_memory_breakpoint (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_all_memory (VmMngr *self, PyObject *args) |
| PyObject * | vm_reset_memory_page_pool (VmMngr *self, PyObject *args) |
| PyObject * | vm_reset_code_bloc_pool (VmMngr *self, PyObject *args) |
| PyObject * | vm_add_code_bloc (VmMngr *self, PyObject *args) |
| PyObject * | vm_dump_code_bloc_pool (VmMngr *self) |
| PyObject * | vm_is_mapped (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_memory_read (VmMngr *self, PyObject *args) |
| PyObject * | vm_get_memory_write (VmMngr *self, PyObject *args) |
| MOD_INIT (VmMngr) | |
| bn_t | PyLong_to_bn (PyObject *py_long) |
| PyObject * | bn_to_PyLong (bn_t bn) |
Variables | |
| struct memory_page_list_head | memory_page_pool |
| struct code_bloc_list_head | code_bloc_pool |
| VmMngr * | global_vmmngr |
| char | vm_mngr_mod_docs [] = "vm_mngr module." |
| char | vm_mngr_mod_name [] = "VmMngr" |
| #define MAX | ( | a, | |
| b | |||
| ) | (((a)>(b))?(a):(b)) |
| #define MIN | ( | a, | |
| b | |||
| ) | (((a)<(b))?(a):(b)) |
| #define RAISE | ( | errtype, | |
| msg | |||
| ) | {PyObject* p; p = PyErr_Format( errtype, msg ); return p;} |
| PyObject* _vm_get_exception | ( | unsigned int | xcpt | ) |
| PyObject* bn_to_PyLong | ( | bn_t | bn | ) |

| MOD_INIT | ( | VmMngr | ) |
| PyObject* py_add_mem_read | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* py_add_mem_write | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| bn_t PyLong_to_bn | ( | PyObject * | py_long | ) |


| PyObject* set_alarm | ( | VmMngr * | self | ) |
| PyObject* vm_add_code_bloc | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_add_memory_breakpoint | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_add_memory_page | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_check_invalid_code_blocs | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_check_memory_breakpoint | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_dump | ( | PyObject * | self | ) |

| PyObject* vm_dump_code_bloc_pool | ( | VmMngr * | self | ) |

| PyObject* vm_dump_memory_breakpoint | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_all_memory | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |
| PyObject* vm_get_exception | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |
| PyObject* vm_get_mem | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_mem_access | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_memory_read | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_memory_write | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_u16 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_u32 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_u64 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_get_u8 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_init_code_bloc_pool | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_init_memory_breakpoint | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_init_memory_page_pool | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_is_mapped | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_remove_memory_breakpoint | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_remove_memory_page | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_reset_code_bloc_pool | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_reset_memory_access | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_reset_memory_breakpoint | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_reset_memory_page_pool | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_set_exception | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |
| PyObject* vm_set_mem | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_set_mem_access | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_set_u16 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_set_u32 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_set_u64 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

| PyObject* vm_set_u8 | ( | VmMngr * | self, |
| PyObject * | args | ||
| ) |

|
extern |
| VmMngr* global_vmmngr |
|
extern |
| char vm_mngr_mod_docs[] = "vm_mngr module." |
| char vm_mngr_mod_name[] = "VmMngr" |