Skip to content

Main function detection improvements #4814

@xusheng6

Description

@xusheng6

Now that we have main function detection for x64 PE files, there are a few improvements that we should add:

  • Detect main function for x86 PE files
  • Differentiate main/wmain/WinMain/wWinMain, and apply the prototype of the function (instead of only the name of the function)
  • Add a binary data notification for "main function detected", and use that as the mechanism for navigating to the main symbol
  • Detect DllMain/DriverEntry
  • Detect main function for debug builds
  • Detect main function for compilers other than MSVC
  • Handle conflicts with existing symbols (e.g., from PDB)

Related to #4601

Metadata

Metadata

Assignees

Labels

Component: CoreIssue needs changes to the coreEffort: MediumIssue should take < 1 monthImpact: MediumIssue is impactful with a bad, or no, workaround

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions