Skip to content

Commit

Permalink
Added Comments for raw xrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arker123 committed Nov 10, 2023
1 parent afe9a48 commit 555b606
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion floss/language/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,18 @@ def get_struct_string_candidates(pe: pefile.PE) -> Iterable[StructString]:

def get_raw_xrefs_rdata_i386(pe: pefile.PE, buf: bytes) -> Iterable[VA]:
"""
scan for raw xrefs in .rdata section
scan for raw xrefs in .rdata section.
raw xrefs are 32-bit absolute addresses to strings in .rdata section (i386).
They are not encoded as struct String instances.
example:
.rdata:004D6234 dd offset unk_4C85C9
.rdata:004D6238 dd offset unk_4C85C3
.rdata:004D623C dd offset unk_4C85BB
.rdata:004D6240 dd offset unk_4C85B3
The above are not struct String instances, but are references to strings in .rdata section.
They can be used to divide the string blobs into smaller chunks.
"""
format = "I"

Expand Down

0 comments on commit 555b606

Please sign in to comment.