DeviceProcessEvents | where (FolderPath endswith "\\reg.exe" or ProcessVersionInfoOriginalFileName =~ "reg.exe") and (ProcessCommandLine contains " save " or ProcessCommandLine contains " export " or ProcessCommandLine contains " ˢave " or ProcessCommandLine contains " eˣport ") and ProcessCommandLine matches regex "(?i)(hk[l˪]m|hkey_[l˪]oca[l˪]_machine)\"?\\\\[sˢ](y[sˢ]tem|am|ecurity)(\\\\|\"|\\s|$)"