I used SysWhispers2, so it should work for all versions of Windows. This is of course to bypass userland hooks. VirtualProtect is likely to get denied by an EDR
Confirmed works now.