Function at 0x57ae10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, dword [0x607460]
mov eax, dword [esi]
test eax, eax
jne 0x57ae34
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b065
mov dword [esi], eax
push 0x4000
push 8
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b065
mov edi, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x1000
mov dword [ebp - 0x40], 0x1000
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x4000
push edi
call sub.psapi.dll_EnumProcesses
test eax, eax
mov dword [ebp - 0x10], edi
je 0x57af00
mov edi, dword [0x607474]
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x57ae9b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b076
mov dword [esi], eax
push 0x4000
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b076
mov ebx, eax
push 0x4000
push dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x1000
mov dword [ebp - 0x24], 0x1000
mov eax, esi
shr eax, 2
cmp esi, 0x4004
jae 0x57b087
cmp esi, 4
mov dword [ebp - 0x30], eax
jae 0x57afac
mov edi, 4
xor esi, esi
jmp 0x57afe5
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 0x606004
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x42bbb0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x54]
push ecx
push eax
call fcn.0041acc0
add esp, 8
mov eax, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x54]
mov ecx, esi
mov esi, dword [0x607474]
mov edi, ecx
mov dword [ebp - 0x24], eax
movsd qword [ebp - 0x2c], xmm0
movzx eax, byte [esi]
mov eax, dword [ecx]
test eax, eax
jne 0x57af79
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b09c
mov dword [edi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b09c
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x2c]
movsd qword [ebx], xmm0
movzx eax, byte [esi]
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x57b012
mov edi, dword [ebp + 8]
jmp 0x57b024
movzx eax, byte [edi]
mov eax, dword [0x607460]
and esi, 0xfffffffc
mov eax, dword [eax]
test eax, eax
jne 0x57afd2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b0b8
mov ecx, dword [0x607460]
mov dword [ecx], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b0b8
mov edi, eax
push esi
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push ebx
push 0
mov esi, dword [0x607460]
push dword [esi]
call sub.KERNEL32.dll_HeapFree
jmp 0x57b04f
call sub.KERNEL32.dll_GetProcessHeap
mov edi, dword [ebp + 8]
test eax, eax
je 0x57b0aa
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b0aa
mov dword [eax], ebx
mov dword [eax + 4], 0x6044d0
mov byte [eax + 8], 0x27
mov dword [edi + 8], eax
mov dword [edi + 4], 3
mov dword [edi], 0
push dword [ebp - 0x10]
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4000
push 4
call fcn.0041a8c0
add esp, 8
ud2
push 0x4000
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b0c3
push 0x606040
push 0x1000
push eax
call fcn.004287f0
add esp, 0xc
jmp 0x57b0c3
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b0c3
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b0c3
push esi
push 4
call fcn.0041a8c0
add esp, 8
ud2