def rule(event):
    if all(
        [
            any(
                [
                    "\\Microsoft\\Windows NT\\CurrentVersion\\Event Viewer\\MicrosoftRedirectionProgram"
                    in event.deep_get("TargetObject", default=""),
                    "\\Microsoft\\Windows NT\\CurrentVersion\\Event Viewer\\MicrosoftRedirectionURL"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
            not any(
                [
                    all(
                        [
                            event.deep_get("Image", default="").endswith(
                                "C:\\WINDOWS\\system32\\svchost.exe"
                            ),
                            event.deep_get("TargetObject", default="").endswith(
                                "\\Microsoft\\Windows NT\\CurrentVersion\\Event Viewer\\MicrosoftRedirectionProgram"
                            ),
                            event.deep_get("Details", default="")
                            == "%%SystemRoot%%\\PCHealth\\HelpCtr\\Binaries\\HelpCtr.exe",
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith(
                                "C:\\WINDOWS\\system32\\svchost.exe"
                            ),
                            event.deep_get("TargetObject", default="").endswith(
                                "\\Microsoft\\Windows NT\\CurrentVersion\\Event Viewer\\MicrosoftRedirectionProgramCommandLineParameters"
                            ),
                            event.deep_get("Details", default="")
                            == "-url hcp://services/centers/support?topic=%%s",
                        ]
                    ),
                    event.deep_get("Details", default="")
                    == "http://go.microsoft.com/fwlink/events.asp",
                    event.deep_get("Details", default="") == "(Empty)",
                ]
            ),
        ]
    ):
        return True
    return False
