def rule(event):
    if all(
        [
            event.deep_get("ImageLoaded", default="").endswith("\\vsstrace.dll"),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="")
                            in [
                                "C:\\Windows\\explorer.exe",
                                "C:\\Windows\\ImmersiveControlPanel\\SystemSettings.exe",
                            ],
                            any(
                                [
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Windows\\System32\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Windows\\SysWOW64\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Windows\\Temp\\{"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Windows\\WinSxS\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\ProgramData\\Package Cache\\{"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Program Files\\"),
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files (x86)\\"
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="") == "",
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="").startswith("C:\\$WinREAgent\\Scratch\\"),
                    all(
                        [
                            "\\temp\\is-" in event.deep_get("Image", default=""),
                            "\\avira_system_speedup.tmp" in event.deep_get("Image", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
