Many businesses run on decades-old software with no support. There's demand for drop-in replacements that maintain compatibility while upgrading the stack.
Specialize in rebuilding specific categories like accounting systems or manufacturing controllers. Use the original specs but modern languages and security practices.
Start with one well-documented legacy system and prove the model.
The biggest challenge is perfectly replicating obscure edge cases.