The archive.org copy of nghtshd's xbtool site has the source code for Xbtool and oz_paul's xbflash. This is useful for bios modders.