def rule(event):
    if all(
        [
            "process " in event.deep_get("CommandLine", default=""),
            "call " in event.deep_get("CommandLine", default=""),
            "create " in event.deep_get("CommandLine", default=""),
            any(
                [
                    "rundll32" in event.deep_get("CommandLine", default=""),
                    "bitsadmin" in event.deep_get("CommandLine", default=""),
                    "regsvr32" in event.deep_get("CommandLine", default=""),
                    "cmd.exe /c " in event.deep_get("CommandLine", default=""),
                    "cmd.exe /k " in event.deep_get("CommandLine", default=""),
                    "cmd.exe /r " in event.deep_get("CommandLine", default=""),
                    "cmd /c " in event.deep_get("CommandLine", default=""),
                    "cmd /k " in event.deep_get("CommandLine", default=""),
                    "cmd /r " in event.deep_get("CommandLine", default=""),
                    "powershell" in event.deep_get("CommandLine", default=""),
                    "pwsh" in event.deep_get("CommandLine", default=""),
                    "certutil" in event.deep_get("CommandLine", default=""),
                    "cscript" in event.deep_get("CommandLine", default=""),
                    "wscript" in event.deep_get("CommandLine", default=""),
                    "mshta" in event.deep_get("CommandLine", default=""),
                    "\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local\\" in event.deep_get("CommandLine", default=""),
                    "%temp%" in event.deep_get("CommandLine", default=""),
                    "%tmp%" in event.deep_get("CommandLine", default=""),
                    "%ProgramData%" in event.deep_get("CommandLine", default=""),
                    "%appdata%" in event.deep_get("CommandLine", default=""),
                    "%comspec%" in event.deep_get("CommandLine", default=""),
                    "%localappdata%" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
