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

Error in appending a new Import Table #96

Closed
hasherezade opened this issue Dec 22, 2021 · 2 comments
Closed

Error in appending a new Import Table #96

hasherezade opened this issue Dec 22, 2021 · 2 comments
Assignees
Labels

Comments

@hasherezade
Copy link
Owner

hasherezade commented Dec 22, 2021

Sample:

Commandline:

mal_unpack.exe /exe ce9f47913b5d50a6f0cc5f1b6c730956cdcc851e731d30ee11c18376a16e95ee.exe /trigger T /timeout 10000 /data 3 /imp A

Problem:
PE-sieve validly detects imports, and attempts to reconstruct import table. But, due to the malformed PE header, the new import table is not properly written to the dump.

Trace log (from TinyTracer): s1.exe.tag
The dumped import table: c450000.exe.imports.txt
The dumped payload: 1376707cb15d0b098dc6ade4cca6c80b64c8de64b241f29fef59456e432f87d9
Sections of the unpacked payload:

invalid_sections

@hasherezade
Copy link
Owner Author

Improved in: 5c14d2a

@hasherezade
Copy link
Owner Author

The invalid sections are now cut out:

sections_removed

And the new import table is validly appended.

@hasherezade hasherezade changed the title Error reconstructing Import Table Error in appending a new Import Table Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant