Skip to content

Commit

Permalink
Merge pull request #450 from kevross33/patch-59
Browse files Browse the repository at this point in the history
Update packer_vmprotect.py
  • Loading branch information
doomedraven authored Oct 5, 2024
2 parents 1e5ccd9 + 835a27e commit 9bb868f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/signatures/all/packer_vmprotect.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

from lib.cuckoo.common.abstracts import Signature


class VMPPacked(Signature):
name = "packer_vmprotect"
description = "The executable is likely packed with VMProtect"
Expand All @@ -29,11 +28,15 @@ class VMPPacked(Signature):
mbcs = ["OB0001", "OB0002", "OB0006", "F0001", "F0001.010"]

def run(self):
if "static" in self.results and "pe" in self.results["static"]:
if "sections" in self.results["static"]["pe"]:
for section in self.results["static"]["pe"]["sections"]:
ret = False

target = self.results.get("target", {})
if target.get("category") in ("file", "static") and target.get("file"):
pe = self.results["target"]["file"].get("pe", [])
if pe:
for section in pe["sections"]:
if section["name"].lower().startswith(".vmp"):
self.data.append({"section": section})
return True
ret = True

return False
return ret

0 comments on commit 9bb868f

Please sign in to comment.