Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -11849,6 +11849,7 @@ struct VM {
}

return false;
#endif
}


Expand All @@ -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);
Expand Down Expand Up @@ -11947,6 +11948,7 @@ struct VM {
}

return false;
#endif
}


Expand All @@ -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;

Expand Down Expand Up @@ -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
Expand Down
Loading