Dump everything except the code to a JSON file. With both the disassembled code and this JSON file in hand, it should be possible to reconstruct the original AIN file.