def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\rcedit-x64.exe"),
                            event.deep_get("Image", default="").endswith("\\rcedit-x86.exe"),
                        ]
                    ),
                    event.deep_get("Description", default="") == "Edit resources of exe",
                    event.deep_get("Product", default="") == "rcedit",
                ]
            ),
            "--set-" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "OriginalFileName" in event.deep_get("CommandLine", default=""),
                    "CompanyName" in event.deep_get("CommandLine", default=""),
                    "FileDescription" in event.deep_get("CommandLine", default=""),
                    "ProductName" in event.deep_get("CommandLine", default=""),
                    "ProductVersion" in event.deep_get("CommandLine", default=""),
                    "LegalCopyright" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
