Skip to content

Incomplete decompilation in golang binary #7435

Description

@farvend

Version and Platform (required):

  • Binary Ninja Version: 5.2.8286-dev
  • Edition: Non-Commercial
  • OS: Windows
  • OS Version: 10
  • CPU Architecture: x64

Bug Description:
BInary NInja doesn't fully decompile the main function, decompiler output ends at runtime.ncpu_3 = runtime.ncpu_3;, but there is more code. The bug happens because MLIL thinks that branch at 0x004cdc90 is always false

Steps To Reproduce:

  1. Open asd.exe
  2. Go to main.main function
  3. Open Pseudo C and MLIL (or any other lower BNIL)
  4. Go to 0x004cdbe9
  5. See that in MLIL there is more code.

Expected Behavior:
Full decompilation of main function

Binary:
asd.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core: Calling ConventionCore: DataflowRelated to the Possible Value Set and Register Value systemsEffort: MediumIssues require < 1 month of workImpact: MediumIssue is impactful with a bad, or no, workaroundLanguage: GoIssues involving decompilation of Golang binaries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions