Function at 0x101022c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10273240]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10272bac
mov dword [ebp - 0x2c], ecx
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x101029a1
cmp dword [0x10272bd8], 0x7fffffff
je 0x101029a8
push esi
cmp byte [0x101ac005], al
je 0x10102974
cmp byte [0x101ac006], al
je 0x10102974
mov eax, dword [0x102740ac]
test eax, eax
jne 0x10102321
xor al, al
jmp 0x10102324
mov al, byte [eax + 0x7c]
movss xmm0, dword [0x1016a658]
mov byte [0x101ac00e], al
mov eax, dword [0x10274034]
push ebx
divss xmm0, dword [eax + 0x20]
cvttss2si eax, xmm0
mov dword [0x101ac01c], eax
mov eax, dword [0x1027ebd4]
test al, 1
jne 0x10102454
or eax, 1
cmp byte [0x10272eb0], 0
mov dword [0x1027ebd4], eax
je 0x101023ca
cmp byte [0x10272eb1], 0
jne 0x10102418
mov byte [0x10272eb1], 1
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10272ed4]
xor ebx, dword [0x10272ed0]
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 - 0x50], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x10272eb2]
xor al, bl
mov byte [esi + 0x10272eb2], al
inc esi
cmp esi, 0x19
jb 0x10102380
jmp 0x10102418
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10272ed4]
xor ebx, dword [0x10272ed0]
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 - 0x50], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x10272eb2]
xor al, bl
mov byte [esi + 0x10272eb2], al
inc esi
cmp esi, 0x19
jb 0x101023d0
lea eax, [ebp - 0x25]
push eax
push 0x10272eca
push 0x10272eb2
lea ecx, [ebp - 0x1c]
call fcn.1004f9c0
mov ecx, dword [0x1027406c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
lea ecx, [ebp - 0x1c]
mov dword [0x1027ebd0], eax
call fcn.10045360
mov ecx, dword [0x1027ebd0]
test ecx, ecx
je 0x10102471
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
add eax, 0xfffffffe
xor edx, edx
test eax, eax
cmovg edx, eax
jmp 0x10102476
mov edx, 0xe
cmp byte [0x101ac00e], 0
mov dword [0x101ac038], edx
je 0x101024b0
test edx, edx
mov dword [ebp - 0x24], 6
mov eax, 0x101ac038
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
cmovns ecx, eax
cmp edx, 6
lea eax, [ebp - 0x24]
cmovle eax, ecx
mov eax, dword [eax]
mov dword [0x101ac038], eax
mov ecx, dword [0x10274134]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], eax
call dword [ebp - 0x24]
mov esi, dword [0x101ac080]
fstp dword [0x101ac058]
test esi, esi
je 0x10102809
mov eax, dword [0x1027427c]
test al, 1
jne 0x101024f4
mov ecx, dword [0x10274254]
or eax, 1
mov dword [0x1027427c], eax
mov dword [0x10274278], ecx
jmp 0x101024fa
mov ecx, dword [0x10274278]
mov eax, dword [0x101ac07c]
push edi
mov edi, dword [0x10274318]
mov al, byte [ecx + eax]
mov ecx, dword [0x10274344]
mov byte [0x101ac008], al
test cl, 1
jne 0x1010252c
or ecx, 1
mov edx, edi
mov dword [0x10274344], ecx
mov dword [0x10274340], edx
jmp 0x10102532
mov edx, dword [0x10274340]
movsx eax, word [edx + esi]
add eax, 0xfffffff7
cmp eax, 0x1f
ja case.0x10102545.10
movzx eax, byte [eax + 0x101029dc]
jmp dword [eax*4 + 0x101029d4]
mov al, 1
jmp 0x10102552
xor al, al
mov byte [0x101ac009], al
test cl, 1
jne 0x1010256d
or ecx, 1
mov edx, edi
mov dword [0x10274344], ecx
mov dword [0x10274340], edx
movzx eax, word [edx + esi]
mov ecx, esi
add eax, 0xffffffd5
cmp ax, 5
setbe byte [0x101ac00a]
call fcn.1005fea0
mov ecx, eax
test ecx, ecx
jne 0x10102590
xor al, al
jmp 0x101025d3
mov eax, dword [0x10274344]
test al, 1
jne 0x101025ad
or eax, 1
mov dword [0x10274344], eax
mov eax, dword [0x10274318]
mov dword [0x10274340], eax
jmp 0x101025b2
mov eax, dword [0x10274340]
cmp word [esi + eax], 0x1f
je 0x101025d1
mov eax, dword [ecx + 0xc8]
test eax, eax
je 0x101025d1
cmp eax, 7
jl 0x101025cd
cmp eax, 0x10
jle 0x101025d1
xor al, al
jmp 0x101025d3
mov al, 1
cmp byte [0x10266b7c], 0
mov byte [0x101ac00b], al
jne 0x101025f5
push 0
call fcn.100d7f20
mov dword [0x10266e74], eax
add esp, 4
mov al, byte [0x101ac00b]
test al, al
jne 0x10102735
cmp byte [0x10266cd0], al
je 0x10102735
mov ecx, dword [0x1025e930]
push 0x10101610
call fcn.10100b60
mov ebx, dword [0x1025e930]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
lea esi, [ebx + 0xc0]
push esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x101029b9
cmp dword [esi + 0x2c], 0x7fffffff
je 0x101029c0
mov eax, dword [ebp - 0x4c]
lea edi, [ebx + 0x98]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
nop word [eax + eax]
mov eax, dword [ebp - 0x44]
movq xmm0, qword [eax + 0x120]
movq qword [ebp - 0x34], xmm0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
nop
cmp dword [ebp - 0x38], eax
ja 0x101026ae
jb 0x10102693
cmp dword [ebp - 0x3c], ecx
jae 0x101026ae
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ecx + 0x78]
call fcn.100740f0
mov eax, dword [eax]
cmp dword [eax + 0x10], 1
je 0x101026ba
push esi
push edi
call sub.MSVCP140.dll__Cnd_wait
add esp, 8
jmp 0x10102670
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebx + 0x78]
call fcn.100740f0
lea ecx, [ebp - 0x84]
mov eax, dword [eax]
add eax, 0x18
push eax
call fcn.10080490
push esi
call sub.MSVCP140.dll__Mtx_unlock
mov eax, dword [ebp - 0x60]
add esp, 4
and eax, 0xfffffffc
je 0x101029ce
add eax, 4
push 0x10273afc
push eax
call sub.VCRUNTIME140.dll___std_type_info_compare
add esp, 8
test eax, eax
jne 0x101029ce
lea eax, [ebp - 0x84]
movups xmm0, xmmword [eax]
mov ecx, eax
movups xmmword [ebp - 0x44], xmm0
call fcn.10100de0
movups xmm0, xmmword [ebp - 0x44]
psrldq xmm0, 4
movd eax, xmm0
test eax, eax
setg byte [0x101ac00c]
jmp 0x1010273c
mov byte [0x101ac00c], 0
cmp dword [0x101ac080], 0
je 0x10102808
test byte [0x10266e18], 1
je 0x10102808
cmp byte [0x101ac008], 0
je 0x10102808
cmp byte [0x101ac009], 0
je 0x10102808
mov ecx, dword [0x10274038]
push 0xff000000
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [0x10274f30]
mov ecx, dword [0x10274038]
movss xmm0, dword [eax + 0x1c]
divss xmm0, dword [0x1016a668]
mov edx, dword [ecx]
cvttss2si esi, dword [eax + 0x18]
cvttss2si edi, xmm0
movss xmm0, dword [eax + 0x1c]
divss xmm0, dword [0x1016a668]
push edi
push esi
cvttss2si eax, xmm0
push eax
push 0
call dword [edx + 0x4c]
mov ecx, dword [0x10274038]
push 0xff000000
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [0x10274f30]
mov ecx, dword [0x10274038]
movss xmm0, dword [eax + 0x18]
divss xmm0, dword [0x1016a668]
cvttss2si edi, dword [eax + 0x1c]
cvttss2si esi, xmm0
push edi
movss xmm0, dword [eax + 0x18]
divss xmm0, dword [0x1016a668]
mov eax, dword [ecx]
push esi
push 0
cvttss2si edx, xmm0
push edx
call dword [eax + 0x4c]
pop edi
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 0xc]
pop ebx
cmp eax, dword [esi + 4]
je 0x1010281b
mov dword [esi + 4], eax
mov eax, dword [0x102782c8]
cmp byte [eax + 0x10], 0
je 0x10102985
lea edx, [eax + 4]
push 1
lea eax, [ecx + 4]
mov ecx, dword [0x10274f30]
push eax
push edx
call fcn.100736e0
test al, al
je 0x10102985
movsd xmm2, qword [0x1016fe90]
xorps xmm1, xmm1
mulsd xmm2, qword [0x10170468]
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x20], xmm1
comisd xmm2, xmm0
movsd qword [ebp - 0x54], xmm2
jb 0x10102985
xorps xmm0, xmm0
mulss xmm0, dword [0x1016a694]
movss dword [ebp - 0x48], xmm0
cvtps2pd xmm0, xmm1
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
movss xmm0, dword [ebp - 0x20]
cvtps2pd xmm0, xmm0
fstp dword [ebp - 0x2c]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
mov eax, dword [0x102782c8]
add esp, 8
movss xmm2, dword [ebp - 0x2c]
mulss xmm2, dword [0x1016a694]
mov ecx, dword [0x10274f30]
movss xmm0, dword [ebp - 0x48]
fstp dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x24]
mulss xmm1, dword [0x1016a694]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
addss xmm2, dword [eax + 8]
addss xmm1, dword [eax + 4]
addss xmm0, dword [eax + 0xc]
push 1
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x40]
movss dword [ebp - 0x40], xmm1
push eax
movss dword [ebp - 0x3c], xmm2
movss dword [ebp - 0x38], xmm0
call fcn.100736e0
test al, al
je 0x1010294e
movss xmm0, dword [ebp - 0x5c]
mov edx, dword [esi + 4]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x30], xmm0
cmp edx, dword [esi + 8]
je 0x10102942
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [edx], eax
mov dword [edx + 4], ecx
add dword [esi + 4], 8
jmp 0x1010294e
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
push edx
call fcn.100f4f50
movss xmm1, dword [ebp - 0x20]
addss xmm1, dword [0x101715b0]
movsd xmm2, qword [ebp - 0x54]
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x20], xmm1
comisd xmm2, xmm0
jae 0x10102881
jmp 0x10102985
mov dword [0x101ac008], 0
mov byte [0x101ac00c], 0
push 0x10272bac
call sub.MSVCP140.dll__Mtx_unlock
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.10106b52
mov esp, ebp
pop ebp
ret
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push 6
mov dword [0x10272bd8], 0x7ffffffe
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push 6
mov dword [esi + 0x2c], 0x7ffffffe
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
call fcn.10080620
nop
dec esp
and eax, 626003984
adc byte [eax], dl
add byte [ecx], al
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add dword [eax], eax
int3