Function at 0x1010a6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
push ebx
push esi
push edi
cmp ecx, 1
jne 0x1010aaa0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10217cb0]
mov ebx, dword [0x10217ca4]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x104eea20]
cmp eax, dword [esi + 4]
jle 0x1010a8a5
push 0x104eea20
call fcn.1015fec1
add esp, 4
cmp dword [0x104eea20], 0xffffffff
jne 0x1010a8a5
mov eax, dword [0x1021663c]
xor ebx, ebx
cmp dword [0x10217ca4], 2
movups xmm0, xmmword [0x101e5284]
mov edi, dword [eax + 8]
mov ax, word [0x101e5294]
mov word [esp + 0x39], ax
mov al, byte [0x101e5296]
movups xmmword [esp + 0x29], xmm0
mov byte [esp + 0x3b], al
jl 0x1010a855
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed410]
movaps xmm5, xmmword [0x101ed0c0]
movaps xmmword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x29]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x29], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x2d]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x2d], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x1010a751
cmp ebx, 0x13
jge 0x1010a87f
mov eax, 0x8d3dcb09
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [esp + ebx + 0x29], cl
inc ebx
cmp ebx, 0x13
jl 0x1010a855
mov eax, dword [edi]
lea ecx, [esp + 0x29]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x104eea20
mov dword [0x104eecc0], eax
call fcn.1015fe70
mov ebx, dword [0x10217ca4]
add esp, 4
mov eax, dword [0x104eecbc]
cmp eax, dword [esi + 4]
jle 0x1010aa7f
push 0x104eecbc
call fcn.1015fec1
add esp, 4
cmp dword [0x104eecbc], 0xffffffff
jne 0x1010aa7f
mov eax, dword [0x1021663c]
xor ecx, ecx
movups xmm0, xmmword [0x101e4d9c]
mov esi, dword [eax + 8]
mov eax, dword [0x101e4dac]
mov dword [esp + 0x39], eax
mov ax, word [0x101e4db0]
mov word [esp + 0x3d], ax
mov al, byte [0x101e4db2]
mov byte [esp + 0x3f], al
movups xmmword [esp + 0x29], xmm0
cmp ebx, 2
jl 0x1010aa35
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed410]
movaps xmm5, xmmword [0x101ed0c0]
movaps xmmword [esp + 0x10], xmm0
mov edx, dword [esp + 0x10]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x29]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ecx + 0x29], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x2d]
xorps xmm1, xmm0
movd dword [esp + ecx + 0x2d], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x1010a931
cmp ecx, 0x17
jge 0x1010aa5f
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x3a
sub dl, al
add dl, 0x34
xor byte [esp + ecx + 0x29], dl
inc ecx
cmp ecx, 0x17
jl 0x1010aa35
mov eax, dword [esi]
lea ecx, [esp + 0x29]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x104eecbc
mov dword [0x104eeae4], eax
call fcn.1015fe70
add esp, 4
mov ecx, dword [0x104eecc0]
push 0x258
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x104eeae4]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret