def rule(event):
    if all(
        [
            "Execute" in event.deep_get("CommandLine", default=""),
            "CreateObject" in event.deep_get("CommandLine", default=""),
            "RegRead" in event.deep_get("CommandLine", default=""),
            "window.close" in event.deep_get("CommandLine", default=""),
            "\\Microsoft\\Windows\\CurrentVersion" in event.deep_get("CommandLine", default=""),
            not "\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
            in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
