Function at 0x100ae6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword fs:[0x2c]
mov edx, dword [0x10217cb0]
push ebx
push esi
push edi
mov edi, dword [eax + edx*4]
mov bl, cl
mov eax, dword [0x104ee84c]
mov byte [esp + 0x1b], bl
cmp eax, dword [edi + 4]
jle 0x100ae70b
push 0x104ee84c
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee84c], 0xffffffff
jne 0x100ae70b
push 0x1018c1b0
call fcn.1015fe0a
push 0x104ee84c
call fcn.1015fe70
add esp, 8
mov eax, dword [0x10216634]
mov esi, dword [0x10217ca4]
mov dl, byte [0x10423729]
mov cl, byte [eax + 0x16a5]
test cl, cl
jne 0x100ae733
cmp byte [eax + 0x17ca], 0
je 0x100ae8d7
test dl, dl
jne 0x100ae8c7
mov eax, dword [0x1021663c]
movq xmm0, qword [str.V_Z__MeRQM_4A]
mov ecx, dword [eax + 0x20]
mov eax, dword [0x101ae3ec]
mov dword [esp + 0x28], eax
mov ax, word [0x101ae3f0]
mov dword [esp + 0x1c], ecx
movq qword [esp + 0x20], xmm0
mov word [esp + 0x2c], ax
test ah, ah
je 0x100ae8ab
xor ebx, ebx
cmp esi, 2
jl 0x100ae876
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.V_Z__MeRQM_4A]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x20], 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 + 0x24]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0x24], 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 + 0x20], al
inc ebx
cmp ebx, 0xe
jl 0x100ae876
mov bl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push 0
push edx
push 0x10215b8c
mov eax, dword [eax + 0xc]
call eax
mov byte [0x10423729], 1
jmp 0x100ae8f6
test cl, cl
jne 0x100ae8d3
cmp byte [eax + 0x17ca], cl
je 0x100ae8d7
test bl, bl
je 0x100ae8fb
test dl, dl
je 0x100ae8fb
mov eax, dword [0x1021663c]
push 0x10215b8c
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x10423729], 0
mov eax, dword [0x10216634]
mov ecx, dword [0x104ee81c]
cmp ecx, dword [edi + 4]
jle 0x100ae93b
push 0x104ee81c
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee81c], 0xffffffff
jne 0x100ae936
push 0x1018c1a0
call fcn.1015fe0a
push 0x104ee81c
call fcn.1015fe70
add esp, 8
mov eax, dword [0x10216634]
mov cl, byte [eax + 0x16a5]
mov dl, byte [0x1042372a]
test cl, cl
jne 0x100ae958
cmp byte [eax + 0x17ca], 0
je 0x100aeafd
test dl, dl
jne 0x100aeaed
mov eax, dword [0x1021663c]
movq xmm0, qword [str.V_Z__MeRQM_4A]
mov ecx, dword [eax + 0x20]
mov eax, dword [0x101ae3ec]
mov dword [esp + 0x28], eax
mov ax, word [0x101ae3f0]
mov dword [esp + 0x1c], ecx
movq qword [esp + 0x20], xmm0
mov word [esp + 0x2c], ax
test ah, ah
je 0x100aead1
xor ebx, ebx
cmp esi, 2
jl 0x100aeaa0
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.V_Z__MeRQM_4A]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x20], 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 + 0x24]
xorps xmm1, xmm0
movd dword [esp + 0x24], 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 + 0x20], al
inc ebx
cmp ebx, 0xe
jl 0x100aeaa0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push 0
push edx
push 0x10215b98
mov eax, dword [eax + 0xc]
call eax
mov byte [0x1042372a], 1
jmp 0x100aeb1c
test cl, cl
jne 0x100aeaf9
cmp byte [eax + 0x17ca], cl
je 0x100aeafd
test bl, bl
je 0x100aeb21
test dl, dl
je 0x100aeb21
mov eax, dword [0x1021663c]
push 0x10215b98
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x1042372a], 0
mov eax, dword [0x10216634]
mov ecx, dword [0x104ee808]
cmp ecx, dword [edi + 4]
jle 0x100aeb61
push 0x104ee808
call fcn.1015fec1
add esp, 4
cmp dword [0x104ee808], 0xffffffff
jne 0x100aeb5c
push 0x1018c190
call fcn.1015fe0a
push 0x104ee808
call fcn.1015fe70
add esp, 8
mov eax, dword [0x10216634]
mov dl, byte [eax + 0x150d]
mov cl, byte [0x10423728]
test dl, dl
jne 0x100aeb7e
cmp byte [eax + 0x14ef], 0
je 0x100aed3d
test cl, cl
jne 0x100aed31
mov eax, dword [0x1021663c]
movups xmm0, xmmword [str.DYWN_Ke_SRJL4_2ChXYS_UI_]
mov edi, dword [eax + 0x20]
movups xmmword [esp + 0x20], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x100aed0e
xor ebx, ebx
cmp esi, 2
jl 0x100aece1
movaps xmm0, xmmword [str.4444444444444444]
xor ecx, ecx
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed430]
movaps xmm5, xmmword [0x101ed0a0]
movaps xmmword [esp + 0x30], xmm0
mov edx, dword [esp + 0x30]
nop dword [eax]
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 + 0x20]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ecx + 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 + ecx + 0x24]
xorps xmm1, xmm0
movd dword [esp + ecx + 0x24], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x100aebe0
jmp 0x100aed0e
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, 0x10
jl 0x100aece1
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x10215b88
mov eax, dword [eax + 0xc]
mov ecx, edi
call eax
mov byte [0x10423728], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, dl
jne 0x100aed44
cmp byte [eax + 0x14ef], dl
jne 0x100aed44
cmp byte [esp + 0x1b], 0
je 0x100aed63
test cl, cl
je 0x100aed63
mov eax, dword [0x1021663c]
push 0x10215b88
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x10423728], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret