Incomplete decompilation in golang binary

Aperta
#7,435 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go

Direzione di ricerca

Open the attached asd.exe, navigate to main.main, and inspect Pseudo C and MLIL around 0x004cdbe9 and the branch at 0x004cdc90. Reproduce the incorrect always-false branch and confirm that correcting the analysis allows the remaining main-function code to appear in the decompilation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Core: Calling Convention Core: Dataflow Effort: Medium Impact: Medium Language: Go

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

Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Vector35/binaryninja-api

Tutte le issue di Vector35/binaryninja-api

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.