Function at 0x100d1460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x102220c0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x1023fc80]
push edi
lea ecx, [ecx + 0x3380]
call fcn.100c9220
test al, al
je 0x100d1cbc
mov cl, byte [esi + 0x5c]
test cl, cl
sete al
mov byte [esi + 0x5c], al
test cl, cl
je 0x100d14b3
mov eax, dword [0x1023fc88]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
call eax
movss xmm1, dword [0x104683d8]
xorps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x100d14d6
movss xmm0, dword [0x1021445c]
comiss xmm0, xmm1
jbe 0x100d14d6
subss xmm0, xmm1
jmp 0x100d14d9
xorps xmm0, xmm0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10240d9c]
mov edi, dword [0x10240d90]
movss dword [0x104683d8], xmm0
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10533ae4]
mov dword [esp + 0x14], esi
cmp eax, dword [esi + 4]
jle 0x100d16cc
push 0x10533ae4
call fcn.101b57fd
add esp, 4
cmp dword [0x10533ae4], 0xffffffff
jne 0x100d16cc
mov eax, dword [0x1023fc88]
movups xmm0, xmmword [str._VTdZTRK_3]
mov esi, dword [eax + 8]
mov ax, word [0x102094d0]
mov word [esp + 0x2c], ax
movups xmmword [esp + 0x1c], xmm0
test ah, ah
je 0x100d16a8
xor ebx, ebx
cmp edi, 2
jl 0x100d1680
movaps xmm0, xmmword [0x10214b30]
lea edx, [esp + 0x20]
movaps xmm4, xmmword [0x102149a0]
movaps xmm3, xmmword [0x10214db0]
movaps xmm5, xmmword [0x10214a10]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
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
psrad xmm1, 4
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x1c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x1c], xmm1
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
psrad xmm1, 4
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100d1580
cmp ebx, 0x12
jge 0x100d16a8
nop word [eax + eax]
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x1c], cl
inc ebx
cmp ebx, 0x12
jl 0x100d1680
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10533ae4
mov dword [0x10533b1c], eax
call fcn.101b57ac
mov esi, dword [esp + 0x18]
add esp, 4
mov ecx, dword [0x10533b1c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x10533b0c]
cmp eax, dword [esi + 4]
jle 0x100d18ac
push 0x10533b0c
call fcn.101b57fd
add esp, 4
cmp dword [0x10533b0c], 0xffffffff
jne 0x100d18ac
cmp byte [0x10209feb], 0
mov eax, dword [0x1023fc88]
movups xmm0, xmmword [0x10209fd8]
mov esi, dword [eax + 8]
mov eax, dword [str.__KsC___]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x2c], eax
je 0x100d1888
xor ebx, ebx
cmp edi, 2
jl 0x100d1860
movaps xmm0, xmmword [0x10214b30]
lea edx, [esp + 0x20]
movaps xmm4, xmmword [0x102149a0]
movaps xmm3, xmmword [0x10214db0]
movaps xmm5, xmmword [0x10214a10]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
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
psrad xmm1, 4
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x1c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x1c], xmm1
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
psrad xmm1, 4
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100d1764
cmp ebx, 0x14
jge 0x100d1888
nop
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x1c], cl
inc ebx
cmp ebx, 0x14
jl 0x100d1860
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10533b0c
mov dword [0x10533af8], eax
call fcn.101b57ac
mov esi, dword [esp + 0x18]
add esp, 4
mov al, byte [0x10209f40]
xor ebx, ebx
movq xmm0, qword [str.uxnnt]
mov byte [esp + 0x24], al
movq qword [esp + 0x1c], xmm0
mov eax, 0x51eb851f
mov cl, bl
mul ebx
shr edx, 4
movsx eax, dl
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x1c], cl
inc ebx
cmp ebx, 9
jl 0x100d18c5
mov ecx, dword [0x10533af8]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10533ae8]
cmp eax, dword [esi + 4]
jle 0x100d1acc
push 0x10533ae8
call fcn.101b57fd
add esp, 4
cmp dword [0x10533ae8], 0xffffffff
jne 0x100d1acc
cmp byte [0x10209feb], 0
mov eax, dword [0x1023fc88]
movups xmm0, xmmword [0x10209fd8]
mov esi, dword [eax + 8]
mov eax, dword [str.__KsC___]
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x58], eax
je 0x100d1aa8
xor ebx, ebx
cmp edi, 2
jl 0x100d1a80
movaps xmm0, xmmword [0x10214b30]
lea edx, [esp + 0x4c]
movaps xmm4, xmmword [0x102149a0]
movaps xmm3, xmmword [0x10214db0]
movaps xmm5, xmmword [0x10214a10]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
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
psrad xmm1, 4
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x48]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x48], xmm1
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
psrad xmm1, 4
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100d1981
cmp ebx, 0x14
jge 0x100d1aa8
nop dword [eax + eax]
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x48], cl
inc ebx
cmp ebx, 0x14
jl 0x100d1a80
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10533ae8
mov dword [0x10533b34], eax
call fcn.101b57ac
mov esi, dword [esp + 0x18]
add esp, 4
mov al, byte [0x10209f40]
xor ebx, ebx
movq xmm0, qword [str.uxnnt]
mov byte [esp + 0x38], al
movq qword [esp + 0x30], xmm0
mov eax, 0x51eb851f
mov cl, bl
mul ebx
shr edx, 4
movsx eax, dl
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x30], cl
inc ebx
cmp ebx, 9
jl 0x100d1ae5
mov ecx, dword [0x10533b34]
lea edx, [esp + 0x30]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10533b20]
cmp eax, dword [esi + 4]
jle 0x100d1cad
push 0x10533b20
call fcn.101b57fd
add esp, 4
cmp dword [0x10533b20], 0xffffffff
jne 0x100d1cad
cmp byte [0x1020ab03], 0
mov eax, dword [0x1023fc88]
mov ecx, dword [str.IIdQF_ZIQJ_]
mov edx, dword [0x1020ab00]
mov esi, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
je 0x100d1c8d
xor ebx, ebx
cmp edi, 2
jl 0x100d1c65
movaps xmm2, xmmword [0x102149a0]
movaps xmm4, xmmword [0x10214db0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
mov eax, dword [0x10214b30]
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x102149e0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, ecx
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, edx
xorps xmm1, xmm0
movd dword [esp + 0x18], xmm1
jmp 0x100d1c8d
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x14], cl
inc ebx
cmp ebx, 8
jl 0x100d1c65
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10533b20
mov dword [0x10533b38], eax
call fcn.101b57ac
add esp, 4
mov ecx, dword [0x10533b38]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret