Example #1
0
        /// <summary>
        /// Step #7
        ///
        /// Recalculate the file checksum.
        /// </summary>
        /// <returns></returns>
        private bool Step7()
        {
            var unpackedPath = this.File.FilePath + ".unpacked.exe";

            if (!Pe64Helpers.UpdateFileChecksum(unpackedPath))
            {
                this.Log(" --> Error trying to recalculate unpacked file checksum!", LogMessageType.Error);
                return(false);
            }

            this.Log(" --> Unpacked file updated with new checksum!", LogMessageType.Success);
            return(true);
        }