update
This commit is contained in:
@@ -1497,7 +1497,7 @@ auto Sandbox::InitApiHooks() -> void {
|
||||
};
|
||||
}
|
||||
auto Sandbox::EmulateApi(uc_engine* uc, uint64_t address, uint64_t rip,
|
||||
std::string ApiName) -> void {
|
||||
std::string ApiName) -> bool {
|
||||
auto it = api_map.find(ApiName);
|
||||
if (it != api_map.end()) {
|
||||
it->second->func(this, uc, address);
|
||||
@@ -1545,9 +1545,9 @@ auto Sandbox::EmulateApi(uc_engine* uc, uint64_t address, uint64_t rip,
|
||||
uc_reg_write(uc, UC_X86_REG_ESP, &esp);
|
||||
}
|
||||
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
printf("ApiName: %s not found\n", ApiName.c_str());
|
||||
uc_emu_stop(uc);
|
||||
return;
|
||||
//uc_emu_stop(uc);
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user