def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("Image", default="").endswith("\\svchost.exe"),
                    "C:\\Users\\" in event.deep_get("CommandLine", default=""),
                    "\\Desktop\\" in event.deep_get("CommandLine", default=""),
                    not event.deep_get("ParentImage", default="").startswith(
                        "C:\\Windows\\System32\\"
                    ),
                ]
            ),
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\excel.exe"),
                    event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                    any(
                        [
                            " -s " in event.deep_get("CommandLine", default=""),
                            "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    not ".dll" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\svchost.exe"),
                    any(
                        [
                            all(
                                [
                                    event.deep_get("Image", default="").endswith("\\whoami.exe"),
                                    " /all" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                            all(
                                [
                                    any(
                                        [
                                            event.deep_get("Image", default="").endswith(
                                                "\\net.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\net1.exe"
                                            ),
                                        ]
                                    ),
                                    " view" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
