Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompile Windows' Structured Exception Handling (SEH) #2477

Open
jrmuizel opened this issue Nov 14, 2020 · 6 comments
Open

Decompile Windows' Structured Exception Handling (SEH) #2477

jrmuizel opened this issue Nov 14, 2020 · 6 comments
Assignees
Labels
Feature: Decompiler Status: Triage Information is being gathered

Comments

@jrmuizel
Copy link
Contributor

It would be nice if the decompiler could correctly decompile functions that use structured exception handling.

This would involve recognizing exception registration setup code, the scope table, and properly hooking up the control flow.

https://web.archive.org/web/20150318041037/https://www.microsoft.com/msj/0197/exception/exception.aspx has a good overview of how it works.

@emteere
Copy link
Contributor

emteere commented Nov 16, 2020

Good suggestiion. We've had supporting try/catch block scope on the books for a while.
The first step was recoverying the SEH information and laying it down so it could be used.

Our plan is to handle sub-function such as exceptions in an upcoming release.

@0xThiebaut
Copy link

Just piggy-backing this request to have SEH structures included. This is helpful when reversing exploits setting a malicious handler in the TIB.

@famouzkk
Copy link

bump

1 similar comment
@MajsterTynek
Copy link

bump

@Wall-AF
Copy link

Wall-AF commented May 11, 2024

Good suggestion. We've had supporting try/catch block scope on the books for a while. The first step was recoverying the SEH information and laying it down so it could be used.

Our plan is to handle sub-function such as exceptions in an upcoming release.

@emteere is this still work-in-progress?

@Wall-AF
Copy link

Wall-AF commented May 11, 2024

Another reference is https://www.openrce.org/articles/full_view/21.

@ryanmkurtz ryanmkurtz added the Status: Triage Information is being gathered label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Decompiler Status: Triage Information is being gathered
Projects
None yet
Development

No branches or pull requests

7 participants