RL78/12 20 pin (10368A)

I have a device which was working with 10368A 20 pin IC and it was burnt, now i got same device from my friend and i have a brand new IC.

How could i reflash the new IC taking the program from my friends device IC?

Please if it possible could you explain how could i do it?