mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Patching demo
This commit is contained in:
@@ -93,6 +93,20 @@ namespace
|
||||
win_emu.logger.print(color::blue, "Executing inline syscall: %s (0x%X) at 0x%llX\n",
|
||||
syscall_name.c_str(),
|
||||
syscall_id, rip);
|
||||
|
||||
/*if (syscall_name == "NtQueryInformationProcess")
|
||||
{
|
||||
const auto info_class = win_emu.emu().reg(x64_register::rdx);
|
||||
if (info_class == ProcessImageFileNameWin32)
|
||||
{
|
||||
const auto data = win_emu.emu().reg(x64_register::r8);
|
||||
|
||||
emulator_allocator data_allocator{ win_emu.emu(), data, 0x100 };
|
||||
data_allocator.make_unicode_string(L"C:\\Users\\mauri\\source\\repos\\lul\\x64\\Release\\lul.exe");
|
||||
win_emu.emu().reg(x64_register::rax, STATUS_SUCCESS);
|
||||
return instruction_hook_continuation::skip_instruction;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
return instruction_hook_continuation::run_instruction;
|
||||
|
||||
Reference in New Issue
Block a user