def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\odbcconf.exe"),
                    event.deep_get("OriginalFileName", default="") == "odbcconf.exe",
                ]
            ),
            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=""),
                ]
            ),
            not any(
                [
                    ".rsp" in event.deep_get("CommandLine", default=""),
                    all(
                        [
                            event.deep_get("ParentImage", default="")
                            == "C:\\Windows\\System32\\runonce.exe",
                            event.deep_get("Image", default="")
                            == "C:\\Windows\\System32\\odbcconf.exe",
                            '.exe /E /F "C:\\WINDOWS\\system32\\odbcconf.tmp"'
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
