Factory shipped firmware is in M5Burner, code may be in the GITHUB repository.