def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\reg.exe"),
                    event.deep_get("OriginalFileName", default="") == "reg.exe",
                ]
            ),
            "Microsoft\\Windows\\WindowsAI" in event.deep_get("CommandLine", default=""),
            "DisableAIDataAnalysis" in event.deep_get("CommandLine", default=""),
            any(
                [
                    any(
                        [
                            "add" in event.deep_get("CommandLine", default=""),
                            "0" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    "delete" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
