Function at 0x4edbd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
test eax, eax
je 0x4edc9d
mov ebx, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push 4
push ecx
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4edd72
mov eax, dword [0x56bbf8]
mov eax, dword [eax]
test eax, eax
jne 0x4edc3b
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edfa0
mov ecx, dword [0x56bbf8]
mov dword [ecx], eax
push 0x208
push 8
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edfa0
movsd xmm0, qword [0x56aa80]
mov edi, eax
mov dword [ebp - 0x4c], eax
movsd qword [ebp - 0x48], xmm0
push 0x104
push eax
push dword [ebp - 0x40]
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4ede5e
xor eax, eax
nop dword [eax + eax]
cmp word [edi + eax*2], 0
je 0x4edf5f
inc eax
cmp eax, 0x104
jne 0x4edc80
mov eax, 0x104
jmp 0x4edf6a
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x24], 0x56ac44
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x41b090
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004089e0
add esp, 8
mov eax, dword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x3c]
mov ebx, dword [0x56bbf8]
mov dword [ebp - 0x1c], eax
movsd qword [ebp - 0x24], xmm0
mov eax, dword [ebx]
test eax, eax
jne 0x4edd0f
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edfb1
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edfb1
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x3c]
movsd qword [eax], xmm0
mov byte [ebp - 0x1c], 0x27
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x56aaa0
mov eax, dword [ebx]
test eax, eax
jne 0x4edd4f
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edd61
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
jne 0x4ede3a
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee00a
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x24], 0x56ac8c
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x41b090
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004089e0
add esp, 8
mov eax, dword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x3c]
mov ebx, dword [0x56bbf8]
mov dword [ebp - 0x1c], eax
movsd qword [ebp - 0x24], xmm0
mov eax, dword [ebx]
test eax, eax
jne 0x4edde4
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edfbf
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edfbf
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x3c]
movsd qword [eax], xmm0
mov byte [ebp - 0x1c], 0x27
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x56aaa0
mov eax, dword [ebx]
test eax, eax
jne 0x4ede28
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edfcd
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edfcd
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x24]
movsd qword [eax], xmm0
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov dword [esi], 0
jmp 0x4edf96
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 0x56ac68
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x41b090
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
lea ebx, [ebp - 0x24]
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004089e0
add esp, 8
mov eax, dword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x56bbf8]
movsd qword [ebp - 0x30], xmm0
movsd qword [ebp - 0x24], xmm0
mov eax, dword [eax]
test eax, eax
jne 0x4ededd
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edfdb
mov ecx, dword [0x56bbf8]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edfdb
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x30]
movsd qword [eax], xmm0
mov byte [ebp - 0x1c], 0x27
mov dword [ebp - 0x24], eax
mov eax, dword [0x56bbf8]
mov dword [ebp - 0x20], 0x56aaa0
mov eax, dword [eax]
test eax, eax
jne 0x4edf2c
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edfe9
mov ecx, dword [0x56bbf8]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edfe9
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x24]
movsd qword [eax], xmm0
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov dword [esi], 0
jmp 0x4edf87
cmp eax, 0x105
jae 0x4edff7
mov edx, edi
lea ecx, [ebp - 0x24]
push eax
call fcn.004ebfd0
add esp, 4
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
push edi
push 0
mov eax, dword [0x56bbf8]
push dword [eax]
call sub.kernel32.dll_HeapFree
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push 0x208
call fcn.004085f0
add esp, 8
ud2
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee00a
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee00a
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee00a
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee00a
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee00a
push 0x56ad30
push 0x104
push eax
call fcn.00417f20
add esp, 0xc
ud2