Function at 0x4157e7
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x4564f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
push 0x40402c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
call fcn.0044efe3
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
push edi
add eax, 0x10
push eax
lea ecx, [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0044ecce
jmp 0x415844
xor edi, edi
mov esi, dword [0x458858]
cmp esi, edi
je 0x41588e
push 0xc
push 3
mov ecx, esi
call fcn.00414777
test al, al
je 0x41588e
push dword [ebp - 0x18]
lea ecx, [ebp - 0x89c]
push 0x404010
push 0xc
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], esi
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push edi
push dword [ebp - 0x18]
add eax, ecx
add eax, ebx
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x415a0e
sub dword [ebp - 0x18], edi
add ebx, edi
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x38], ebx
jne 0x415842
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
mov edi, eax
mov eax, dword [ebp - 0x2c]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
sar edi, 4
cmp eax, edi
mov dword [ebp - 0x2c], eax
jge 0x41590e
mov esi, eax
mov ebx, edi
shl esi, 4
sub ebx, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
add eax, esi
add eax, ecx
push eax
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x48
push eax
call fcn.00412184
add esi, 0x10
dec ebx
jne 0x4158ea
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
cmp eax, 1
jge 0x415916
xor eax, eax
inc eax
cmp eax, edi
jge 0x41594c
mov edx, eax
shl edx, 4
sub edi, eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x20]
add eax, edx
add eax, dword [ebp - 0x28]
xor ecx, ecx
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
add esi, ecx
mov esi, dword [esi + edi]
xor dword [ecx + eax], esi
add ecx, 4
cmp ecx, 0x10
jl 0x41592e
add edx, 0x10
dec dword [ebp - 0x18]
jne 0x415924
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov byte [ecx + ebx], 0
mov eax, dword [ebp - 0x1c]
push 0x10
pop ecx
sub eax, ebx
cmp eax, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ecx
ja 0x41596d
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
lea eax, [eax + ecx + 0x10]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41597a
sub eax, esi
lea ecx, [ebx - 0x10]
cmp eax, ecx
je 0x415842
lea eax, [ebp - 0x94]
push eax
call fcn.004105c1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add ebx, 0xfffffff0
push ebx
lea eax, [ecx + eax + 0x10]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00410cf1
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00410db6
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, ecx
push 4
pop ecx
lea edi, [ebp - 0x14]
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x415a7a
mov eax, dword [0x458858]
push 0x403fec
xor edi, edi
push 0xc
lea ecx, [ebp - 0x89c]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], eax
call fcn.0044ef27
push eax
call fcn.0044ed72
pop ecx
pop ecx
jmp 0x415a50
mov esi, dword [0x458858]
test esi, esi
je 0x415a57
push 0xc
push 3
mov ecx, esi
call fcn.00414777
test al, al
je 0x415a57
and dword [ebp - 0x9c], 0
push edi
push 0x403fd8
push 0xc
lea ecx, [ebp - 0x89c]
mov dword [ebp - 0x98], esi
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
lea ecx, [ebp - 0x28]
call fcn.00414f80
lea ecx, [ebp - 0x3c]
call fcn.0044f049
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8b
leave
ret 8
push 0xffffffffffffffff
add eax, 0x10
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call fcn.0043da7b
mov esi, dword [0x458858]
add esp, 0x10
test esi, esi
je 0x415ae6
push 0xc
push 3
mov ecx, esi
call fcn.00414777
test al, al
je 0x415ae6
mov eax, dword [ebp - 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415aad
and dword [ebp - 0x9c], 0
sub eax, edx
push eax
push 0x403fbc
push 0xc
lea ecx, [ebp - 0x89c]
mov dword [ebp - 0x98], esi
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
mov eax, dword [ebp - 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415aec
sub eax, edx
mov edi, eax
jmp 0x415a57