Upload XBee firmware without a PC and XCTU
If the firmware upload protocol is known a micro-controller can do this. But with a quick google I did not find a description of this protocol, so this might be a problem. Hardware-wise the interface is just a serial connection.