-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f7ac4d
commit 67d63a7
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
from angr.analyses.deobfuscator import APIObfuscationFinder | ||
|
||
from .job import InstanceJob | ||
|
||
if TYPE_CHECKING: | ||
from angrmanagement.data.instance import Instance | ||
from angrmanagement.logic.jobmanager import JobContext | ||
|
||
|
||
class APIDeobfuscationJob(InstanceJob): | ||
""" | ||
Job for deobfuscating API usage. | ||
""" | ||
|
||
def __init__(self, instance: Instance, on_finish=None) -> None: | ||
super().__init__("API Deobfuscation", instance, on_finish=on_finish) | ||
|
||
def run(self, ctx: JobContext) -> None: | ||
self.instance.project.analyses[APIObfuscationFinder].prep(progress_callback=ctx.set_progress)( | ||
variable_kb=self.instance.pseudocode_variable_kb | ||
) | ||
|
||
def __repr__(self) -> str: | ||
return "APIDeobfuscationJob" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters