diff --git a/src/vmaware.hpp b/src/vmaware.hpp index 792fd8c5..97841c9d 100644 --- a/src/vmaware.hpp +++ b/src/vmaware.hpp @@ -11797,7 +11797,7 @@ struct VM { [[nodiscard]] static bool msr() { #if (!x86) return false; - #endif + #else constexpr u32 random_msr = 0xDEADBEEFu; auto try_read = [](u32 msr_index) -> bool { @@ -11849,6 +11849,7 @@ struct VM { } return false; + #endif } @@ -11861,7 +11862,7 @@ struct VM { [[nodiscard]] static bool kvm_interception() { #if (!x86) return false; - #endif + #else using nt_allocate_virtual_memory_t = NTSTATUS(__stdcall*)(HANDLE, PVOID*, ULONG_PTR, PSIZE_T, ULONG, ULONG); using nt_protect_virtual_memory_t = NTSTATUS(__stdcall*)(HANDLE, PVOID*, PSIZE_T, ULONG, PULONG); using nt_free_virtual_memory_t = NTSTATUS(__stdcall*)(HANDLE, PVOID*, PSIZE_T, ULONG); @@ -11947,6 +11948,7 @@ struct VM { } return false; + #endif } @@ -11956,6 +11958,9 @@ struct VM { * @implements VM::BREAKPOINT */ [[nodiscard]] static bool breakpoint() { + #if (!x86) + return false; + #else const HMODULE ntdll = util::get_ntdll(); if (!ntdll) return false; @@ -12069,6 +12074,7 @@ struct VM { nt_free_virtual_memory(current_process, &dst_page, &free_size, MEM_RELEASE); return !ermsb_trap_detected; + #endif } // ADD NEW TECHNIQUE FUNCTION HERE #endif