def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\certutil.exe"),
                    event.deep_get("OriginalFileName", default="") == "CertUtil.exe",
                ]
            ),
            any(
                [
                    any(
                        [
                            "-decode " in event.deep_get("CommandLine", default=""),
                            "/decode " in event.deep_get("CommandLine", default=""),
                            "–decode " in event.deep_get("CommandLine", default=""),
                            "—decode " in event.deep_get("CommandLine", default=""),
                            "―decode " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-decodehex " in event.deep_get("CommandLine", default=""),
                            "/decodehex " in event.deep_get("CommandLine", default=""),
                            "–decodehex " in event.deep_get("CommandLine", default=""),
                            "—decodehex " in event.deep_get("CommandLine", default=""),
                            "―decodehex " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
