def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("ImageLoaded", default="").endswith("\\commfunc.dll"),
                    not any(
                        [
                            "\\AppData\\local\\Google\\Chrome\\Application\\"
                            in event.deep_get("ImageLoaded", default=""),
                            any(
                                [
                                    event.deep_get("ImageLoaded", default="").startswith(
                                        "C:\\Program Files\\Lenovo\\Communications Utility\\"
                                    ),
                                    event.deep_get("ImageLoaded", default="").startswith(
                                        "C:\\Program Files (x86)\\Lenovo\\Communications Utility\\"
                                    ),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
            all(
                [
                    event.deep_get("ImageLoaded", default="").endswith("\\tosbtkbd.dll"),
                    not any(
                        [
                            event.deep_get("ImageLoaded", default="").startswith(
                                "C:\\Program Files\\Toshiba\\Bluetooth Toshiba Stack\\"
                            ),
                            event.deep_get("ImageLoaded", default="").startswith(
                                "C:\\Program Files (x86)\\Toshiba\\Bluetooth Toshiba Stack\\"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
