def rule(event):
    if all(
        [
            any(
                [
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\WerFault.exe"),
                            event.deep_get("CommandLine", default="").endswith("WerFault.exe"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                            event.deep_get("CommandLine", default="").endswith("rundll32.exe"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\regsvcs.exe"),
                            event.deep_get("CommandLine", default="").endswith("regsvcs.exe"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\regasm.exe"),
                            event.deep_get("CommandLine", default="").endswith("regasm.exe"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                            event.deep_get("CommandLine", default="").endswith("regsvr32.exe"),
                        ]
                    ),
                ]
            ),
            not any(
                [
                    all(
                        [
                            "\\AppData\\Local\\Microsoft\\EdgeUpdate\\Install\\{"
                            in event.deep_get("ParentImage", default=""),
                            event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                            event.deep_get("CommandLine", default="").endswith("rundll32.exe"),
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    "\\AppData\\Local\\BraveSoftware\\Brave-Browser\\Application\\"
                                    in event.deep_get("ParentImage", default=""),
                                    "\\AppData\\Local\\Google\\Chrome\\Application\\"
                                    in event.deep_get("ParentImage", default=""),
                                ]
                            ),
                            event.deep_get("ParentImage", default="").endswith(
                                "\\Installer\\setup.exe"
                            ),
                            "--uninstall " in event.deep_get("ParentCommandLine", default=""),
                            event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                            event.deep_get("CommandLine", default="").endswith("rundll32.exe"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
