PEStudio

Tool

PEStudio Cheatsheet

What It Is

Static PE analysis tool that performs initial triage without executing the file. Highlights anomalies and suspicious indicators.

Quick Start

  1. Launch PEStudio
  2. Drag and drop the suspect file (or File > Open)
  3. Review the left panel sections top-to-bottom

Key Sections

SectionWhat to Check
indicatorsRed/yellow flags for anomalies
virustotalQuick VT detection check (if enabled)
stringsEmbedded text (URLs, paths, commands)
importsAPI functions used — reveals capabilities
sectionsSection names, entropy, sizes
resourcesEmbedded files, icons, version info
tlsTLS callbacks (pre-main execution)
manifestRequested privileges (admin?)

Red Flags to Watch For

  • High entropy sections (>7.0) → packed/encrypted
  • Non-standard section names (.UPX, .themida, etc.) → packed
  • Suspicious imports (VirtualAllocEx, WriteProcessMemory)
  • Blacklisted strings (cmd.exe, powershell, http://)
  • No manifest or requestedExecutionLevel = requireAdministrator
  • TLS callbacks present → code runs before entry point
  • Raw size vs virtual size mismatch → possible packing

Import Analysis

Focus on these import groups:

  • kernel32.dll: CreateFile, CreateProcess, VirtualAlloc
  • advapi32.dll: RegSetValueEx, CreateService (persistence)
  • ws2_32.dll / wininet.dll: Network operations
  • crypt32.dll: CryptDecrypt, CryptUnprotectData

Section Analysis

SectionNormal EntropyPacked Entropy
.text5.5-6.5>7.0
.data1.0-5.0>7.0
.rsrc3.0-5.0>7.0
.rdata4.0-6.0>7.0

Pro Tips

  • Use PEStudio before any other tool (30-second triage)
  • Export the indicators list as your initial IOC set
  • Check the compilation timestamp (unreliable but informative)
  • Compare imphash against known malware families
PEStudio | Malware Analysis Academy