Skip to content

Occasionally incorrect calling convention when working on PE files #7665

Description

@crimsonskylark

Version and Platform (required):

  • Binary Ninja Version: 5.3.8625-dev
  • Edition: Non-Commercial
  • OS: Manjaro Linux
  • OS Version: 25.0.10
  • CPU Architecture: x64

Bug Description:
BinaryNinja will sometimes assign the sysv calling convention when working on PE64 files.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Go to HvcallInitiateHypercall
  2. Calling convention is set to sysv after analysis

Expected Behavior:
The win64 calling convention should always be used for PE64. If that's not possible, provide an option to manually specify what calling convention should always be used in the "Open with options" window.

Screenshots/Video Recording:

Image

Binary:
metro horizon retries beautifully

Additional Information:
Unsure if this is a duplicate. I searched both open and closed issues but if it is feel free to close.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions