This commit is contained in:
Huoji's
2025-03-18 22:04:39 +08:00
parent 53a4782b7a
commit 9a44f20d5c
5 changed files with 59 additions and 29 deletions

View File

@@ -947,6 +947,8 @@ auto Sandbox::EmulateApi(uc_engine* uc, uint64_t address, uint64_t rip,
rsp += 8;
// 设置RIP为返回地址
uc_reg_write(uc, UC_X86_REG_RIP, &return_address);
printf("ApiName set ip: %llx \n", return_address);
} else { // 32位系统
// 读取4字节的返回地址
uc_reg_read(uc, UC_X86_REG_ESP, &esp);