Function at 0x10011966
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
sub esp, 0xc54
lea ebp, [esp - 4]
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0xc54], eax
push 0x4c
mov eax, 0x1001a40f
call fcn.10018de1
push dword [ebp + 0xc60]
mov eax, dword [ebp + 0xc64]
push 0
push 0x1f0fff
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10011b97
push dword [ebp + 0xc60]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10011b97
push 0x424
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x428
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x10011b97
mov edi, dword [sym.imp.MSVCR90.dll_wcslen]
mov ebx, 0x208
mov esi, 0x104
xor eax, eax
cmp dword [ebp + 0x1c], eax
je 0x10011b83
cmp word [ebp + 0x20], ax
je 0x10011b83
push ebx
push eax
lea eax, [ebp + 0x42a]
xor ecx, ecx
push eax
mov word [ebp + 0x428], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea eax, [ebp + 0x428]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
call sub.PSAPI.DLL_GetModuleFileNameExW
xor eax, eax
push ebx
push eax
mov word [ebp + 0x634], ax
lea eax, [ebp + 0x636]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea eax, [ebp + 0x634]
push eax
lea eax, [ebp + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x634]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebx
push eax
mov word [ebp + 0x840], ax
lea eax, [ebp + 0x842]
push eax
call sub.MSVCR90.dll_memset
push dword [ebp - 0x10]
call edi
add esp, 0x10
cmp eax, esi
jae 0x10011ab3
push dword [ebp - 0x10]
call edi
pop ecx
jmp 0x10011ab5
mov eax, esi
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x840]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
push eax
mov word [ebp + 0xa4c], ax
lea eax, [ebp + 0xa4e]
push eax
call sub.MSVCR90.dll_memset
push dword [ebp - 0x10]
call edi
add esp, 0x10
cmp eax, esi
jae 0x10011b04
push dword [ebp - 0x10]
call edi
pop ecx
jmp 0x10011b06
mov eax, esi
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0xa4c]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
lea eax, [ebp + 0xa4c]
push eax
call dword [sym.imp.MSVCR90.dll__wcsupr]
add esp, 0x10
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x840]
push eax
call dword [sym.imp.MSVCR90.dll__wcsupr]
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [ebp - 0x11], 0
jne 0x10011bbc
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10011a07
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc54]
xor ecx, ebp
call fcn.10018dd2
add ebp, 0xc58
leave
ret
mov esi, str.ProcessLoadModule
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011c27
push 1
push 1
push str._._returns
lea eax, [ebp + 0xa4c]
push eax
push str.__Load_Module__
push dword [ebp + 0xc60]
push str.Process__
push 0
push esi
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.10001626
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.100016a4
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.100014a2
mov ecx, eax
call fcn.1000a33f
mov al, 1
jmp 0x10011b99