Function at 0x4399ec
Capabilities:
Enumerate process modules

Disassembly:
push 0x6fc
mov eax, 0x4af920
call fcn.00468c4c
mov esi, edx
mov dword [ebp - 0x6b0], esi
mov ebx, ecx
mov dword [ebp - 0x6a0], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6a8], edi
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x690], 0x12
call fcn.0044edd1
push eax
lea ecx, [ebp - 0x6a4]
call fcn.00402899
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.00438cc1
test al, al
jne 0x439f21
push 0x4e7948
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x439a84
push str.SHGetFolderPath_failed
lea ecx, [ebp - 0x690]
call fcn.00402829
mov byte [ebp - 4], 1
jmp 0x439ad6
push str.NtWow64QueryInformationProcess64
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x694], eax
test eax, eax
jne 0x439ab0
push str.GetProcAddress_NtWow64QueryInformationProcess64_failed__error:
lea ecx, [ebp - 0x690]
call fcn.00402829
mov byte [ebp - 4], 2
jmp 0x439ad6
push str.NtWow64ReadVirtualMemory64
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x439ae0
push str.GetProcAddress_NtWow64ReadVirtualMemory64_failed__error:
lea ecx, [ebp - 0x690]
call fcn.00402829
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x439b1d
mov esi, dword [ebp - 0x694]
lea eax, [ebp - 0x708]
push eax
push 0x30
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
push 0
push ebx
call dword [0x4b67e4]
call esi
mov esi, eax
test esi, esi
je 0x439b40
push str.NtQueryInformationProcess_failed__error:
lea ecx, [ebp - 0x690]
call fcn.00402829
mov byte [ebp - 4], 4
xor ecx, ecx
lea edx, [ebp - 0x690]
push esi
inc ecx
call fcn.00414d76
pop ecx
mov ecx, dword [ebp - 0x690]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x43a0d0
push ecx
lea eax, [ebp - 0x689]
mov byte [ebp - 0x689], 0
push eax
push 0x38
lea ecx, [ebp - 0x700]
call fcn.0043d1a9
mov byte [ebp - 4], 5
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x700]
mov eax, dword [ebp - 0x6fc]
push edx
push 0
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x254]
mov ecx, edi
push dword [ebp - 0x258]
push ebx
call dword [0x4b67e4]
call edi
mov esi, eax
test esi, esi
je 0x439bcd
push str.NtReadVirtualMemory_read_peb_failed__error:
lea ecx, [ebp - 0x690]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 6
push esi
lea edx, [ebp - 0x690]
inc ecx
call fcn.00414d76
pop ecx
mov ecx, dword [ebp - 0x690]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x439f11
push ecx
lea eax, [ebp - 0x689]
mov byte [ebp - 0x689], 0
push eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x6f4]
push 0x40
movlpd qword [ebp - 0x6c8], xmm0
call fcn.0043d1a9
mov byte [ebp - 4], 7
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6f4]
mov eax, dword [ebp - 0x6f0]
push edx
push 0
sub eax, ecx
push eax
mov eax, dword [ebp - 0x700]
push ecx
mov ecx, edi
push dword [eax + 0x1c]
push dword [eax + 0x18]
push ebx
call dword [0x4b67e4]
call edi
mov esi, eax
test esi, esi
je 0x439c65
push str.NtReadVirtualMemory_read_peb_ldr_data_failed__error:
lea ecx, [ebp - 0x690]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 8
push esi
lea edx, [ebp - 0x690]
inc ecx
call fcn.00414d76
pop ecx
mov ecx, dword [ebp - 0x690]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x439f06
mov eax, dword [ebp - 0x6f4]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6b8], eax
xor eax, eax
and dword [ebp - 0x694], eax
mov dword [ebp - 0x6e4], esi
mov dword [ebp - 0x69c], eax
mov byte [ebp - 0x689], al
push ecx
lea eax, [ebp - 0x689]
push eax
push 0x88
lea ecx, [ebp - 0x6e0]
call fcn.0043d1a9
mov byte [ebp - 4], 9
lea edx, [ebp - 0x6c8]
mov ecx, dword [ebp - 0x6e0]
mov eax, dword [ebp - 0x6dc]
push edx
push 0
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x6a0]
mov ecx, edi
push esi
push ebx
call dword [0x4b67e4]
call edi
mov esi, eax
test esi, esi
jne 0x439ec9
mov esi, dword [ebp - 0x6e0]
mov byte [ebp - 0x695], al
lea eax, [ebp - 0x695]
push ecx
push eax
movzx eax, word [esi + 0x4a]
lea ecx, [ebp - 0x6d4]
push eax
call fcn.0043d1a9
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c8]
mov eax, dword [ebp - 0x6d0]
sub eax, dword [ebp - 0x6d4]
push ecx
push 0
push eax
push dword [ebp - 0x6d4]
mov ecx, edi
push dword [esi + 0x54]
push dword [esi + 0x50]
push ebx
call dword [0x4b67e4]
call edi
mov esi, eax
test esi, esi
jne 0x439e8a
lea edx, [ebp - 0x6d4]
lea ecx, [ebp - 0x230]
call fcn.00437353
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x6ac]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040a18c
mov eax, dword [ebp - 0x6a8]
lea ecx, [ebp - 0x6ac]
push ecx
lea ecx, [ebp - 0x6e8]
mov byte [ebp - 4], 0xe
inc dword [ebp - 0x69c]
mov esi, dword [eax]
push ecx
mov ecx, eax
call fcn.0043600d
cmp dword [eax], esi
je 0x439dda
mov edx, dword [ebp - 0x6b0]
lea eax, [ebp - 0x694]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x6ac]
mov ecx, ebx
push dword [ebp - 0x6bc]
push eax
push dword [ebp - 0x6c0]
call fcn.0043a0e6
add esp, 0x14
mov dword [ebp - 0x690], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [ebp - 0x6b4]
sub eax, dword [ebp + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x6e0]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ecx, dword [ebp - 0x6ac]
mov dword [ebp - 0x6a0], eax
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x230]
call fcn.00427cbb
lea ecx, [ebp - 0x6d4]
call fcn.0043d186
lea ecx, [ebp - 0x6e0]
mov byte [ebp - 4], 7
call fcn.0043d186
cmp dword [ebp - 0x69c], 0x400
jae 0x439e6f
mov ecx, dword [ebp - 0x6b4]
mov eax, dword [ebp + 0x14]
cmp dword [ecx], eax
jae 0x439e6f
cmp dword [ebp - 0x694], 0
jne 0x439e6f
cmp dword [ebp - 0x6e4], esi
jne 0x439c97
mov eax, dword [ebp - 0x6b8]
cmp eax, dword [ebp - 0x6a0]
jne 0x439c97
lea ecx, [ebp - 0x6f4]
call fcn.0043d186
lea ecx, [ebp - 0x700]
call fcn.0043d186
jmp 0x43a0ca
push str.NtReadVirtualMemory_unicode_path_failed__error:
lea ecx, [ebp - 0x694]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 0xc
push esi
lea edx, [ebp - 0x694]
inc ecx
call fcn.00414d76
pop ecx
mov ecx, dword [ebp - 0x694]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x6d4]
call fcn.0043d186
jmp 0x439efb
push str.NtReadVirtualMemory_read_ldr_table_entry_failed__error:
lea ecx, [ebp - 0x694]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 0xa
push esi
lea edx, [ebp - 0x694]
inc ecx
call fcn.00414d76
pop ecx
mov ecx, dword [ebp - 0x694]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x6e0]
call fcn.0043d186
lea ecx, [ebp - 0x6f4]
call fcn.0043d186
lea ecx, [ebp - 0x700]
call fcn.0043d186
jmp 0x43a0d0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43a0a8
lea eax, [ebp - 0x688]
mov dword [ebp - 0x688], 0x428
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x43a09f
and dword [ebp - 0x69c], 0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00481070
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x66c]
push dword [ebp - 0x6a0]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x43a03a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x694]
call fcn.00402829
mov ecx, dword [ebp - 0x6a8]
lea eax, [ebp - 0x694]
mov edi, dword [edi]
push eax
lea eax, [ebp - 0x6e8]
push eax
call fcn.0043600d
mov ecx, dword [ebp - 0x694]
mov esi, dword [eax]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp esi, edi
je 0x43a05e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.00402829
mov esi, dword [ebp - 0x6b0]
lea ecx, [ebp - 0x69c]
push ecx
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x6a0]
mov edx, esi
push dword [ebp - 0x6bc]
mov byte [ebp - 4], 0xf
push eax
push dword [ebp - 0x6c0]
call fcn.0043a0e6
mov byte [ebp - 4], 0
add esp, 0x14
mov ecx, dword [ebp - 0x6b8]
mov dword [ebp - 0x690], eax
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x43a064
push esi
lea eax, [ebp - 0x6a4]
push str.GetModuleFileNameEx_failed_for_process__ID:__ld
push eax
call fcn.004027d2
push 0
lea edx, [ebp - 0x6a4]
call fcn.00414ce9
add esp, 0x10
jmp 0x43a06a
mov esi, dword [ebp - 0x6b0]
mov edi, dword [ebp - 0x6a8]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [ebp - 0x6b4]
sub eax, dword [ebp + 0x1c]
cmp dword [ebp - 0x69c], 0
mov dword [ecx], eax
jne 0x43a09f
cmp eax, dword [ebp + 0x14]
jae 0x43a09f
lea eax, [ebp - 0x688]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x439f5c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43a0ca
push esi
lea eax, [ebp - 0x6a4]
push str.CreateToolhelp32Snapshot::TH32CS_SNAPMODULE_failed_for_process__ID:__ld
push eax
call fcn.004027d2
push 0
lea edx, [ebp - 0x6a4]
call fcn.00414ce9
add esp, 0x10
mov esi, dword [ebp - 0x690]
mov ecx, dword [ebp - 0x6a4]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.00468bf6
ret