import re


def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\explorer.exe"),
            event.deep_get("Image", default="").endswith("\\cmd.exe"),
            "/C " in event.deep_get("CommandLine", default=""),
            re.match(
                r"^.* >> .*\\AppData\\local\\temp\\.*.bin.*$",
                event.deep_get("CommandLine", default=""),
            ),
        ]
    ):
        return True
    return False
