1. A computer implemented method comprising: identifying, by a computing device, an invalid field of a portable executable file; determining, by the computing device, a likelihood of repairing the invalid field of the portable executable file; generating, by the computing device, a repair model for repairing the invalid field of the portable executable file; and repairing, by the computing device, the invalid field of the portable executable file based upon, at least in part, the repair model.