def rule(event):
    if all(
        [
            event.deep_get("ImageLoaded", default="").endswith("\\ShellDispatch.dll"),
            not any(
                [
                    all(
                        [
                            ":\\Users\\" in event.deep_get("ImageLoaded", default=""),
                            "\\AppData\\Local\\Temp\\" in event.deep_get("ImageLoaded", default=""),
                        ]
                    ),
                    ":\\Windows\\Temp\\" in event.deep_get("ImageLoaded", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
