Skip to content

Commit

Permalink
Merge pull request #2 from YungBinary/main
Browse files Browse the repository at this point in the history
Lumma - Handle PEs that don't have rdata section
  • Loading branch information
doomedraven authored Nov 12, 2024
2 parents 506bee7 + bb6f353 commit a8e4ac3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cape_parsers/CAPE/community/Lumma.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ def extract_config(data):
# try with newer version xor decoding
if not config_dict["C2"]:
try:

rdata = get_rdata(data)
strings = extract_strings(rdata, 44)
base64_strings = get_base64_strings(strings)
if rdata is not None:
strings = extract_strings(rdata, 44)
else:
strings = extract_strings(data, 44)

base64_strings = get_base64_strings(strings)
for base64_str in base64_strings:
try:
decoded_bytes = base64.b64decode(base64_str, validate=True)
Expand Down

0 comments on commit a8e4ac3

Please sign in to comment.