import re


def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\wget.exe"),
                    event.deep_get("OriginalFileName", default="") == "wget.exe",
                ]
            ),
            re.match(
                r"://[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}",
                event.deep_get("CommandLine", default=""),
            ),
            "http" in event.deep_get("CommandLine", default=""),
            any(
                [
                    re.match(r"\\s-O\\s", event.deep_get("CommandLine", default="")),
                    "--output-document" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            ":\\PerfLogs\\" in event.deep_get("CommandLine", default=""),
                            ":\\Temp\\" in event.deep_get("CommandLine", default=""),
                            ":\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                            ":\\Windows\\Help\\" in event.deep_get("CommandLine", default=""),
                            ":\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                            "\\Temporary Internet" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    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=""),
                        ]
                    ),
                    all(
                        [
                            ":\\Users\\" in event.deep_get("CommandLine", default=""),
                            "\\Pictures\\" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
