Protect Windows guest red zones when emulating VRSQRTPS

This commit is contained in:
nmzik committed 2026-09-16 06:52:36 +02:00
1 parent 77680ce9d2
commit 86e5e01403
8 files changed
+700 -507

No files matched your search

+3
View File
@@ -1,10 +1,13 @@
#ifndef KYTY_LOADER_X64_INSTRUCTION_EMULATOR_H_
#define KYTY_LOADER_X64_INSTRUCTION_EMULATOR_H_
#include <Zydis/DecoderTypes.h>
#include <cstdint>
namespace Loader::X64InstructionEmulator {
[[nodiscard]] bool IsReciprocalSquareRoot(const ZydisDecodedInstruction& instruction,
const ZydisDecodedOperand* operands);
uint64_t PatchReciprocalSquareRoots(uint64_t address, uint64_t size);
[[nodiscard]] bool TryEmulate(void* native_context);