def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ImageLoaded", default="").endswith("\\fastprox.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\wbemcomn.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\wbemprox.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\wbemsvc.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\WmiApRpl.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\wmiclnt.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\WMINet_Utils.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\wmiprov.dll"),
                    event.deep_get("ImageLoaded", default="").endswith("\\wmiutils.dll"),
                ]
            ),
            not any(
                [
                    ":\\Program Files (x86)\\" in event.deep_get("Image", default=""),
                    ":\\Program Files\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\explorer.exe" in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\Framework\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\FrameworkArm\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\FrameworkArm64\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\Framework64\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\System32\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\SysWOW64\\" in event.deep_get("Image", default=""),
                ]
            ),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith(
                                "\\WindowsAzureGuestAgent.exe"
                            ),
                            event.deep_get("Image", default="").endswith("\\WaAppAgent.exe"),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\thor.exe"),
                            event.deep_get("Image", default="").endswith("\\thor64.exe"),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith("\\MsMpEng.exe"),
                    any(
                        [
                            "\\Microsoft\\Teams\\current\\Teams.exe"
                            in event.deep_get("Image", default=""),
                            "\\Microsoft\\Teams\\Update.exe" in event.deep_get("Image", default=""),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("Image", default="").endswith(":\\Windows\\Sysmon.exe"),
                            event.deep_get("Image", default="").endswith(
                                ":\\Windows\\Sysmon64.exe"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
