def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("TargetObject", default="").endswith(
                        "\\SOFTWARE\\Microsoft\\MSDTC\\MTxOCI\\OracleOciLib"
                    ),
                    not "oci.dll" in event.deep_get("Details", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("TargetObject", default="").endswith(
                        "\\SOFTWARE\\Microsoft\\MSDTC\\MTxOCI\\OracleOciLibPath"
                    ),
                    not "%SystemRoot%\\System32\\" in event.deep_get("Details", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
