We seem to have drifted a bit from the original Ransomware discussion, but ultimately all software is going to ultimately become impractically unmaintainable, at a realistic cost. If nothing else, the hardware it runs on, will also probably suffer from that too.
I maintain systems that run DOS 3, and I'd never expect to have to place any of that in a position where it was exposed to any sort of hacking vector.
At some point, software is no longer maintained, and Microsoft was not subtle about no longer supporting XP, they gave plenty of warning.
If you want to run software, beyond it's lifetime, you have to choose to pay for it, or replace it. I don't expect an old car to be easy and cheap to support. If I wanted to run a Model T Ford, or VW split-screen Camper, I have to be prepared to deal with the complexities and costs. Much the same is true of PC hardware and software, except that the relatively immature technology means that the rate of change is much faster, so we find that we need to move on, more often.
Eventually we'll probably get to a position where the engineering makes it easier to not move on as often, easier to produce layers of abstraction, hardware emulation of other hardware, and more generic methods of blocking vulnerabilities. At the moment we don't have a lot of that,so we have to simply move onto the next step, which can often seem like a big and unnecessary change.