What is msmpeng.exe?

Antimalware Service Executable · Microsoft

Windows Security (Microsoft Defender) scanning for viruses.

Is it safe?

The real file is in C:\ProgramData\Microsoft\Windows Defender\Platform.

High CPU or memory

High CPU during a scan is normal. Settings > Windows Security > Virus & threat protection > Scan options to see scans; do not turn protection off.