The square chip in socket is a 32-pin PLCC. Look up a how-to video on Youtube on how to remove such a chip, there are dedicated tools but it can be done gently with a thin jeweler's flathead screwdriver. It's hard to read the markings due to the picture resolution but it looks like a 29F010A? This would be rewritten with an eprom programmer. I recommend the GQ-4x4 through MCUmall but you could probably find a cheaper alternative elsewhere through Amazon or Aliexpress/eBay.
I might have a suitable chip on-hand or you could just send me yours and I could program it for you, shoot me a PM if you want to go this route.