def rule(event):
    if all(
        [
            "SHELL32.DLL" in event.deep_get("ParentCommandLine", default=""),
            any(
                [
                    "#568" in event.deep_get("ParentCommandLine", default=""),
                    "#570" in event.deep_get("ParentCommandLine", default=""),
                    "#572" in event.deep_get("ParentCommandLine", default=""),
                    "#576" in event.deep_get("ParentCommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            any(
                                [
                                    "comspec" in event.deep_get("ParentCommandLine", default=""),
                                    "iex" in event.deep_get("ParentCommandLine", default=""),
                                    "Invoke-" in event.deep_get("ParentCommandLine", default=""),
                                    "msiexec" in event.deep_get("ParentCommandLine", default=""),
                                    "odbcconf" in event.deep_get("ParentCommandLine", default=""),
                                    "regsvr32" in event.deep_get("ParentCommandLine", default=""),
                                ]
                            ),
                            any(
                                [
                                    "\\Desktop\\"
                                    in event.deep_get("ParentCommandLine", default=""),
                                    "\\ProgramData\\"
                                    in event.deep_get("ParentCommandLine", default=""),
                                    "\\Temp\\" in event.deep_get("ParentCommandLine", default=""),
                                    "\\Users\\Public\\"
                                    in event.deep_get("ParentCommandLine", default=""),
                                ]
                            ),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\bash.exe"),
                            event.deep_get("Image", default="").endswith("\\bitsadmin.exe"),
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            event.deep_get("Image", default="").endswith("\\cscript.exe"),
                            event.deep_get("Image", default="").endswith("\\curl.exe"),
                            event.deep_get("Image", default="").endswith("\\mshta.exe"),
                            event.deep_get("Image", default="").endswith("\\msiexec.exe"),
                            event.deep_get("Image", default="").endswith("\\msxsl.exe"),
                            event.deep_get("Image", default="").endswith("\\odbcconf.exe"),
                            event.deep_get("Image", default="").endswith("\\powershell.exe"),
                            event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                            event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                            event.deep_get("Image", default="").endswith("\\schtasks.exe"),
                            event.deep_get("Image", default="").endswith("\\wmic.exe"),
                            event.deep_get("Image", default="").endswith("\\wscript.exe"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
