Function at 0x100cef70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1029912c]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x20]
push edi
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
mov edi, edx
mov esi, edx
shr edi, 4
and esi, 0xf
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x14], 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
movaps xmmword [esp + 0x20], xmm0
jne 0x100cefda
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], eax
mov byte [esp + 0x2f], 1
jmp 0x100cf00e
mov esi, dword [ecx + 0x144]
lea edx, [esp + 0x20]
push 0x10
push edx
push dword [ebp + 0x14]
xor edx, edx
mov dword [ecx + 0x144], 0
push eax
push 0
call fcn.100cea20
mov ecx, dword [esp + 0x1c]
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x144], esi
movaps xmm0, xmmword [esp + 0x20]
lea eax, [esp + 0x30]
push 0x10
push eax
push edx
push dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push dword [ebp + 0x24]
movaps xmmword [esp + 0x34], xmm0
call fcn.100cea20
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x60]
add esp, 0x14
lea edx, [esp + 0x20]
mov ecx, esi
push eax
call fcn.100cd570
add esp, 4
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x30]
push 0x10
call fcn.100bb010
add esp, 4
cmp dword [esp + 0xc], 0
jne 0x100cf06c
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x144], eax
mov ecx, dword [ebp + 0x1c]
xor esi, esi
xor edx, edx
test ecx, ecx
jle 0x100cf15a
cmp ecx, 8
jb 0x100cf113
mov eax, ecx
and eax, reloc.WS2_32.dll_getsockopt
jns 0x100cf092
dec eax
or eax, 0xfffffff8
inc eax
mov esi, ecx
xorps xmm4, xmm4
sub esi, eax
xorps xmm3, xmm3
mov eax, dword [ebp + 0x18]
nop
movd xmm2, dword [eax + edx]
xorps xmm0, xmm0
movd xmm1, dword [esp + edx + 0x30]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [esp + edx + 0x34]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [eax + edx + 4]
add edx, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp edx, esi
jl 0x100cf0a0
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd esi, xmm3
jmp 0x100cf116
mov eax, dword [ebp + 0x18]
cmp edx, ecx
jge 0x100cf140
lea ecx, [esp + 0x30]
sub eax, ecx
mov dword [ebp + 0x18], eax
mov edi, eax
lea eax, [esp + 0x30]
add eax, edx
inc edx
movzx ecx, byte [edi + eax]
movzx eax, byte [eax]
xor ecx, eax
or esi, ecx
cmp edx, dword [ebp + 0x1c]
jl 0x100cf125
mov edi, dword [esp + 0x18]
test esi, esi
je 0x100cf15a
mov eax, 0xffffff4c
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
test edi, edi
je 0x100cf1b4
dec edi
mov eax, 0xf
add byte [esp + eax + 0x20], 1
jne 0x100cf175
dec eax
cmp eax, 0xc
jge 0x100cf168
mov ecx, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
call fcn.100cd570
add esp, 4
lea ecx, [esp + 0x30]
mov edx, esi
push 0x10
call fcn.100bb010
mov eax, dword [esp + 0x10]
add esp, 4
movups xmm0, xmmword [esp + 0x30]
add esi, 0x10
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [esp + 0xc], eax
test edi, edi
jne 0x100cf162
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x100cf204
mov eax, 0xf
add byte [esp + eax + 0x20], 1
jne 0x100cf1ce
dec eax
cmp eax, 0xc
jge 0x100cf1c1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
call fcn.100cd570
add esp, 4
lea ecx, [esp + 0x30]
mov edx, esi
push edi
call fcn.100bb010
add esp, 4
lea eax, [esp + 0x30]
push edi
push eax
push dword [esp + 0x14]
call fcn.101ec960
add esp, 0xc
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret