Function at 0x40fc50
Capabilities:
Access peb ldr_data
Encode data using xor
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 0x590330
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x5fcff4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movups xmm0, xmmword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x20]
mov eax, dword [ebx + 0x30]
mov edx, esi
add eax, 0x11
mov dword [ebp - 0x48], 0x10
cmp dword [ebx + 0x34], 0x10
mov dword [esi], eax
cmovae ecx, dword [ebx + 0x20]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0xf], al
test al, al
jne 0x40fcd0
mov dword [esi + 0xc], 1
mov eax, dword [esi + 0x3014]
cmp eax, dword [esi + 0x3018]
je 0x40fd45
mov edx, dword [esi]
mov ecx, dword [esi + 0x3010]
mov dword [esi + 4], ecx
test edx, edx
je 0x40fd20
mov edi, esi
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5dc328]
sub edx, 1
jne 0x40fd03
mov edi, dword [ebp - 0x40]
mov edx, 4
mov dword [esi + 4], ecx
cmp dword [esi], edx
jbe 0x40fd45
nop dword [eax]
movzx ecx, byte [edx + esi]
mov eax, dword [esi + 0x3014]
mov al, byte [ecx + eax]
mov byte [edx + esi], al
inc edx
cmp edx, dword [esi]
jb 0x40fd30
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x3c]
push 0
push dword [esi]
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x2000
lea eax, [esi + 0x1010]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x40fe11
mov esi, dword [ebp - 0x3c]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebx + 0x34]
cmp ecx, 0x10
jb 0x40fdef
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fde5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff2f
push ecx
push edx
call fcn.00561389
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00560f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
cmp dword [esi + 0x1010], 0x11
jb 0x40fed8
mov eax, dword [esi + 0x3020]
cmp eax, dword [esi + 0x3024]
je 0x40fed8
mov edx, 4
lea edi, [esi + 0x1010]
nop dword [eax + eax]
movzx ecx, byte [edx + edi]
mov eax, dword [esi + 0x3020]
mov al, byte [ecx + eax]
mov byte [edx + edi], al
inc edx
cmp edx, dword [edi]
jb 0x40fe40
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x3010]
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x3010]
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x40]
test edx, edx
je 0x40fe9d
mov edi, dword [ebp - 0x3c]
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5dc328]
sub edx, 1
jne 0x40fe80
mov edi, dword [ebp - 0x40]
cmp dword [ebp - 0x44], ecx
jne 0x40fed8
lea edx, [esi + 0x1020]
xorps xmm0, xmm0
mov ecx, edx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fec1
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.00407380
jmp 0x40fdbb
mov ecx, dword [ebx + 0x34]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp ecx, 0x10
jb 0x40fdef
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fde5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fde5
call fcn.00567a6f
int3