def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\expand.exe"),
            any(
                [
                    "-F:" in event.deep_get("CommandLine", default=""),
                    "/F:" in event.deep_get("CommandLine", default=""),
                    "–F:" in event.deep_get("CommandLine", default=""),
                    "—F:" in event.deep_get("CommandLine", default=""),
                    "―F:" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            ":\\Perflogs\\" in event.deep_get("CommandLine", default=""),
                            ":\\ProgramData" in event.deep_get("CommandLine", default=""),
                            ":\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                            ":\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                            "\\Admin$\\" in event.deep_get("CommandLine", default=""),
                            "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
                            "\\AppData\\Roaming\\" in event.deep_get("CommandLine", default=""),
                            "\\C$\\" in event.deep_get("CommandLine", default=""),
                            "\\Temporary Internet" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            all(
                                [
                                    ":\\Users\\" in event.deep_get("CommandLine", default=""),
                                    "\\Favorites\\" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                            all(
                                [
                                    ":\\Users\\" in event.deep_get("CommandLine", default=""),
                                    "\\Favourites\\" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                            all(
                                [
                                    ":\\Users\\" in event.deep_get("CommandLine", default=""),
                                    "\\Contacts\\" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
            not all(
                [
                    event.deep_get("ParentImage", default="")
                    == "C:\\Program Files (x86)\\Dell\\UpdateService\\ServiceShell.exe",
                    "C:\\ProgramData\\Dell\\UpdateService\\Temp\\"
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
