@@ -11681,7 +11681,7 @@ struct VM {
1168111681 [[nodiscard]] static bool msr() {
1168211682 #if (!x86)
1168311683 return false;
11684- #endif
11684+ #else
1168511685 constexpr u32 random_msr = 0xDEADBEEFu;
1168611686
1168711687 auto try_read = [](u32 msr_index) -> bool {
@@ -11733,6 +11733,7 @@ struct VM {
1173311733 }
1173411734
1173511735 return false;
11736+ #endif
1173611737 }
1173711738
1173811739
@@ -11745,7 +11746,7 @@ struct VM {
1174511746 [[nodiscard]] static bool kvm_interception() {
1174611747 #if (!x86)
1174711748 return false;
11748- #endif
11749+ #else
1174911750 using nt_allocate_virtual_memory_t = NTSTATUS(__stdcall*)(HANDLE, PVOID*, ULONG_PTR, PSIZE_T, ULONG, ULONG);
1175011751 using nt_protect_virtual_memory_t = NTSTATUS(__stdcall*)(HANDLE, PVOID*, PSIZE_T, ULONG, PULONG);
1175111752 using nt_free_virtual_memory_t = NTSTATUS(__stdcall*)(HANDLE, PVOID*, PSIZE_T, ULONG);
@@ -11831,6 +11832,7 @@ struct VM {
1183111832 }
1183211833
1183311834 return false;
11835+ #endif
1183411836 }
1183511837
1183611838
@@ -11840,6 +11842,9 @@ struct VM {
1184011842 * @implements VM::BREAKPOINT
1184111843 */
1184211844 [[nodiscard]] static bool breakpoint() {
11845+ #if (!x86)
11846+ return false;
11847+ #else
1184311848 const HMODULE ntdll = util::get_ntdll();
1184411849 if (!ntdll) return false;
1184511850
@@ -11953,6 +11958,7 @@ struct VM {
1195311958 nt_free_virtual_memory(current_process, &dst_page, &free_size, MEM_RELEASE);
1195411959
1195511960 return !ermsb_trap_detected;
11961+ #endif
1195611962 }
1195711963 // ADD NEW TECHNIQUE FUNCTION HERE
1195811964 #if (CLANG)
0 commit comments