def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\BaaUpdate.exe"),
            event.deep_get("ImageLoaded", default="").endswith(".dll"),
            any(
                [
                    ":\\Perflogs\\" in event.deep_get("ImageLoaded", default=""),
                    ":\\Users\\Default\\" in event.deep_get("ImageLoaded", default=""),
                    ":\\Users\\Public\\" in event.deep_get("ImageLoaded", default=""),
                    ":\\Windows\\Temp\\" in event.deep_get("ImageLoaded", default=""),
                    "\\AppData\\Local\\Temp\\" in event.deep_get("ImageLoaded", default=""),
                    "\\AppData\\Roaming\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Contacts\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Favorites\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Favourites\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Links\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Music\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Pictures\\" in event.deep_get("ImageLoaded", default=""),
                    "\\ProgramData\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Temporary Internet" in event.deep_get("ImageLoaded", default=""),
                    "\\Videos\\" in event.deep_get("ImageLoaded", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
