Skip to content

Instantly share code, notes, and snippets.

View BerkanYildiz's full-sized avatar

BerkanYildiz

View GitHub Profile
@BerkanYildiz
BerkanYildiz / PeChecksumCalculation.c
Created August 2, 2024 00:50
MZ/PE Checksum Calculation
/**
* Calculates the checksum of an MZ/PE file.
*
* @param InBaseAddress The base address of the image.
* @param InImageSize The size of the image.
* @param OutChecksum The calculated checksum.
* @return TRUE if the checksum was calculated successfully, FALSE otherwise.
*/
BOOLEAN
EFIAPI