Function at 0x100a5690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword fs:[0x2c]
sub esp, 0x34
mov ecx, dword [0x10217cb0]
push ebx
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x104ee83c]
push edi
mov edi, dword [0x10217ca4]
cmp eax, dword [esi + 4]
jle 0x100a5893
push 0x104ee83c
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee83c], 0xffffffff
jne 0x100a5893
cmp byte [0x101b01af], 0
mov eax, dword [0x1021663c]
movups xmm0, xmmword [str.WYiTKTeISIaP6_01__GWT_h_VVWUNWP.A]
mov ecx, dword [eax + 8]
mov eax, dword [0x101b01ac]
mov dword [esp + 0xc], ecx
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], eax
je 0x100a5875
xor ebx, ebx
cmp edi, 2
jl 0x100a5844
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed430]
movaps xmm5, xmmword [0x101ed0a0]
movaps xmmword [esp + 0x10], xmm0
mov edx, dword [esp + 0x10]
nop word [eax + eax]
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, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x20]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x20], 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 + ebx + 0x24]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x24], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100a5740
cmp ebx, 0x14
jge 0x100a5875
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x20], al
inc ebx
cmp ebx, 0x14
jl 0x100a5844
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee83c
mov dword [0x104ee434], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x104ee7fc]
cmp eax, dword [esi + 4]
jle 0x100a5a76
push 0x104ee7fc
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee7fc], 0xffffffff
jne 0x100a5a76
mov eax, dword [0x1021663c]
xor ebx, ebx
movups xmm0, xmmword [str.WYiTKTeV_EaL___3]
mov ecx, dword [eax + 8]
mov eax, dword [0x101b01dc]
mov dword [esp + 0x30], eax
mov ax, word [0x101b01e0]
mov word [esp + 0x34], ax
mov al, byte [0x101b01e2]
mov dword [esp + 0xc], ecx
mov byte [esp + 0x36], al
movups xmmword [esp + 0x20], xmm0
cmp edi, 2
jl 0x100a5a27
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed430]
movaps xmm5, xmmword [0x101ed0a0]
movaps xmmword [esp + 0x10], xmm0
mov edx, 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, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x20]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x20], 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 + ebx + 0x24]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x24], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100a5923
cmp ebx, 0x17
jge 0x100a5a58
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x20], al
inc ebx
cmp ebx, 0x17
jl 0x100a5a27
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee7fc
mov dword [0x104ee800], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x104ee7ac]
cmp eax, dword [esi + 4]
jle 0x100a5c26
push 0x104ee7ac
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee7ac], 0xffffffff
jne 0x100a5c26
mov eax, dword [0x1021663c]
xor ebx, ebx
movq xmm0, qword [str.WYiTKTeISIaG_]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x101afff0]
mov dword [esp + 0x18], eax
mov al, byte [0x101afff4]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1c], al
cmp edi, 2
jl 0x100a5bd7
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm4, xmmword [0x101ed430]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [str.4444444444444444]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.WYiTKTeISIaG_]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x14]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 0xd
jl 0x100a5bd7
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee7ac
mov dword [0x104ee7a8], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x104ee820]
cmp eax, dword [esi + 4]
jle 0x100a5dd0
push 0x104ee820
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee820], 0xffffffff
jne 0x100a5dd0
mov eax, dword [0x1021663c]
xor ebx, ebx
movq xmm0, qword [str.WYiTKTeISIaF_]
mov esi, dword [eax + 8]
mov eax, dword [0x101b01ec]
mov dword [esp + 0x18], eax
mov al, byte [0x101b01f0]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1c], al
cmp edi, 2
jl 0x100a5d83
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm4, xmmword [0x101ed430]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [str.4444444444444444]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.WYiTKTeISIaF_]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x14]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 0xd
jl 0x100a5d83
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee820
mov dword [0x104ee85c], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x10216634]
cmp byte [eax + 0x15b0], 0
jne 0x100a5e3f
cmp byte [eax + 0x15b4], 0
je 0x100a5e3f
mov ecx, dword [0x104ee800]
push 0x320
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x104ee434]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x104ee7a8]
mov eax, dword [0x10216634]
mov edx, dword [ecx]
push dword [eax + 0x15b8]
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [0x104ee85c]
mov eax, dword [0x10216634]
mov edx, dword [ecx]
push dword [eax + 0x15bc]
mov eax, dword [edx + 0x40]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x104ee434]
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