Skip to content

Commit

Permalink
Add filter for VBCrypter anti-ntdll-write protection as it breaks Ice…
Browse files Browse the repository at this point in the history
…dID.
  • Loading branch information
kevoreilly committed Mar 26, 2019
1 parent 5052658 commit f4fe2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ HOOKDEF(NTSTATUS, WINAPI, NtProtectVirtualMemory,
PTRACKEDREGION TrackedRegion;
#endif

if (NewAccessProtection == PAGE_EXECUTE_READWRITE && BaseAddress && NumberOfBytesToProtect &&
if (NewAccessProtection == PAGE_EXECUTE_READWRITE && BaseAddress && NumberOfBytesToProtect && *NumberOfBytesToProtect >= 0x2000 &&
GetCurrentProcessId() == our_getprocessid(ProcessHandle) && is_in_dll_range((ULONG_PTR)*BaseAddress)) {
unsigned int offset;
char *dllname = convert_address_to_dll_name_and_offset((ULONG_PTR)*BaseAddress, &offset);
Expand Down

0 comments on commit f4fe2d5

Please sign in to comment.