Function at 0x10102ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1029e280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1029c5e0], 0
xorps xmm0, xmm0
push ebx
push esi
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0xd0], 0
je 0x10102b8a
cmp byte [0x1029c5e1], 0
jne 0x10102bd8
mov byte [0x1029c5e1], 1
xor esi, esi
nop word [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c604]
xor ebx, dword [0x1029c600]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x20], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c5e2]
xor al, bl
mov byte [esi + 0x1029c5e2], al
inc esi
cmp esi, 0x19
jb 0x10102b40
jmp 0x10102bd8
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c604]
xor ebx, dword [0x1029c600]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x20], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c5e2]
xor al, bl
mov byte [esi + 0x1029c5e2], al
inc esi
cmp esi, 0x19
jb 0x10102b90
lea eax, [ebp - 0x25]
push eax
push 0x1029c5fa
push 0x1029c5e2
lea ecx, [ebp - 0x1c]
call fcn.1004f490
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0xf
cmova eax, ecx
mov dword [ebp - 0xa0], eax
jbe 0x10102c30
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10102c26
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10102c26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101169da
add esp, 8
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xd0]
movq xmm0, qword [ebp + 8]
movq qword [ebp - 0xbc], xmm0
movq xmm0, qword [ebp + 0x14]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa8], eax
movzx eax, byte [ebp + 0x23]
movq qword [ebp - 0xb0], xmm0
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0x90], 0x40400000
movd xmm0, eax
mov eax, dword [ebp + 0x20]
cvtdq2ps xmm0, xmm0
movzx ecx, al
movzx eax, ah
mov dword [ebp - 0x84], 0x3dcccccd
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x80], 0x3f800000
movss dword [ebp - 0x7c], xmm0
movd xmm0, ecx
mov ecx, dword [0x1029f270]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x5c], 2
mov byte [ebp - 0x60], 1
mov dword [ebp - 0x78], 0x3f800000
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
movss dword [ebp - 0x6c], xmm0
movd xmm0, eax
movzx eax, byte [ebp + 0x22]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x8c], 0x40400000
mov dword [ebp - 0x88], 0x40400000
mov dword [ebp - 0x58], 0x304
push edx
movss dword [ebp - 0x68], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x64], xmm0
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x10102d39
mov ecx, dword [0x1029f270]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10116d02
mov esp, ebp
pop ebp
ret
cmp dword [0x1028f580], 2
jne 0x10102d7f
mov ecx, dword [0x1029f238]
movzx eax, byte [ebp + 0x22]
push ecx
mov dword [esp], 0x40400000
mov esi, dword [ecx]
push 0
push eax
mov eax, dword [ebp + 0x20]
movzx edx, ah
push edx
movzx eax, al
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
call dword [esi + 0x14]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10116d02
mov esp, ebp
pop ebp
ret
movups xmm2, xmmword [0x1028f5a4]
mov dword [ebp - 0x34], 0
movss xmm1, dword [0x1017c78c]
movaps xmm0, xmm2
mov dword [ebp - 0x30], 0
shufps xmm0, xmm2, 0xff
mulss xmm0, xmm1
mov dword [ebp - 0x2c], 0
cvttss2si ebx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
mulss xmm0, xmm1
mov byte [ebp - 0x1d], bl
cvttss2si edx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
mulss xmm2, xmm1
mov byte [ebp - 0x1e], dl
mulss xmm0, xmm1
movss xmm1, dword [ebp + 0xc]
subss xmm1, dword [ebp + 0x18]
cvttss2si eax, xmm2
movss xmm2, dword [ebp + 8]
subss xmm2, dword [ebp + 0x14]
cvttss2si ecx, xmm0
mov byte [ebp - 0x20], al
movss xmm0, dword [ebp + 0x10]
subss xmm0, dword [ebp + 0x1c]
mov byte [ebp - 0x1f], cl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
sub esp, 0xc
unpcklps xmm2, xmm1
mov ecx, esp
movss dword [ebp - 8], xmm0
mov eax, dword [ebp - 8]
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
call fcn.10064b00
movss xmm1, dword [ebp + 0x14]
add esp, 8
movss xmm2, dword [ebp + 0x18]
subss xmm2, dword [ebp + 0xc]
subss xmm1, dword [ebp + 8]
movss xmm0, dword [ebp + 0x1c]
subss xmm0, dword [ebp + 0x10]
mov eax, dword [0x1029f224]
mulss xmm2, xmm2
mov ecx, dword [0x1029f28c]
mulss xmm1, xmm1
mov dword [esp + 4], 0x40400000
mulss xmm0, xmm0
mov dword [ebp - 0x3c], 0x3dcccccd
addss xmm2, xmm1
movss xmm3, dword [eax + 0x10]
movss dword [esp], xmm3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0x3dcccccd
push eax
addss xmm2, xmm0
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0xbdcccccd
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0xbdcccccd
push eax
lea eax, [ebp - 0x34]
sqrtss xmm0, xmm2
push eax
lea eax, [ebp + 0x14]
push eax
movss dword [ebp - 0x40], xmm0
call fcn.10102a00
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
call fcn.10116d02
mov esp, ebp
pop ebp
ret