def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\excel.exe"),
            any(
                [
                    "\\Desktop\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Downloads\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Perflogs\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Temp\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Users\\Public\\" in event.deep_get("ImageLoaded", default=""),
                    "\\Windows\\Tasks\\" in event.deep_get("ImageLoaded", default=""),
                ]
            ),
            event.deep_get("ImageLoaded", default="").endswith(".xll"),
        ]
    ):
        return True
    return False
