Microsoft's Anti-Malware Software Interface (AMSI) can play a particularly important role in keeping Windows 10 and Windows Server systems from being compromised. But AMSI is not a panacea. Attackers are continuously finding ways to obfuscate and conceal malicious content from anti-malware signature detections.
https://news.sophos.com/en-us/2021/06/02/amsi-bypasses-remain-tricks-of-the-malware-trade/