Function at 0x100cdd20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x102070c0]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, dword [0x1033822c]
push edi
test esi, esi
je 0x100ce142
mov eax, dword [0x10224ca0]
test byte [eax + 0x3674], 1
je 0x100ce138
cmp byte [eax + 0x3694], 0
jne 0x100cdda0
movss xmm1, dword [0x101f8b00]
movss xmm0, dword [eax + 0x3684]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [eax + 0x3688]
mulss xmm0, xmm1
mov byte [esp + 0xc], cl
cvttss2si ecx, xmm0
movss xmm0, dword [eax + 0x368c]
mov byte [esp + 0xd], cl
mulss xmm0, xmm1
jmp 0x100cde6a
movss xmm0, dword [eax + 0x3690]
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x10]
mulss xmm0, dword [eax]
movss dword [esp + 0x10], xmm0
addss xmm0, dword [0x101f8954]
cvtps2pd xmm0, xmm0
call fcn.101c2490
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [0x101f878c]
addss xmm1, dword [0x101f878c]
movss dword [esp + 0x14], xmm1
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm1
addss xmm0, dword [0x101f88c8]
movss dword [esp + 0x10], xmm0
cvtps2pd xmm0, xmm1
call fcn.101c2490
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x101f878c]
addss xmm0, dword [0x101f878c]
mulss xmm0, dword [0x101f8b00]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
mov byte [esp + 0xc], al
call fcn.101c2490
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x101f878c]
addss xmm0, dword [0x101f878c]
mulss xmm0, dword [0x101f8b00]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x101f8b00]
mov byte [esp + 0xd], al
mov edi, dword [0x10338228]
cvttss2si eax, xmm0
mov byte [esp + 0xf], 0xff
mov byte [esp + 0xe], al
lea eax, [edi + esi]
mov dword [esp + 0x18], eax
cmp edi, eax
je 0x100ce138
mov esi, dword [esp + 0xc]
mov ecx, dword [0x10338224]
xor edx, edx
mov eax, dword [0x10338220]
dec ecx
movq xmm0, qword [str.kaS__TXWRge_]
and ecx, edi
cmp dword [0x10225d40], 2
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x10], edx
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x101ecc60]
mov dword [esp + 0x28], eax
mov al, byte [0x101ecc64]
mov byte [esp + 0x2c], al
jl 0x100cdfd0
movaps xmm2, xmmword [0x101f8d60]
mov edx, 8
movaps xmm3, xmmword [0x101f8ed0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
mov dword [esp + 0x10], edx
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8e20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101f8da0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
movd xmm0, dword [str.kaS__TXWRge_]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101f8ee0]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x20], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8e20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
movd xmm0, dword [esp + 0x24]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101f8ee0]
xorps xmm1, xmm0
movd dword [esp + 0x24], xmm1
nop
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x30
xor byte [esp + edx + 0x20], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xd
jl 0x100cdfd0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce020
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.10027940
cmp dword [esp + 0x44], 0xf
lea ecx, [esp + 0x30]
push esi
cmova ecx, dword [esp + 0x34]
sub esp, 8
mov edx, esp
lea eax, [ecx + 1]
mov dword [edx], ecx
mov dword [esp + 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce055
sub ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
call fcn.100bd600
mov ecx, dword [esp + 0x44]
cmp ecx, 0xf
jbe 0x100ce09e
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ce094
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ce158
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov ecx, dword [esp + 0x1c]
mov eax, 0x7fffffff
add ecx, 8
mov dword [esp + 0xc], 0xffffffff
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x100ce153
cmp dword [ecx + 0x14], 0xf
jbe 0x100ce0c8
mov ecx, dword [ecx]
push 1
push 0x101ec5c4
push edx
push ecx
push ecx
push dword [esp + 0x2c]
lea ecx, [esp + 0x48]
call fcn.10029b20
push dword [esp + 0xc]
cmp dword [esp + 0x48], 0xf
lea eax, [esp + 0x34]
push dword [esp + 0x44]
cmova eax, dword [esp + 0x38]
push eax
call fcn.100bd600
mov ecx, dword [esp + 0x44]
cmp ecx, 0xf
jbe 0x100ce12d
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ce123
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ce158
push ecx
push edx
call fcn.1019a58d
add esp, 8
inc edi
cmp edi, dword [esp + 0x18]
jne 0x100cde90
mov ecx, 0x1033821c
call fcn.1003ef20
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret
call fcn.10003460
call fcn.1019f6c6
int3