Function at 0x5c0bd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x6a6618
xor esi, esi
call fcn.005bfc20
lea eax, [ebp - 4]
push eax
push 0x1000
push 0x6a74f8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x5c0c28
push 0x6a6618
call fcn.005bfc50
push str.Unable_to_enumerate_current_process_modules.
mov esi, 0xc00000e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005bfee0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x6a6618
call fcn.005bfc50
mov eax, dword [ebp - 4]
shr eax, 2
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push 0
mov dword [ebp - 4], eax
call fcn.005bfd30
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x5c0c6d
push str.Unable_to_allocate_memory_for_module_information.
mov ebx, 0xc0000017
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005bfee0
jmp 0x5c0cb8
mov edx, dword [ebp - 4]
imul edx, edx, 0x110
push edx
push 1
call fcn.005bfd30
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x5c0c9f
mov eax, dword [ebp - 4]
imul eax, eax, 0x104
push eax
push 1
call fcn.005bfd30
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x5c0cd5
push str.Unable_to_allocate_memory.
mov ebx, 0xc0000017
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005bfee0
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x5c0cc2
push edi
call fcn.005bfdc0
test esi, esi
je 0x5c0ccc
push esi
call fcn.005bfdc0
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
cmp dword [ebp - 4], esi
jbe 0x5c0dbe
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
add ebx, 0xc
mov ecx, dword [esi*4 + 0x6a74f8]
push 0xc
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x5c0dab
mov edx, dword [ebp - 8]
mov eax, dword [esi*4 + 0x6a74f8]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5c0dab
mov ecx, dword [edi]
mov esi, dword [ebp - 8]
mov dword [ebx - 8], ecx
mov edx, dword [edi + 4]
mov dword [ebx - 4], edx
mov ecx, 0x41
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsb byte es:[edi], byte [esi]
call fcn.005c16c0
test eax, eax
jl 0x5c0d6f
cmp byte [ebx + eax], 0x5c
je 0x5c0d65
sub eax, 1
jns 0x5c0d58
jmp 0x5c0d6f
lea eax, [ebx + eax + 1]
mov dword [ebx + 0x100], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jae 0x5c0d82
lea edx, [ebx + 0x104]
mov dword [ebx - 0xc], edx
jmp 0x5c0d89
mov dword [ebx - 0xc], 0
add dword [ebp - 0x10], 0xc
add dword [ebp - 8], 0x104
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
mov eax, 1
add dword [ebp - 0x18], eax
add dword [ebp - 0xc], eax
add ebx, 0x110
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 4]
jb 0x5c0cf6
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
push 0x6a6618
call fcn.005bfc20
mov eax, dword [0x6a8504]
test eax, eax
je 0x5c0dd7
push eax
call fcn.005bfdc0
mov eax, dword [0x6a84f8]
test eax, eax
je 0x5c0de6
push eax
call fcn.005bfdc0
mov eax, dword [0x6a8508]
test eax, eax
je 0x5c0df5
push eax
call fcn.005bfdc0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push 0x6a6618
mov dword [0x6a8508], eax
mov dword [0x6a8504], edi
mov dword [0x6a84f8], ebx
mov dword [0x6a84fc], ecx
call fcn.005bfc50
push 0x617e3c
push 0
call fcn.005bfee0
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret