def rule(event):
    if all(
        [
            "\\Notepad++\\plugins\\" in event.deep_get("TargetFilename", default=""),
            event.deep_get("TargetFilename", default="").endswith(".dll"),
            not any(
                [
                    event.deep_get("Image", default="").endswith("\\Notepad++\\updater\\gup.exe"),
                    all(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Users\\"),
                            "\\AppData\\Local\\Temp\\" in event.deep_get("Image", default=""),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("\\target.exe"),
                                    event.deep_get("Image", default="").endswith(
                                        "Installer.x64.exe"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            "\\npp." in event.deep_get("Image", default=""),
                            event.deep_get("Image", default="").endswith(".exe"),
                            event.deep_get("TargetFilename", default="")
                            in [
                                "C:\\Program Files\\Notepad++\\plugins\\NppExport\\NppExport.dll",
                                "C:\\Program Files\\Notepad++\\plugins\\mimeTools\\mimeTools.dll",
                                "C:\\Program Files\\Notepad++\\plugins\\NppConverter\\NppConverter.dll",
                                "C:\\Program Files\\Notepad++\\plugins\\Config\\nppPluginList.dll",
                            ],
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
