Function at 0x140039490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400992c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r15, rcx
call fcn.140039090
mov r14, rax
lea rbx, [rax + 0x90]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14003975f
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1400396d5
xor esi, esi
lea rdi, [r15 + 8]
mov r8, rdi
mov edx, esi
lea r9, [rdi + 0x20]
cmp rdi, r9
je 0x140039548
movabs r10, 0xc6a4a7935bd1e995
mov r11d, 0xe6546b64
nop dword [rax + rax]
mov rax, qword [r8]
imul rax, r10
mov rcx, rax
shr rcx, 0x2f
xor rcx, rax
imul rcx, r10
xor rdx, rcx
imul rdx, r10
add rdx, r11
add r8, 8
cmp r8, r9
jne 0x140039520
and rdx, qword [r14 + 0x110]
shl rdx, 4
add rdx, qword [r14 + 0xf8]
mov rax, qword [rdx + 8]
mov r9, qword [r14 + 0xe8]
cmp rax, r9
je 0x14003959f
mov rdx, qword [rdx]
mov r8, qword [rdi]
cmp r8, qword [rax + 0x18]
jne 0x140039594
mov rcx, qword [rax + 0x20]
cmp qword [rdi + 8], rcx
jne 0x140039594
mov rcx, qword [rax + 0x28]
cmp qword [rdi + 0x10], rcx
jne 0x140039594
mov rcx, qword [rax + 0x30]
cmp qword [rdi + 0x18], rcx
je 0x1400395a2
cmp rax, rdx
je 0x14003959f
mov rax, qword [rax + 8]
jmp 0x140039570
mov rax, rsi
test rax, rax
cmove rax, r9
cmp rax, r9
jne 0x140039697
lea r12, [0x140082e48]
mov qword [rbp + 0x40], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
movups xmmword [rbp + 0x58], xmm0
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rbp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003969a
cmp esi, 0x800
jae 0x140039693
inc esi
mov qword [rbp + 0x68], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x20
lea rax, [rbp + 0x48]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0x20
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x90]
call fcn.14006a1c0
movups xmm0, xmmword [rbp + 0x68]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rbp + 0x78]
movups xmmword [rbp + 0x50], xmm1
movsd xmm0, qword [rbp + 0x88]
movsd qword [rbp + 0x60], xmm0
lea rcx, [r14 + 0xe0]
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x38]
call fcn.140036870
mov rcx, qword [rax]
mov dword [rcx + 0x38], esi
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rbp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400395e2
cmp esi, 0x800
je 0x1400396e5
jmp 0x14003969a
mov esi, dword [rax + 0x38]
imul edi, esi, 0x7530
mov rcx, rbx
call fcn.140065469
mov eax, edi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400664b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140012e30
nop
lea rdx, str.apparent_block_number_for
lea rcx, [rsp + 0x50]
call fcn.140014490
mov rcx, rax
mov rdx, r15
call fcn.140036540
mov rcx, rax
lea rdx, str._is_too_high__max_is
call fcn.140014490
mov rcx, rax
mov edx, 0x3a98000
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140012e10
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140038290
lea rdx, [0x1400949b8]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3