Function at 0x404a50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x1138]
mov eax, 0x1138
call fcn.0042f260
push 0xffffffffffffffff
push 0x438058
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44d958]
xor eax, ebp
mov dword [ebp + 0x1134], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.send
push 0x43b778
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.recv
push str.WS2_32
mov dword [ebp - 0x20], eax
call edi
push eax
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp + 0x30]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x404add
mov eax, 1
jmp 0x404d0b
push 0x104
lea eax, [ebp + 0x1030]
push 0
push eax
call fcn.00430eb0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp + 0x18]
add esp, 0xc
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0x2c], 0xf
push 0
push 0x43a767
mov dword [ebp + 0x28], 0
mov byte [ebp + 0x18], 0
call fcn.004028e0
mov dword [ebp - 4], 0
xor edi, edi
test ebx, ebx
je 0x404c59
nop dword [eax]
mov eax, dword [ebp + edi*4 + 0x30]
test eax, eax
je 0x404c50
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404c49
push 3
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x404c49
push 0x104
lea eax, [ebp + 0x1030]
push eax
push dword [ebp - 0x18]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
cmp byte [ebp + 0x1030], 0
jne 0x404ba0
xor eax, eax
jmp 0x404bb9
lea eax, [ebp + 0x1030]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404bb0
sub eax, edx
push eax
lea eax, [ebp + 0x1030]
push eax
lea ecx, [ebp + 0x18]
call fcn.004028e0
push str.ee7c9d4c83f322447c3d57aea558f664
sub esp, 0x18
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004027d0
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0
call fcn.00403a20
add esp, 0x1c
mov byte [ebp - 4], 2
push eax
call fcn.0040f210
add esp, 8
mov bl, al
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x10
jb 0x404c30
inc ecx
push ecx
push dword [ebp]
lea ecx, [ebp]
call fcn.004029e0
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], 0
mov byte [ebp], 0
test bl, bl
jne 0x404ca1
mov ebx, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x404b40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, eax
push 0
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push dword [ebp - 0x20]
push esi
call edi
mov al, byte [ebp - 0xd]
cmp al, 0xe9
je 0x404ca1
cmp al, 0xe8
je 0x404ca1
push 0
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x24]
push esi
call edi
mov al, byte [ebp - 0xd]
cmp al, 0xe9
je 0x404ca1
cmp al, 0xe8
je 0x404ca1
xor esi, esi
jmp 0x404ca6
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2c]
cmp eax, 0x10
jb 0x404cf7
mov ecx, dword [ebp + 0x18]
inc eax
cmp eax, 0x1000
jb 0x404cee
test cl, 0x1f
je 0x404cca
call fcn.004179ef
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x404cd6
call fcn.004179ef
sub ecx, eax
cmp ecx, 4
jae 0x404ce2
call fcn.004179ef
cmp ecx, 0x23
jbe 0x404cec
call fcn.004179ef
mov ecx, eax
push ecx
call fcn.0042eb69
add esp, 4
mov dword [ebp + 0x2c], 0xf
mov eax, esi
mov dword [ebp + 0x28], 0
mov byte [ebp + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1134]
xor ecx, ebp
call fcn.0042eb7c
lea esp, [ebp + 0x1138]
pop ebp
ret