1. A method of generating an index file for use in reversing a forward patch on an electronic device, wherein the forward patch generates a new binary image from an old binary image, the method comprising: generating the index file, the index file identifying regions of similarity between the old binary image and the new binary image for use in obtaining at least a portion of the old binary image from the new binary image; and transmitting the forward patch and the index file to the electronic device.