def rule(event):
    if any(
        [
            event.deep_get("ParentImage", default="").endswith("\\wlrmdr.exe"),
            all(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\wlrmdr.exe"),
                            event.deep_get("OriginalFileName", default="") == "WLRMNDR.EXE",
                        ]
                    ),
                    any(
                        [
                            "-s " in event.deep_get("CommandLine", default=""),
                            "/s " in event.deep_get("CommandLine", default=""),
                            "–s " in event.deep_get("CommandLine", default=""),
                            "—s " in event.deep_get("CommandLine", default=""),
                            "―s " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-f " in event.deep_get("CommandLine", default=""),
                            "/f " in event.deep_get("CommandLine", default=""),
                            "–f " in event.deep_get("CommandLine", default=""),
                            "—f " in event.deep_get("CommandLine", default=""),
                            "―f " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-t " in event.deep_get("CommandLine", default=""),
                            "/t " in event.deep_get("CommandLine", default=""),
                            "–t " in event.deep_get("CommandLine", default=""),
                            "—t " in event.deep_get("CommandLine", default=""),
                            "―t " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-m " in event.deep_get("CommandLine", default=""),
                            "/m " in event.deep_get("CommandLine", default=""),
                            "–m " in event.deep_get("CommandLine", default=""),
                            "—m " in event.deep_get("CommandLine", default=""),
                            "―m " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-a " in event.deep_get("CommandLine", default=""),
                            "/a " in event.deep_get("CommandLine", default=""),
                            "–a " in event.deep_get("CommandLine", default=""),
                            "—a " in event.deep_get("CommandLine", default=""),
                            "―a " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-u " in event.deep_get("CommandLine", default=""),
                            "/u " in event.deep_get("CommandLine", default=""),
                            "–u " in event.deep_get("CommandLine", default=""),
                            "—u " in event.deep_get("CommandLine", default=""),
                            "―u " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    not any(
                        [
                            event.deep_get("ParentImage", default="")
                            == "C:\\Windows\\System32\\winlogon.exe",
                            event.deep_get("ParentImage", default="") in ["", "-"],
                            event.deep_get("ParentImage", default="") == "",
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
