Function at 0x100aef10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov ecx, 0x1042354c
push edi
call fcn.100af720
mov ecx, esi
call fcn.100a9860
mov ecx, esi
call fcn.100a8e80
cmp esi, 1
jne case.0x100af6b7.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10217cb0]
mov edi, dword [0x10217ca4]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x104ee0bc]
cmp eax, dword [esi + 4]
jle 0x100af10f
push 0x104ee0bc
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee0bc], 0xffffffff
jne 0x100af10f
mov eax, dword [0x1021663c]
xor ebx, ebx
movq xmm0, qword [str.YTBhLVWOWX_5B]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x101b0134]
mov dword [esp + 0x18], eax
mov ax, word [0x101b0138]
mov word [esp + 0x1c], ax
mov al, byte [0x101b013a]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x100af0c0
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm3, xmmword [0x101ed430]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
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
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [str.YTBhLVWOWX_5B]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
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]
movd xmm0, dword [esp + 0x14]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
nop dword [eax + eax]
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, 0xf
jl 0x100af0c0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee0bc
mov dword [0x104ee838], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x104ee804]
cmp eax, dword [esi + 4]
jle 0x100af2bf
push 0x104ee804
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee804], 0xffffffff
jne 0x100af2bf
cmp byte [0x101b00ef], 0
mov eax, dword [0x1021663c]
mov edx, dword [0x101b00e8]
mov ecx, dword [eax + 8]
mov eax, dword [0x101b00ec]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
je 0x100af2a1
xor ebx, ebx
cmp edi, 2
jl 0x100af270
movaps xmm2, xmmword [0x101ed000]
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, edx
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 [0x101b00ec]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
jmp 0x100af2a1
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, 8
jl 0x100af270
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee804
mov dword [0x104ee430], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x104ee7c8]
cmp eax, dword [esi + 4]
jle 0x100af47f
push 0x104ee7c8
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee7c8], 0xffffffff
jne 0x100af47f
mov eax, dword [0x1021663c]
xor ebx, ebx
movq xmm0, qword [str.WYiTKTeRS__B]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x101b002c]
mov dword [esp + 0x18], eax
mov ax, word [0x101b0030]
mov word [esp + 0x1c], ax
mov al, byte [0x101b0032]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x100af430
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.WYiTKTeRS__B]
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
nop dword [eax + eax]
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, 0xf
jl 0x100af430
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee7c8
mov dword [0x104ee7f4], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x104ee834]
cmp eax, dword [esi + 4]
jle 0x100af65d
push 0x104ee834
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee834], 0xffffffff
jne 0x100af65d
cmp byte [0x101b01af], 0
mov eax, dword [0x1021663c]
movups xmm0, xmmword [str.WYiTKTeISIaP6_01__GWT_h_VVWUNWP.A]
mov esi, dword [eax + 8]
mov eax, dword [0x101b01ac]
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x3c], eax
je 0x100af63d
xor ebx, ebx
cmp edi, 2
jl 0x100af610
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed430]
movaps xmm5, xmmword [0x101ed0a0]
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 + 0x2c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x2c], 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 + 0x30]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x30], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100af504
cmp ebx, 0x14
jge 0x100af63d
nop dword [eax + eax]
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 + 0x2c], al
inc ebx
cmp ebx, 0x14
jl 0x100af610
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x104ee834
mov dword [0x104ee854], eax
call fcn.1015fe70
add esp, 4
mov ecx, dword [0x104ee838]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x104ee430]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x104ee7f4]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x104ee854]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x10216634]
cmp byte [eax + 0x19dc], 0
je case.0x100af6b7.0
mov ecx, dword [eax + 0x19e0]
add eax, 0x19e0
cmp ecx, 3
ja case.0x100af6b7.0
jmp dword [ecx*4 + 0x100af700]
mov ecx, eax
call fcn.100be310
jmp 0x100af6ca
mov al, byte [eax + 0x20]
test al, al
je case.0x100af6b7.0
mov eax, dword [0x102187c8]
mov ecx, dword [eax]
test ecx, ecx
je case.0x100af6b7.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je case.0x100af6b7.0
mov eax, dword [0x10216630]
mov eax, dword [eax + 8]
mov byte [eax + 0xa9], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret