def rule(event):
    if all(
        [
            event.deep_get("TargetObject", default="").endswith(
                "\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Compatibility Assistant\\Store\\C:\\Program Files\\Windows Media Player\\osk.exe"
            ),
            event.deep_get("Details", default="") == "Binary Data",
        ]
    ):
        return True
    return False
