2025-03-06 04:05:03 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "sandbox.h"
|
|
|
|
|
namespace sandboxCallbacks {
|
2025-03-06 18:39:01 +08:00
|
|
|
void handleCodeRun(uc_engine* uc, uint64_t address, uint32_t size,
|
2025-03-07 01:47:01 +08:00
|
|
|
void* userData);
|
2025-04-23 04:47:01 +08:00
|
|
|
void handleApiCall(uc_engine* uc, uint64_t address, uint32_t size, void* userData);
|
2025-03-06 18:39:01 +08:00
|
|
|
void handleMemoryRead(uc_engine* uc, uc_mem_type type, uint64_t address,
|
2025-03-07 01:47:01 +08:00
|
|
|
int size, int64_t value, void* userData);
|
|
|
|
|
void handleMemoryUnmapRead(uc_engine* uc, uc_mem_type type, uint64_t address,
|
|
|
|
|
int size, int64_t value, void* userData);
|
2025-03-06 18:39:01 +08:00
|
|
|
void handleMemoryWrite(uc_engine* uc, uc_mem_type type, uint64_t address,
|
2025-03-07 01:47:01 +08:00
|
|
|
int size, int64_t value, void* userData);
|
2025-03-06 18:39:01 +08:00
|
|
|
void handleSyscall(uc_engine* uc, void* userData);
|
|
|
|
|
auto InitApiHooks() -> void;
|
2025-03-07 01:47:01 +08:00
|
|
|
void dumpVmenv(uc_engine* uc, void* userData);
|
2025-03-06 18:39:01 +08:00
|
|
|
}; // namespace sandboxCallbacks
|