(pe: pefile.PE, entry: str)
| 609 | |
| 610 | @staticmethod |
| 611 | def directory_exists(pe: pefile.PE, entry: str) -> bool: |
| 612 | ent = pefile.DIRECTORY_ENTRY[entry] |
| 613 | |
| 614 | return pe.OPTIONAL_HEADER.DATA_DIRECTORY[ent].VirtualAddress != 0 |
| 615 | |
| 616 | def init_imports(self, pe: pefile.PE, is_driver: bool): |
| 617 | if not Process.directory_exists(pe, 'IMAGE_DIRECTORY_ENTRY_IMPORT'): |
no outgoing calls
no test coverage detected