def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\rdrleakdiag.exe"),
                    event.deep_get("OriginalFileName", default="") == "RdrLeakDiag.exe",
                ]
            ),
            any(
                [
                    any(
                        [
                            "-memdmp" in event.deep_get("CommandLine", default=""),
                            "/memdmp" in event.deep_get("CommandLine", default=""),
                            "–memdmp" in event.deep_get("CommandLine", default=""),
                            "—memdmp" in event.deep_get("CommandLine", default=""),
                            "―memdmp" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    "fullmemdmp" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            " -o " in event.deep_get("CommandLine", default=""),
                            " /o " in event.deep_get("CommandLine", default=""),
                            " –o " in event.deep_get("CommandLine", default=""),
                            " —o " in event.deep_get("CommandLine", default=""),
                            " ―o " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " -p " in event.deep_get("CommandLine", default=""),
                            " /p " in event.deep_get("CommandLine", default=""),
                            " –p " in event.deep_get("CommandLine", default=""),
                            " —p " in event.deep_get("CommandLine", default=""),
                            " ―p " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
