AV engines evasion techniques and tricks: too much memory allocation, check machine resources, IsDebuggerPresent, check NUMA memory alllocate, etc. Simple C++ malware example.
https://cocomelonc.github.io/tutorial/2021/12/25/simple-malware-av-evasion-3.html