def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\gup.exe"),
            not any(
                [
                    any(
                        [
                            event.deep_get("TargetFilename", default="").startswith(
                                "C:\\Program Files\\Notepad++\\"
                            ),
                            event.deep_get("TargetFilename", default="").startswith(
                                "C:\\Program Files (x86)\\Notepad++\\"
                            ),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("TargetFilename", default="").startswith("C:\\Users\\"),
                            "\\AppData\\Local\\Temp\\"
                            in event.deep_get("TargetFilename", default=""),
                            "npp." in event.deep_get("TargetFilename", default=""),
                            ".Installer." in event.deep_get("TargetFilename", default=""),
                            ".exe" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("TargetFilename", default="").startswith("C:\\Users\\"),
                            "\\AppData\\Local\\Temp\\"
                            in event.deep_get("TargetFilename", default=""),
                            ".zip" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                    event.deep_get("TargetFilename", default="").startswith(
                        "C:\\$Recycle.Bin\\S-1-5-21"
                    ),
                    any(
                        [
                            any(
                                [
                                    "\\plugins\\JsonTools\\testfiles\\"
                                    in event.deep_get("TargetFilename", default=""),
                                    "\\Notepad++\\plugins\\ComparePlugin\\"
                                    in event.deep_get("TargetFilename", default=""),
                                ]
                            ),
                            all(
                                [
                                    "npp." in event.deep_get("TargetFilename", default=""),
                                    ".portable." in event.deep_get("TargetFilename", default=""),
                                    "\\plugins\\" in event.deep_get("TargetFilename", default=""),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
