Function at 0x436702
Capabilities:
Enumerate process modules

Disassembly:
push 0x6fc
mov eax, 0x4b1b30
call fcn.0046afbc
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.00451171
push eax
lea ecx, [ebp - 0x6a4]
call fcn.00402899
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.0043597f
test al, al
jne 0x436c37
push 0x4e9e20
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x43679a
push str.SHGetFolderPath_failed
lea ecx, [ebp - 0x690]
call fcn.00402829
mov byte [ebp - 4], 1
jmp 0x4367ec
push str.NtWow64QueryInformationProcess64
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x694], eax
test eax, eax
jne 0x4367c6
push str.GetProcAddress_NtWow64QueryInformationProcess64_failed__error:
lea ecx, [ebp - 0x690]
call fcn.00402829
mov byte [ebp - 4], 2
jmp 0x4367ec
push str.NtWow64ReadVirtualMemory64
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x4367f6
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 0x436833
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 [0x4b97ec]
call esi
mov esi, eax
test esi, esi
je 0x436856
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.00414122
pop ecx
mov ecx, dword [ebp - 0x690]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x436de6
push ecx
lea eax, [ebp - 0x689]
mov byte [ebp - 0x689], 0
push eax
push 0x38
lea ecx, [ebp - 0x700]
call fcn.00439f69
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 [0x4b97ec]
call edi
mov esi, eax
test esi, esi
je 0x4368e3
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.00414122
pop ecx
mov ecx, dword [ebp - 0x690]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x436c27
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.00439f69
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 [0x4b97ec]
call edi
mov esi, eax
test esi, esi
je 0x43697b
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.00414122
pop ecx
mov ecx, dword [ebp - 0x690]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x436c1c
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.00439f69
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 [0x4b97ec]
call edi
mov esi, eax
test esi, esi
jne 0x436bdf
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.00439f69
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 [0x4b97ec]
call edi
mov esi, eax
test esi, esi
jne 0x436ba0
lea edx, [ebp - 0x6d4]
lea ecx, [ebp - 0x230]
call fcn.00433fd3
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.0040a17c
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.00432ad2
cmp dword [eax], esi
je 0x436af0
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.00436dfc
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.0043a397
lea ecx, [ebp - 0x6d4]
call fcn.00439f46
lea ecx, [ebp - 0x6e0]
mov byte [ebp - 4], 7
call fcn.00439f46
cmp dword [ebp - 0x69c], 0x400
jae 0x436b85
mov ecx, dword [ebp - 0x6b4]
mov eax, dword [ebp + 0x14]
cmp dword [ecx], eax
jae 0x436b85
cmp dword [ebp - 0x694], 0
jne 0x436b85
cmp dword [ebp - 0x6e4], esi
jne 0x4369ad
mov eax, dword [ebp - 0x6b8]
cmp eax, dword [ebp - 0x6a0]
jne 0x4369ad
lea ecx, [ebp - 0x6f4]
call fcn.00439f46
lea ecx, [ebp - 0x700]
call fcn.00439f46
jmp 0x436de0
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.00414122
pop ecx
mov ecx, dword [ebp - 0x694]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x6d4]
call fcn.00439f46
jmp 0x436c11
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.00414122
pop ecx
mov ecx, dword [ebp - 0x694]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x6e0]
call fcn.00439f46
lea ecx, [ebp - 0x6f4]
call fcn.00439f46
lea ecx, [ebp - 0x700]
call fcn.00439f46
jmp 0x436de6
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x436dbe
lea eax, [ebp - 0x688]
mov dword [ebp - 0x688], 0x428
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x436db5
and dword [ebp - 0x69c], 0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00483730
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 0x436d50
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.00432ad2
mov ecx, dword [ebp - 0x694]
mov esi, dword [eax]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp esi, edi
je 0x436d74
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.00436dfc
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 0x436d7a
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.004140b9
add esp, 0x10
jmp 0x436d80
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 0x436db5
cmp eax, dword [ebp + 0x14]
jae 0x436db5
lea eax, [ebp - 0x688]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x436c72
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x436de0
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.004140b9
add esp, 0x10
mov esi, dword [ebp - 0x690]
mov ecx, dword [ebp - 0x6a4]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.0046af66
ret