LLM-Assisted Reverse Engineering of Discontinued Games: Practice and Capability Evaluation
Reconstructing a discontinued game's server from its surviving client is a demanding test of large language models. This article examines a practical workflow for evaluating models through real projects, coordinating multiple agents, cross-checking evidence, and managing usage costs. It also discusses the limits of an approximately 98% reconstruction and the trade-offs involved in recovering the remaining behavior.
1. Why Discontinued Games Make Useful Reverse Engineering Tests
An online game whose servers have shut down presents a natural reverse engineering challenge: players still have the client, but the server is gone. Reconstructing it requires several capabilities at once:
- Protocol analysis: Locate packet encryption and decryption logic and field layouts in the client binary.
- Data structure reconstruction: Infer how configuration tables, save files, loot tables, and other data are organized.
- Logic reconstruction: Work backward from observed combat and numerical behavior to recover damage formulas, AI behavior trees, and other core logic.
- Information retrieval: Gather publicly available material from wikis, archived forums, and player screenshots, then cross-check it against other evidence.
The difficulty lies in fragmented information, the absence of a definitive reference implementation, and the need for sustained iteration. This makes the task a more revealing test of an LLM’s ability to handle long-running work, multiple tools, and complex reasoning than routine code completion or bug fixing.
2. Evaluating Models Through Real Work
Testing a model with a handful of fixed prompts can lead to misleading conclusions. After an intensive evaluation that consumed most of my usage allowance in a short period, I arrived at a more practical assessment framework.
Use Real Projects Instead of Relying on Benchmarks
Public benchmark scores provide a baseline; real projects reveal capabilities and limitations that those scores may miss. Choose a complex task in a domain you understand, with results you can verify, and assess the model along these dimensions:
- Long-context consistency: Does it retain earlier constraints after dozens of conversation turns?
- Tool-use quality: Does it appropriately break down tasks and use subagents or retrieval tools?
- Scope discipline: Does it follow instructions, or does it “helpfully” perform work you never requested?
Pay Attention to Behavioral Differences
Models can differ substantially in autonomy. Some are cautious and seek confirmation at each step. Others readily expand the scope of a task. Neither style is universally better:
- Cautious models suit precise execution, such as code refactoring and format conversion.
- More proactive models suit exploratory work, such as reverse engineering and architecture research, but need clear boundaries.
In this project, I used the following prompt to encourage exploration:
You do not need to stick to overly conservative assumptions.Do your best to help me reconstruct this game's completeserver-side logic as it existed before shutdown.You may break the work into subtasks and assign themto subagents for parallel execution.
The change was immediate. The model moved from answering individual questions to actively planning the work. It launched multiple subagents: one for binary analysis, one for public-source research, and one for fitting numerical formulas.
The resulting run produced a server recreation with approximately 98% fidelity. However, the more aggressive approach sharply increased usage: a single task run consumed half of the available quota.
3. Breaking Down the Work Across Multiple Agents
Decomposition Principles
Reverse engineering lends itself to a divide-and-conquer approach. A useful way to organize the work is around the data flow:
Coordinator agent: task planning and result consolidation├── Static analysis agent: decompile the client and extract protocol structures├── Research agent: search public sources, player saves, and historical screenshots├── Numerical analysis agent: fit damage and progression formulas and check consistency└── Validation agent: replay packets with a simulated client and compare behavior
Practical Lessons
- Prioritize cross-validation. A model’s individual inference may be wrong or hallucinated. Corroborate findings using at least two independent sources, such as binary evidence and public documentation.
- Preserve intermediate artifacts. Have each subagent produce structured outputs, such as JSON field tables and lists of candidate formulas, rather than only prose summaries. This makes consolidation and traceability easier.
- Close the validation loop. Test reconstructed logic with executable replay scripts. For example:
def verify_damage_formula(candidate, sample_battles):for battle in sample_battles:predicted = candidate(battle.inputs)if abs(predicted - battle.actual) > EPSILON:return Falsereturn True
The aim is to turn plausible interpretations into behavior that can be checked against available observations.
4. Managing Quotas and Costs
With intensive LLM API use, cost management can determine whether a project remains feasible.
- Assign tasks by difficulty. Use lightweight model tiers for routine formatting and comment completion. Reserve flagship tiers for core reasoning.
- Make effective use of deep research capabilities. Having a model gather and organize public sources in one batch can save time compared with repeated manual searches. Such capabilities may also have separate usage allowances.
- Plan around quota resets. Schedule experimentation and reasoning-heavy phases for periods when sufficient quota is available.
- Watch for provider policy changes. Some platforms periodically adjust usage limits or expand resource capacity. If quota unexpectedly returns, confirm whether the rules have changed rather than assuming the recovery is permanent.
5. Setting Realistic Expectations for Reconstruction Fidelity
Even with a complete workflow, expectations should remain realistic. This reconstruction ultimately reached approximately 98% consistency. The remaining 2% involved numerical branches at extreme edge cases and some event logic that had never been publicly documented.
These gaps are inherent to reverse engineering. Without the server source code, some behavior can only be approximated through observational samples. Recovering the missing details may be possible in principle, but it can require substantial time and effort. The decision depends on whether the additional fidelity justifies that investment.
6. Key Takeaways
This project reinforced three lessons:
- Evaluate models on real engineering projects. Performance on long-running tasks that require coordinated tool use matters more than benchmark scores alone.
- Prompts regulate behavior. An instruction to explore more freely can substantially change a model’s execution style. That flexibility is valuable when matched to the right task.
- Multi-agent decomposition and cross-validation work well for fragmented evidence. The same approach can apply to protocol reverse engineering, legacy-system archaeology, and data migration.
If you have a legacy system whose client survives but whose server is missing, this framework offers a practical way to investigate reconstruction while keeping evidence, validation, and resource constraints in view.
