def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentCommandLine", default="").startswith(
                        "C:\\Windows\\System32\\"
                    ),
                    event.deep_get("ParentCommandLine", default="").startswith(
                        "C:\\Windows\\SysWOW64\\"
                    ),
                ]
            ),
            event.deep_get("ParentCommandLine", default="").endswith(".exe"),
            any(
                [
                    all(
                        [
                            "/c" in event.deep_get("CommandLine", default=""),
                            "del" in event.deep_get("CommandLine", default=""),
                            "C:\\Users\\" in event.deep_get("CommandLine", default=""),
                            "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "/c" in event.deep_get("CommandLine", default=""),
                            "del" in event.deep_get("CommandLine", default=""),
                            "C:\\Users\\" in event.deep_get("CommandLine", default=""),
                            "\\Desktop\\" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "/C" in event.deep_get("CommandLine", default=""),
                            "type nul >" in event.deep_get("CommandLine", default=""),
                            "C:\\Users\\" in event.deep_get("CommandLine", default=""),
                            "\\Desktop\\" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            event.deep_get("CommandLine", default="").endswith(".exe"),
        ]
    ):
        return True
    return False
