A very rough x64 POC for spoofing environment variables (similar to argument spoofing) with a focus on setting the COMPlus_ETWEnabled=0 var used to disable ETW in .NET · GitHub

https://gist.github.com/xpn/64e5b6f7ad370c343e3ab7e9f9e22503