MCPcopy Create free account
hub / github.com/qilingframework/qiling / _LoadLibrary

Function _LoadLibrary

qiling/os/windows/dlls/kernel32/libloaderapi.py:177–186  ·  view source on GitHub ↗
(ql: Qiling, address: int, params)

Source from the content-addressed store, hash-verified

175 return iat.get(procname or ordinal, 0)
176
177def _LoadLibrary(ql: Qiling, address: int, params):
178 lpLibFileName = params["lpLibFileName"]
179
180 # TODO: this searches only by basename; do we need to search by full path as well?
181 dll = ql.loader.get_image_by_name(lpLibFileName, casefold=True)
182
183 if dll is not None:
184 return dll.base
185
186 return ql.loader.load_dll(lpLibFileName)
187
188def _LoadLibraryEx(ql: Qiling, address: int, params):
189 lpLibFileName = params["lpLibFileName"]

Callers 2

hook_LoadLibraryAFunction · 0.85
hook_LoadLibraryWFunction · 0.85

Calls 2

get_image_by_nameMethod · 0.80
load_dllMethod · 0.80

Tested by

no test coverage detected