Function at 0x1010a660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1030cb40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1030c484
mov dword [ebp - 0x34], ecx
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1010ac3f
cmp dword [0x1030c4b0], 0x7fffffff
je 0x1010ac46
push esi
cmp byte [0x1019d005], al
je 0x1010ac12
cmp byte [0x1019d006], al
je 0x1010ac12
mov eax, dword [0x1030d9ac]
test eax, eax
jne 0x1010a6be
xor al, al
jmp 0x1010a6c1
mov al, byte [eax + 0x7c]
movss xmm0, dword [0x10171524]
mov byte [0x1019d00e], al
mov eax, dword [0x1030d934]
push ebx
divss xmm0, dword [eax + 0x20]
cvttss2si eax, xmm0
mov dword [0x1019d01c], eax
mov eax, dword [0x1034dc5c]
test al, 1
jne 0x1010a7e0
or eax, 1
cmp byte [0x1030c788], 0
mov dword [0x1034dc5c], eax
je 0x1010a760
cmp byte [0x1030c789], 0
jne 0x1010a7a4
mov byte [0x1030c789], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1030c7ac]
xor ebx, dword [0x1030c7a8]
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 + 0x1030c78a]
xor al, bl
mov byte [esi + 0x1030c78a], al
inc esi
cmp esi, 0x19
jb 0x1010a716
jmp 0x1010a7a4
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1030c7ac]
xor ebx, dword [0x1030c7a8]
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, bl
xor byte [esi + 0x1030c78a], al
inc esi
cmp esi, 0x19
jb 0x1010a762
lea eax, [ebp - 0x25]
push eax
push 0x1030c7a2
push 0x1030c78a
lea ecx, [ebp - 0x1c]
call fcn.1004d640
mov ecx, dword [0x1030d96c]
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 [0x1034dc58], eax
call fcn.10042fe0
mov ecx, dword [0x1034dc58]
test ecx, ecx
je 0x1010a7fd
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
add eax, 0xfffffffe
xor edx, edx
test eax, eax
cmovg edx, eax
jmp 0x1010a802
mov edx, 0xe
cmp byte [0x1019d00e], 0
mov dword [0x1019d038], edx
je 0x1010a83c
test edx, edx
mov dword [ebp - 0x3c], 6
mov eax, 0x1019d038
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
cmovns ecx, eax
cmp edx, 6
lea eax, [ebp - 0x3c]
cmovle eax, ecx
mov eax, dword [eax]
mov dword [0x1019d038], eax
mov ecx, dword [0x1030da34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x3c], eax
call dword [ebp - 0x3c]
mov esi, dword [0x1019d080]
fstp dword [0x1019d058]
test esi, esi
je 0x1010aafe
mov eax, dword [0x1030db6c]
test al, 1
jne 0x1010a880
mov ecx, dword [0x1030db44]
or eax, 1
mov dword [0x1030db6c], eax
mov dword [0x1030db68], ecx
jmp 0x1010a886
mov ecx, dword [0x1030db68]
mov eax, dword [0x1019d07c]
push edi
mov edi, dword [0x1030dc08]
mov al, byte [ecx + eax]
mov ecx, dword [0x1030dc34]
mov byte [0x1019d008], al
test cl, 1
jne 0x1010a8b8
or ecx, 1
mov edx, edi
mov dword [0x1030dc34], ecx
mov dword [0x1030dc30], edx
jmp 0x1010a8be
mov edx, dword [0x1030dc30]
movsx eax, word [edx + esi]
add eax, 0xfffffff7
cmp eax, 0x1f
ja case.0x1010a8d1.10
movzx eax, byte [eax + 0x1010ac7c]
jmp dword [eax*4 + 0x1010ac74]
mov al, 1
jmp 0x1010a8de
xor al, al
mov byte [0x1019d009], al
test cl, 1
jne 0x1010a8f9
or ecx, 1
mov edx, edi
mov dword [0x1030dc34], ecx
mov dword [0x1030dc30], edx
movzx eax, word [edx + esi]
mov ecx, esi
add eax, 0xffffffd5
cmp ax, 5
setbe byte [0x1019d00a]
call fcn.1005da40
mov ecx, eax
test ecx, ecx
jne 0x1010a91c
xor al, al
jmp 0x1010a95f
mov eax, dword [0x1030dc34]
test al, 1
jne 0x1010a939
or eax, 1
mov dword [0x1030dc34], eax
mov eax, dword [0x1030dc08]
mov dword [0x1030dc30], eax
jmp 0x1010a93e
mov eax, dword [0x1030dc30]
cmp word [esi + eax], 0x1f
je 0x1010a95d
mov eax, dword [ecx + 0xc8]
test eax, eax
je 0x1010a95d
cmp eax, 7
jl 0x1010a959
cmp eax, 0x10
jle 0x1010a95d
xor al, al
jmp 0x1010a95f
mov al, 1
cmp byte [0x102ff584], 0
mov byte [0x1019d00b], al
jne 0x1010a9b0
push 0
call fcn.100dec70
mov edx, eax
mov dword [ebp - 0x20], 0x21
add esp, 4
mov dword [ebp - 0x2c], edx
test edx, edx
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x2c]
mov dword [0x102ff8ec], edx
lea ecx, [ebp - 0x3c]
cmovns ecx, eax
cmp edx, 0x21
lea eax, [ebp - 0x20]
cmovle eax, ecx
mov eax, dword [eax]
mov dword [0x102fe420], eax
mov al, byte [0x1019d00b]
test al, al
jne 0x1010aaf6
cmp byte [0x102ff6e4], al
je 0x1010aaf6
mov ecx, dword [0x102f3f20]
push 0x10109ab0
call fcn.10109420
mov ebx, dword [0x102f3f20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
lea esi, [ebx + 0xc0]
push esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1010ac57
cmp dword [esi + 0x2c], 0x7fffffff
je 0x1010ac5e
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 0x98]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x14]
movq xmm0, qword [eax + 0x120]
movq qword [ebp - 0x40], xmm0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
nop
cmp dword [ebp - 8], eax
ja 0x1010aa6e
jb 0x1010aa53
cmp dword [ebp - 0xc], ecx
jae 0x1010aa6e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ecx + 0x78]
call fcn.100761b0
mov eax, dword [eax]
cmp dword [eax + 0x10], 1
je 0x1010aa7a
push esi
push edi
call sub.MSVCP140.dll__Cnd_wait
add esp, 8
jmp 0x1010aa30
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x78]
call fcn.100761b0
lea ecx, [ebp - 0x74]
mov eax, dword [eax]
add eax, 0x18
push eax
call fcn.100843e0
push esi
call sub.MSVCP140.dll__Mtx_unlock
mov eax, dword [ebp - 0x50]
add esp, 4
and eax, 0xfffffffc
je 0x1010ac6c
add eax, 4
push 0x1030d3fc
push eax
call sub.VCRUNTIME140.dll___std_type_info_compare
add esp, 8
test eax, eax
jne 0x1010ac6c
lea eax, [ebp - 0x74]
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x3c], eax
movups xmmword [ebp - 0x14], xmm0
call fcn.100d6a90
movups xmm0, xmmword [ebp - 0x14]
psrldq xmm0, 4
movd eax, xmm0
test eax, eax
setg byte [0x1019d00c]
jmp 0x1010aafd
mov byte [0x1019d00c], 0
pop edi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 0xc]
pop ebx
cmp eax, dword [esi + 4]
je 0x1010ab10
mov dword [esi + 4], eax
mov eax, dword [0x103473e8]
cmp byte [eax + 0x78], 0
je 0x1010ac23
lea edx, [eax + 0x6c]
push 1
lea eax, [ecx + 4]
mov ecx, dword [0x1030e7f0]
push eax
push edx
call fcn.1006f0a0
test al, al
je 0x1010ac23
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm1
movaps xmm0, xmm1
call fcn.1010f550
mov eax, dword [0x103473e8]
movaps xmm2, xmm0
mov ecx, dword [0x1030e7f0]
movaps xmm1, xmm2
shufps xmm1, xmm2, 1
mulss xmm1, dword [0x1017d27c]
mov dword [ebp - 0x38], 0
mulss xmm2, dword [0x1017d27c]
mov dword [ebp - 0x34], 0
addss xmm1, dword [eax + 0x70]
movss xmm0, dword [eax + 0x74]
addss xmm2, dword [eax + 0x6c]
push 1
lea eax, [ebp - 0x38]
movss dword [ebp - 0x3c], xmm0
push eax
lea eax, [ebp - 0x44]
movss dword [ebp - 0x40], xmm1
push eax
movss dword [ebp - 0x44], xmm2
call fcn.1006f0a0
test al, al
je 0x1010abe9
movss xmm0, dword [ebp - 0x38]
mov edx, dword [esi + 4]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x20], xmm0
cmp edx, dword [esi + 8]
je 0x1010abdd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [edx + 4], ecx
add dword [esi + 4], 8
jmp 0x1010abe9
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push edx
call fcn.100fced0
movss xmm1, dword [ebp - 0x2c]
addss xmm1, dword [0x1017eba4]
movsd xmm2, qword [0x1017d270]
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x2c], xmm1
comisd xmm2, xmm0
jae 0x1010ab44
jmp 0x1010ac23
mov dword [0x1019d008], 0
mov byte [0x1019d00c], 0
push 0x1030c484
call sub.MSVCP140.dll__Mtx_unlock
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.1010f522
mov esp, ebp
pop ebp
ret
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push 6
mov dword [0x1030c4b0], 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.10084560
nop dword [eax]
fsubr dword [eax - 0x5723eff0]
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