Function at 0x468310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [eax + 0x58], 0
jne 0x46833e
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004063d0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, eax
and eax, 7
shr ecx, 3
push ebx
mov ebx, dword [ebp + 8]
mov dword [edx], eax
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x46850e
push esi
push edi
mov esi, dword [ebx + edx*8 + 4]
mov edi, dword [ebx + edx*8]
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], 0x10
nop word [eax + eax]
mov eax, dword [ebp - 4]
lea edx, [edx - 0x61c88647]
mov ebx, dword [ebp - 4]
mov ecx, esi
shr ecx, 5
add ecx, dword [eax + 0xc]
mov eax, esi
shl eax, 4
add eax, dword [ebx + 8]
xor ecx, eax
lea eax, [edx + esi]
xor ecx, eax
mov eax, ebx
add edi, ecx
mov ecx, edi
shr ecx, 5
add ecx, dword [eax + 0x14]
mov eax, edi
shl eax, 4
add eax, dword [ebx + 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add esi, ecx
sub dword [ebp - 8], 1
jne 0x468380
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
cmp eax, 8
jb 0x468400
lea eax, [ecx + 8]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x4683ed
mov eax, dword [ebx]
mov dword [eax + ecx], edi
mov dword [eax + ecx + 4], esi
mov byte [eax + ecx + 8], 0
mov ecx, ebx
jmp 0x4684e1
mov eax, closesocket
sub eax, ecx
cmp eax, 8
jb 0x468529
lea eax, [ecx + 8]
mov ebx, eax
mov dword [ebp - 0xc], eax
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x46842a
mov ebx, closesocket
jmp 0x468448
mov ecx, edx
mov eax, closesocket
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x468440
mov ebx, closesocket
jmp 0x468448
lea eax, [ecx + edx]
cmp ebx, eax
cmovb ebx, eax
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 1]
push eax
call fcn.00406630
cmp dword [ebp - 8], 0x10
mov edx, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ebx
push ecx
lea ebx, [edx + ecx]
mov dword [ebp - 0x18], ebx
jb 0x4684c6
mov ebx, eax
mov eax, dword [ebx]
push eax
push edx
mov dword [ebp - 0xc], eax
call fcn.0057f5e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 8]
inc ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov byte [eax + 8], 0
mov eax, dword [ebp - 0xc]
cmp ecx, 0x1000
jb 0x4684b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468524
mov eax, edx
push ecx
push eax
call fcn.0057d721
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [ebx], eax
mov ecx, ebx
jmp 0x4684e1
push eax
push edx
call fcn.0057f5e0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov byte [ebx + 8], 0
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 0x20]
jb 0x468364
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov eax, dword [eax]
sub ebx, eax
add ebx, dword [ebp + 0xc]
push eax
push ebx
call fcn.00406510
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
sub ebx, eax
add ebx, dword [ebp + 0xc]
push eax
push ebx
call fcn.00406510
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.005875f7
call fcn.004038c0
int3