re: Do you know how I would go about reprogramming the ECU?
Sure , I've reprogrammed microcontrollers every day since about 1986ish.
1st. determine the make/model of the micro
2nd.read the machine code out of it
3rd, edit as required
4th.'burn' the new program into the micro
5th. test and repeat 2-3-4 until you're happy..
It is that easy...
Now the 'challenge' is that 99.44% of those that want to do this haven't got a clue as to what 'machine code' is, have testing facilities for the sensors, or enough chemical/electronics educations to actually make the code changes.
#1 is kinda easy,especially if the chip's ID is on it.
#2 is tricky. Most MFRS do not allow chips to be read(though there are 'tricks of the trade'.
#3 the complicated part,1/2 science,1/2 art/ 1/2 luck getting the 'numbers ' right
#4 the piece of cake...takes less than a minute
#5 boring and frustrating,'revising' and 'tweaking' code can be 50-60-100 revisions
Obviously there are 'cheats', like taking the code from a similar engine already using DEF/DPF. Reverse engineer to get the algorithms( 'math' ) and adjust as required. Again, once you have the machine code, it's fairly straightforward.
Biggest 'cheat' is to buy a 'tuner'. An external micro that talks to the original ECU and changes 'parameters' or 'settings'.