def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").endswith("\\desktop.ini"),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Windows\\"),
                            event.deep_get("Image", default="").startswith("C:\\Program Files\\"),
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files (x86)\\"
                            ),
                        ]
                    ),
                    event.deep_get("TargetFilename", default="").startswith(
                        "C:\\$WINDOWS.~BT\\NewOS\\"
                    ),
                ]
            ),
            not any(
                [
                    all(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Users\\"),
                            event.deep_get("Image", default="").endswith(
                                "\\AppData\\Local\\JetBrains\\Toolbox\\bin\\7z.exe"
                            ),
                            "\\JetBrains\\apps\\" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Users\\"),
                            "\\AppData\\Local\\Microsoft\\OneDrive\\"
                            in event.deep_get("Image", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
