Function at 0x1001be20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10313f53
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
mov eax, dword [0x1060b5e0]
mov ecx, dword [eax + 0xaa8]
test byte [ecx + 0x104], 1
je 0x1001bf84
call fcn.100cdad0
test eax, eax
je 0x1001bf84
mov eax, dword [0x1060b5e0]
mov ecx, dword [0x104c14e0]
mov eax, dword [eax + 0xaa8]
mov dword [ebp - 0x54], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10611928]
cmp eax, dword [ecx + 4]
jg 0x1001bfa4
mov eax, dword [0x10611714]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x6c], 0
movd xmm2, dword [eax + ecx]
mov eax, dword [0x1060b290]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
mov eax, dword [0x1060b5e0]
movss dword [ebp - 0x4c], xmm2
mov eax, dword [eax + 0xaa8]
add eax, 0x114
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [ebp - 0x54], xmm0
sqrtss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x6c]
comiss xmm0, dword [0x1041ecd4]
ja 0x1001bf58
mov ecx, dword [0x1060b5e0]
mov ecx, dword [ecx + 0xaa8]
call fcn.100cdad0
movss xmm2, dword [ebp - 0x4c]
movss xmm0, dword [eax + 0xf0]
andps xmm0, xmmword [0x1041f450]
comiss xmm0, dword [0x1041efec]
ja 0x1001bf58
movss xmm0, dword [0x104c14fc]
jmp 0x1001bf6b
movaps xmm0, xmm2
addss xmm0, dword [0x1041ed10]
movss dword [0x104c14fc], xmm0
comiss xmm2, xmm0
jbe 0x1001bf84
addss xmm2, dword [0x1041edd0]
mov al, 1
movss dword [0x104c14fc], xmm2
jmp 0x1001bf86
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x10611928
call fcn.102bba07
add esp, 4
cmp dword [0x10611928], 0xffffffff
jne 0x1001beb8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
push 0xd
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x4c], 1
call fcn.1001a120
mov esi, 0x103f6288
jmp 0x1001bff6
mov al, byte [esi]
lea ecx, [ebp - 0x2c]
xor al, 0xa5
mov byte [ebp - 0x50], al
push dword [ebp - 0x50]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f629e
jne 0x1001bff6
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
test edi, edi
je 0x1001c03b
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1001c03b
sub edx, esi
jmp 0x1001c040
or edx, 0xffffffff
jmp 0x1001c040
cmp edx, 0xffffffff
je 0x1001c0df
mov dword [ebp - 0x4c], 1
jmp 0x1001c052
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
setae cl
add esi, edx
mov byte [ebp - 0x45], cl
test cl, cl
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x50]
cmovne eax, dword [ebp - 0x2c]
sub esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
mov dword [ebp - 0x50], eax
cmovae ecx, edx
cmp byte [ebp - 0x45], 0
mov edx, dword [ecx]
lea ecx, [ebp - 0x2c]
cmovne ecx, dword [ebp - 0x2c]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
test edi, edi
je 0x1001c0cf
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1001c0cf
sub edx, esi
jmp 0x1001c0d4
or edx, 0xffffffff
jmp 0x1001c0d4
cmp edx, 0xffffffff
jne 0x1001c052
jmp 0x1001c0df
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov esi, 0x103f6844
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x4c], 3
jmp 0x1001c118
mov al, byte [esi]
lea ecx, [ebp - 0x44]
xor al, 0xa5
mov byte [ebp - 0x50], al
push dword [ebp - 0x50]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f685e
jne 0x1001c118
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov edi, dword [ebp - 0x34]
cmovae esi, dword [ebp - 0x44]
test edi, edi
je 0x1001c15d
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1001c15d
sub edx, esi
jmp 0x1001c162
or edx, 0xffffffff
jmp 0x1001c162
cmp edx, 0xffffffff
je 0x1001c201
mov dword [ebp - 0x58], 1
jmp 0x1001c174
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
lea eax, [ebp - 0x44]
cmovae esi, dword [ebp - 0x44]
setae cl
add esi, edx
mov byte [ebp - 0x45], cl
test cl, cl
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x50]
cmovne eax, dword [ebp - 0x44]
sub esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
mov dword [ebp - 0x50], eax
cmovae ecx, edx
cmp byte [ebp - 0x45], 0
mov edx, dword [ecx]
lea ecx, [ebp - 0x44]
cmovne ecx, dword [ebp - 0x44]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
cmovae esi, dword [ebp - 0x44]
test edi, edi
je 0x1001c1f1
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1001c1f1
sub edx, esi
jmp 0x1001c1f6
or edx, 0xffffffff
jmp 0x1001c1f6
cmp edx, 0xffffffff
jne 0x1001c174
jmp 0x1001c201
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push 0
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10171b70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
mov dword [0x10611714], eax
cmp ecx, 0x10
jb 0x1001c254
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c248
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c292
jmp 0x1001c248
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x1001c254
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x1001c2a4
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c298
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001c298
jmp 0x1001c292
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x1001c2a4
push 0x10611928
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.102bb9b6
add esp, 4
jmp 0x1001beb8