def rule(event):
    if any(
        [
            all(
                [
                    any(
                        [
                            "7z.exe a -v500m -mx9 -r0 -p"
                            in event.deep_get("CommandLine", default=""),
                            "7z.exe a -mx9 -r0 -p" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    ".zip" in event.deep_get("CommandLine", default=""),
                    ".txt" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    any(
                        [
                            "7z.exe a -v500m -mx9 -r0 -p"
                            in event.deep_get("CommandLine", default=""),
                            "7z.exe a -mx9 -r0 -p" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    ".zip" in event.deep_get("CommandLine", default=""),
                    ".log" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "wscript.exe" in event.deep_get("ParentCommandLine", default=""),
                    ".vbs" in event.deep_get("ParentCommandLine", default=""),
                    "rundll32.exe" in event.deep_get("CommandLine", default=""),
                    "C:\\Windows" in event.deep_get("CommandLine", default=""),
                    ".dll,Tk_" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\rundll32.exe"),
                    "C:\\Windows" in event.deep_get("ParentCommandLine", default=""),
                    ".dll" in event.deep_get("ParentCommandLine", default=""),
                    "cmd.exe /C " in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\rundll32.exe"),
                    event.deep_get("Image", default="").endswith("\\dllhost.exe"),
                    event.deep_get("CommandLine", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
