def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\DumpMinitool.exe"),
                            event.deep_get("Image", default="").endswith("\\DumpMinitool.x86.exe"),
                            event.deep_get("Image", default="").endswith(
                                "\\DumpMinitool.arm64.exe"
                            ),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="")
                    in ["DumpMinitool.exe", "DumpMinitool.x86.exe", "DumpMinitool.arm64.exe"],
                ]
            ),
            any(
                [
                    not any(
                        [
                            "\\Microsoft Visual Studio\\" in event.deep_get("Image", default=""),
                            "\\Extensions\\" in event.deep_get("Image", default=""),
                        ]
                    ),
                    ".txt" in event.deep_get("CommandLine", default=""),
                    all(
                        [
                            any(
                                [
                                    " Full" in event.deep_get("CommandLine", default=""),
                                    " Mini" in event.deep_get("CommandLine", default=""),
                                    " WithHeap" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                            not "--dumpType" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
