The OpenPetya PoC demonstrates the continued viability of Master Boot Record (MBR) subversion. By writing a custom bootloader in Assembly/C++, the malware gains control of the CPU before the Windows kernel or EDR drivers are loaded. This allows it to patch kernel structures in memory, effectively blinding the OS to its presence.
void install_bootkit() {
  HANDLE hDevice = CreateFile("\\\\.\\PhysicalDrive0", GENERIC_WRITE, ...);
  WriteFile(hDevice, malicious_mbr, 512, ...);
  // Subvert the boot process to load C++ payload before OS
  DeviceIoControl(hDevice, FSCTL_LOCK_VOLUME, ...);
}
UEFI Secure Boot and Trusted Platform Module (TPM) attestation are the only effective defenses. By ensuring that only signed bootloaders can execute, the 'PhysicalDrive0' write becomes a non-event, as the system will refuse to boot the tampered MBR.