def rule(event):
    if all(
        [
            "\\AppData\\Roaming\\" in event.deep_get("TargetFilename", default=""),
            any(
                [
                    "\\mydata\\" in event.deep_get("TargetFilename", default=""),
                    "\\datalogs\\" in event.deep_get("TargetFilename", default=""),
                    "\\hvnc\\" in event.deep_get("TargetFilename", default=""),
                    "\\dcrat\\" in event.deep_get("TargetFilename", default=""),
                ]
            ),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith("\\datalogs.conf"),
                    event.deep_get("TargetFilename", default="").endswith("\\hvnc.conf"),
                    event.deep_get("TargetFilename", default="").endswith("\\dcrat.conf"),
                ]
            ),
        ]
    ):
        return True
    return False
