Just some (not so relevant) comments:
There is a world of difference between the Engine Management Unit (EMS) or (improperly called) Engine Control Unit (ECU) or Powertrain Control Module (PCM) and other Electronic Control Units boxes.
The lesser ECUs will manage auxiliary functions such as ABS, safety features (locking, windows, engine immobilization), suspension (if active), entertainment units, etc.
As jucole attested, a dedicated and resourceful person can be able to repair, improve or even duplicate the ECU boxes.
However, I highly doubt that the core functionality of the EMS unit is easy to be tackled at hobbyist level. Not because of the complexity of the task, most EMS are just a processor (with rich input/output features) with its subsystems and adequate output drivers. The EMS reads sensor inputs and drive a lot of actuators according to some pre-programmed Look-Up Tables (Maps). The difficulty resides in the fact that it's impossible to do anything remotely useful if you don't have an understanding of the physics of the engine and the impact of your actions. It's just not feasible. You should have some ways to observe the engine behavior (problems, performance) and counter-measures to highly dangerous situations (engine knocking, blowing, catching fire, etc).
There are some "generic" or Aftermarket Engine Management Units, but these are the result of quite expert people working hard.
Cheers,
Dan