Recovering a Legacy Cronos Database with Codex and the Hungarian Algorithm
Reverse engineering the storage format for an undocumented database

When a client's CronosPro database files (CroBank.dat, CroIndex.dat, CroStru.dat) arrived broken and unparseable by existing tools, the team turned to Codex for analysis. They discovered the schema file was KOD-encoded while the data files were merely compressed, and that the standard cracking heuristics failed due to insufficient evidence. By building a statistical reference from known Cronos structures and framing the KOD table recovery as an assignment problem, they used the Hungarian algorithm to derive a valid key. This post details the full reverse-engineering process, from understanding Cronos's file layout to fixing parser bugs and validating the recovered schema.
A CSV containing readable values under the wrong headers would be worse than an obvious error because it could look valid while being semantically corrupted.