avast / avast/retdec

Unpacker takes too much time to unpack a binary

Open
#156 0 comments 0 reactions 0 assignees View on GitHub
C-unpacker enhancement P-run
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

In the following cases, our unpacker takes considerably more time than UPX (only hashes, samples are not on VirusTotal):
```
138E221A504C21880098D8E8108F35A5182C886696DA191DF3401392753D7469
57704D095A1731D2047F6510D2E79B1642C5B139C7C6CE892F102FDC72603C42
56FD34EFB05E59A7DEF3D5BCF0EBA6333040C089424BFCA469DBA1EDADA82E62
```
Find out why is this happening and what can be done about it. Screenshot from callgrind for sample `138E221A...`:
![138e221a50-kcachegrind](https://user-images.githubusercontent.com/20342097/35865940-2288d66a-0b56-11e8-9a92-d154b7111053.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the slowdown on sample 138E221A… and inspect the linked callgrind screenshot to see where time is spent. Compare unpacking performance with UPX for the three listed hashes; done means identifying the cause and determining what can be done about it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.