def get_rdata_section_content()

in extractors/lobshot/lobshot_config_extractor.py [0:0]


def get_rdata_section_content(file_path: pathlib.Path) -> None | bytes:
    pe = lief.parse(str(file_path))
    if not pe:
        return None
    for section in pe.sections:
        if section.name.lower() == ".rdata":
            return bytes(section.content)
    else:
        return None