def rule(event):
    if all(
        [
            "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\"
            in event.deep_get("TargetObject", default=""),
            not any(
                [
                    event.deep_get("Details", default="") == "(Empty)",
                    event.deep_get("Details", default="") == "",
                    any(
                        [
                            "Microsoft\\Windows\\UpdateOrchestrator"
                            in event.deep_get("TargetObject", default=""),
                            "Microsoft\\Windows\\SoftwareProtectionPlatform\\SvcRestartTask\\Index"
                            in event.deep_get("TargetObject", default=""),
                            "Microsoft\\Windows\\Flighting\\OneSettings\\RefreshCache\\Index"
                            in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith(
                        "C:\\Windows\\System32\\MoUsoCoreWorker.exe"
                    ),
                    event.deep_get("Image", default="").endswith(
                        "C:\\Windows\\System32\\services.exe"
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Windows\\"),
                            event.deep_get("Image", default="").endswith("\\TiWorker.exe"),
                        ]
                    ),
                    event.deep_get("Image", default="") == "C:\\WINDOWS\\system32\\svchost.exe",
                    all(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\Windows\\Microsoft.NET\\Framework"
                            ),
                            event.deep_get("Image", default="").endswith("\\ngen.exe"),
                            any(
                                [
                                    "\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\Tasks\\{B66B135D-DA06-4FC4-95F8-7458E1D10129}"
                                    in event.deep_get("TargetObject", default=""),
                                    "\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\Tree\\Microsoft\\Windows\\.NET Framework\\.NET Framework NGEN"
                                    in event.deep_get("TargetObject", default=""),
                                ]
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files\\Microsoft Office\\root\\Integration\\Integrator.exe",
                        "C:\\Program Files (x86)\\Microsoft Office\\root\\Integration\\Integrator.exe",
                        "C:\\Program Files\\Common Files\\microsoft shared\\ClickToRun\\OfficeC2RClient.exe",
                        "C:\\Program Files (x86)\\Common Files\\microsoft shared\\ClickToRun\\OfficeC2RClient.exe",
                    ],
                    event.deep_get("Image", default="") == "C:\\Windows\\System32\\msiexec.exe",
                    all(
                        [
                            event.deep_get("Image", default="") == "C:\\Windows\\explorer.exe",
                            "\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\Tree\\Microsoft\\Windows\\PLA\\Server Manager Performance Monitor\\"
                            in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                    event.deep_get("Image", default="") == "System",
                    event.deep_get("Image", default="")
                    == "C:\\Windows\\System32\\RuntimeBroker.exe",
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files (x86)\\Dropbox\\Update\\DropboxUpdate.exe",
                        "C:\\Program Files\\Dropbox\\Update\\DropboxUpdate.exe",
                    ],
                    any(
                        [
                            event.deep_get("Image", default="").endswith(
                                "C:\\Program Files (x86)\\Microsoft\\EdgeUpdate\\MicrosoftEdgeUpdate.exe"
                            ),
                            event.deep_get("Image", default="").endswith(
                                "C:\\Program Files\\Microsoft\\EdgeUpdate\\MicrosoftEdgeUpdate.exe"
                            ),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("Image", default="").endswith(
                                "C:\\Program Files (x86)\\Microsoft OneDrive\\OneDrive.exe"
                            ),
                            event.deep_get("Image", default="").endswith(
                                "C:\\Program Files\\Microsoft OneDrive\\OneDrive.exe"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
