def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\fltMC.exe"),
                    event.deep_get("OriginalFileName", default="") == "fltMC.exe",
                ]
            ),
            "unload" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    all(
                        [
                            any(
                                [
                                    "\\AppData\\Local\\Temp\\"
                                    in event.deep_get("ParentImage", default=""),
                                    ":\\Windows\\Temp\\"
                                    in event.deep_get("ParentImage", default=""),
                                ]
                            ),
                            event.deep_get("ParentImage", default="").endswith(
                                "\\endpoint-protection-installer-x64.tmp"
                            ),
                            any(
                                [
                                    event.deep_get("CommandLine", default="").endswith(
                                        "unload rtp_filesystem_filter"
                                    ),
                                    event.deep_get("CommandLine", default="").endswith(
                                        "unload rtp_filter"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("ParentImage", default="")
                            == "C:\\Program Files (x86)\\ManageEngine\\uems_agent\\bin\\dcfaservice64.exe",
                            event.deep_get("CommandLine", default="").endswith("unload DFMFilter"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
