def rule(event):
    if all(
        [
            "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\"
            in event.deep_get("TargetObject", default=""),
            event.deep_get("TargetObject", default="").endswith("\\Enabled"),
            event.deep_get("Details", default="") == "DWORD (0x00000000)",
            not any(
                [
                    event.deep_get("Image", default="") == "C:\\Windows\\system32\\wevtutil.exe",
                    all(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Windows\\winsxs\\"),
                            event.deep_get("Image", default="").endswith("\\TiWorker.exe"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="")
                            == "C:\\Windows\\System32\\svchost.exe",
                            any(
                                [
                                    "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\Microsoft-Windows-FileInfoMinifilter"
                                    in event.deep_get("TargetObject", default=""),
                                    "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\Microsoft-Windows-ASN1\\"
                                    in event.deep_get("TargetObject", default=""),
                                    "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\Microsoft-Windows-Kernel-AppCompat\\"
                                    in event.deep_get("TargetObject", default=""),
                                    "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\Microsoft-Windows-Runtime\\Error\\"
                                    in event.deep_get("TargetObject", default=""),
                                    "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\Microsoft-Windows-CAPI2/Operational\\"
                                    in event.deep_get("TargetObject", default=""),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="")
                            == "C:\\Windows\\servicing\\TrustedInstaller.exe",
                            "\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Channels\\Microsoft-Windows-Compat-Appraiser"
                            in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="") == "",
                    event.deep_get("Image", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
