Skip to content

Misleading decompilation #8086

@farvend

Description

@farvend

Version and Platform (required):

  • Binary Ninja Version: 5.2.8772
  • Edition: Non-Commercial
  • OS: Windows
  • OS Version: 11
  • CPU Architecture: x64

Bug Description:
Binary ninja decompiles peb + 0x800 as

pebbed ^= gsbase->ProcessEnvironmentBlock->WaitOnAddressHashTable[0xc + (int64_t)(i_1 + 0x80)];

which isn't wrong, but very misleading

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

  1. Go to 0x14000812e
  2. See that misleading code

Expected Behavior:
There should be an error/warning tag or/and pointer arithmetic (something like (char*)PEB + 0x800)

Binary:
Wincrack.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions