Function at 0x140071470
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x140218d60]
cmp rdi, 1
jbe 0x140071f03
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140071ef6
mov rax, qword [0x140218d60]
cmp rax, 1
jbe 0x140071f40
mov qword [rsp + 0x30], rdi
mov rbx, qword [0x140218d70]
test rbx, rbx
je 0x140071f7d
mov qword [rsp + 0x38], rsi
mov r14, qword [rsi + 8]
mov r12b, 1
test r14, r14
je 0x140071637
mov rcx, r14
call fcn.1401136e0
mov rbp, rax
test rax, rax
sete al
je 0x140071637
xor ecx, ecx
xor r15d, r15d
nop dword [rax + rax]
movsx rdx, byte [r14 + rcx]
imul r15, r15, 0x83
add r15, rdx
inc rcx
cmp rbp, rcx
jne 0x140071510
mov r12d, eax
mov rsi, qword [rbx + 8]
movabs rcx, 0x5555555555555555
movabs r9, 0x3333333333333333
movabs r8, 0xf0f0f0f0f0f0f0f
movabs rdx, 0x101010101010101
test rsi, rsi
je 0x140071652
mov rax, rsi
shr rax, 1
and rax, rcx
mov rcx, rsi
sub rcx, rax
mov rax, rcx
and rax, r9
shr rcx, 2
and rcx, r9
add rcx, rax
mov rdi, rcx
shr rdi, 4
add rdi, rcx
and rdi, r8
imul rdi, rdx
shr rdi, 0x38
cmp rdi, 1
jbe 0x140071646
mov r13, r15
cmp r15, rsi
jb 0x1400715b0
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
mov rax, qword [rbx]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x14007165c
mov byte [rsp + 0x40], r12b
mov r12, qword [rax]
test r12, r12
je 0x14007165c
lea rcx, [rsi - 1]
mov rax, qword [r12 + 8]
cmp rax, r15
je 0x1400715f6
cmp edi, 1
jbe 0x140071641
cmp rax, rsi
jb 0x1400715f1
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x14007165c
cmp qword [r12 + 0x18], rbp
je 0x140071608
mov r12, qword [r12]
test r12, r12
jne 0x1400715d5
jmp 0x14007165c
mov qword [rsp + 0x48], rcx
cmp byte [rsp + 0x40], 0
jne 0x14007162d
mov rcx, qword [r12 + 0x10]
mov rdx, r14
mov r8, rbp
call fcn.1400ee6d0
test eax, eax
mov rcx, qword [rsp + 0x48]
jne 0x1400715fd
mov rbp, qword [rsp + 0x38]
jmp 0x140071704
xor ebp, ebp
xor r15d, r15d
jmp 0x14007152a
and rax, rcx
jmp 0x1400715f1
lea r13, [rsi - 1]
and r13, r15
jmp 0x1400715b0
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x28
call fcn.1400eb670
mov r12, rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rbp
xor eax, eax
mov qword [r12 + 0x20], rax
mov qword [r12 + 8], r15
mov qword [r12], rax
mov rax, qword [rbx + 0x18]
inc rax
js 0x140071691
cvtsi2ss xmm0, rax
jmp 0x1400716a6
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbp, qword [rsp + 0x38]
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
js 0x1400716c5
cvtsi2ss xmm1, rsi
jmp 0x1400716ce
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbx + 0x20]
je 0x140071e69
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140071e69
mov rcx, qword [rbx]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x140071848
mov rcx, qword [rax]
mov qword [r12], rcx
mov qword [rax], r12
inc qword [rbx + 0x18]
mov rsi, qword [r12 + 0x20]
test rsi, rsi
jne 0x140071b4f
mov qword [r12 + 0x20], rbp
test r14, r14
je 0x140071f9b
mov rbx, qword [0x140218d70]
movabs rsi, 0x7fffffffffffffef
mov rcx, r14
call fcn.1401136e0
cmp rax, rsi
ja 0x140072024
mov r15, rax
cmp rax, 0x16
ja 0x140071757
lea r12, [rsp + 0x58]
mov byte [r12 + 0x17], r15b
jmp 0x140071782
mov r13, r15
or r13, 0xf
inc r13
mov rcx, r13
call fcn.1400eb670
mov r12, rax
mov qword [rsp + 0x58], rax
add rsi, 0x11
or rsi, r13
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r15
cmp r12, r14
ja 0x140071796
mov rax, r15
add rax, r12
cmp rax, r14
ja 0x140071fc7
mov rcx, r12
mov rdx, r14
mov r8, r15
call fcn.1400ee7d0
mov byte [r12 + r15], 0
movzx r13d, byte [rsp + 0x6f]
mov rdx, qword [rsp + 0x58]
test r13b, r13b
jns 0x1400717c3
mov rcx, qword [rsp + 0x60]
mov rax, rdx
jmp 0x1400717cb
lea rax, [rsp + 0x58]
mov rcx, r13
cmp rcx, 0x20
ja 0x1400719a8
cmp rcx, 0x10
ja 0x140071893
cmp rcx, 9
jae 0x140071b88
cmp rcx, 4
jae 0x140071e2d
movabs r14, 0x9ae16a3b2f90404f
test rcx, rcx
je 0x140071929
movzx edx, byte [rax]
mov r9, rcx
shr r9, 1
movzx r9d, byte [rax + r9]
movzx eax, byte [rcx + rax - 1]
shl r9, 8
or r9, rdx
lea rax, [rcx + rax*4]
imul r9, r14
movabs rcx, 0xc949d7c7509e6557
imul rcx, rax
xor rcx, r9
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
jmp 0x140071925
lea rax, [rbx + 0x10]
mov rdx, qword [rbx + 0x10]
mov qword [r12], rdx
mov qword [rbx + 0x10], r12
mov qword [rcx + r13*8], rax
mov rax, qword [r12]
test rax, rax
je 0x140071700
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x140071eee
cmp rax, rsi
jb 0x140071887
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbx]
jmp 0x1400716fd
movabs r9, 0xb492b66fbe98f273
imul r9, qword [rax]
test r13b, r13b
lea r10, [rsp + 0x58]
cmovs r10, rdx
mov r10, qword [r10 + 8]
movabs rdx, 0x9ae16a3b2f90404f
imul rdx, qword [rax + rcx - 8]
movabs r11, 0xc3a5c85c97cb3127
imul r11, qword [rax + rcx - 0x10]
movabs rax, 0xc949d7c7509e6557
xor rax, r10
rol rax, 0x2c
add rcx, r9
add rcx, rax
sub r9, r10
rol r9, 0x15
sub rcx, rdx
add r9, r11
rol rdx, 0x22
add rdx, r9
xor rdx, rcx
movabs rax, 0x9ddfea08eb382d69
imul rdx, rax
xor rcx, rdx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, rax
mov r14, rdx
shr r14, 0x2f
xor r14, rdx
imul r14, rax
mov rsi, qword [rbx + 0x30]
test rsi, rsi
movabs rdx, 0x101010101010101
movabs r8, 0xf0f0f0f0f0f0f0f
movabs r9, 0x3333333333333333
movabs rcx, 0x5555555555555555
jne 0x140071a97
xor r12d, r12d
mov rdi, qword [rsp + 0x30]
test r13b, r13b
jns 0x140071975
mov rcx, qword [rsp + 0x58]
call fcn.1400eb6ac
test r12, r12
jne 0x140071ff3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ecd30
mov rax, rbp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], rbx
cmp rcx, 0x40
ja 0x140071bcc
test r13b, r13b
lea rdi, [rsp + 0x58]
cmovs rdi, rdx
mov r9, qword [rdi + 0x10]
mov rsi, qword [rdi + 0x18]
mov rbx, qword [rax + rcx - 0x10]
lea r10, [rbx + rcx]
movabs rdx, 0xc3a5c85c97cb3127
imul r10, rdx
add r10, qword [rax]
lea r11, [r10 + rsi]
mov r15, r10
add r10, qword [rdi + 8]
mov rdi, r10
add r10, r9
add r9, qword [rax + rcx - 0x20]
mov r14, qword [rax + rcx - 8]
add r14, rsi
lea r12, [r14 + r9]
mov r8, r13
mov r13, r9
add r9, qword [rax + rcx - 0x18]
rol r11, 0xc
rol r15, 0x1b
rol rdi, 0x39
rol r12, 0xc
rol r13, 0x1b
add rdi, r15
mov rax, r9
rol rax, 0x39
add r9, rbx
add r14, r9
rol r9, 0x21
add r13, rsi
add r13, rax
add r13, r12
add r13, r9
add r13, r10
rol r10, 0x21
add rdi, r11
add r10, rdi
movabs rax, 0x9ae16a3b2f90404f
imul r13, rax
add r14, r10
imul r14, rdx
add r14, r13
mov r13, r8
mov rcx, r14
shr rcx, 0x2f
xor rcx, r14
imul rcx, rdx
add rcx, r10
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, rax
mov rbx, qword [rsp + 0x40]
jmp 0x140071929
mov rax, rsi
shr rax, 1
and rax, rcx
mov rcx, rsi
sub rcx, rax
mov rax, rcx
and rax, r9
shr rcx, 2
and rcx, r9
add rcx, rax
mov rdi, rcx
shr rdi, 4
add rdi, rcx
and rdi, r8
imul rdi, rdx
shr rdi, 0x38
cmp rdi, 1
jbe 0x140072036
mov r15, r14
cmp r14, rsi
jb 0x140071ae8
mov rax, r14
xor edx, edx
div rsi
mov r15, rdx
mov rax, qword [rbx + 0x28]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x14007195e
mov r12, qword [rax]
test r12, r12
je 0x14007195e
mov r13, rbx
lea rbx, [rsi - 1]
add r13, 0x4c
mov rax, qword [r12 + 8]
cmp r14, rax
je 0x140072005
cmp edi, 1
jbe 0x14007202e
cmp rax, rsi
jb 0x140071b34
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r15
jne 0x140071b42
mov r12, qword [r12]
test r12, r12
jne 0x140071b10
xor r12d, r12d
mov r13b, byte [rsp + 0x6f]
jmp 0x140071961
cmp rsi, rbp
mov rdi, qword [rsp + 0x30]
je 0x14007197e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbp, rbp
je 0x140071b80
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
mov edx, 1
call qword [case.0x140166830.0]
mov rbp, rsi
jmp 0x140071987
mov rdx, qword [rax + rcx - 8]
lea r9, [rdx + rcx]
ror r9, cl
mov rax, qword [rax]
xor rax, r9
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r9, rax
shr rax, 0x2f
xor rax, r9
imul rax, rcx
mov r14, rax
shr r14, 0x2f
xor r14, rax
imul r14, rcx
xor r14, rdx
jmp 0x140071929
mov qword [rsp + 0x50], r13
movabs rbp, 0xb492b66fbe98f273
movabs r8, 0x9ddfea08eb382d69
mov r15, qword [rax + rcx - 0x28]
mov rdx, qword [rax + rcx - 0x10]
mov r9, qword [rax + rcx - 0x38]
mov r11, qword [rax + rcx - 0x30]
lea r10, [r9 + rdx]
mov r14, qword [rax + rcx - 0x18]
lea rdi, [r11 + rcx]
xor rdi, r14
imul rdi, r8
mov rsi, r14
xor rsi, rdi
shr rdi, 0x2f
xor rdi, rsi
imul rdi, r8
mov rsi, rdi
shr rsi, 0x2f
xor rsi, rdi
imul rsi, r8
mov rdi, qword [rax + rcx - 0x40]
add rdi, rcx
lea rbx, [rdi + r15]
add rbx, rsi
rol rbx, 0x2b
add r11, r9
add r11, rdi
mov r12, r11
rol r12, 0x14
add r12, rdi
add r12, rbx
add r11, r15
mov r9, qword [rax + rcx - 0x20]
add r9, r10
mov rbx, qword [rax + rcx - 8]
add r9, rbp
lea r13, [rbx + r15]
add r13, r9
rol r13, 0x2b
add r14, rdx
add r14, r9
mov rdi, r14
rol rdi, 0x14
add rdi, r9
add rdi, r13
imul r15, rbp
add r15, qword [rax]
add r14, rbx
dec rcx
and rcx, 0xffffffffffffffc0
xor r13d, r13d
mov r9, rsi
add r15, r11
add r15, r10
mov rdx, qword [rax + r13 + 8]
mov rbp, qword [rax + r13 + 0x10]
add r15, rdx
rol r15, 0x1b
add r10, r12
mov r8, qword [rax + r13 + 0x30]
mov qword [rsp + 0x48], r8
add r10, r8
rol r10, 0x16
movabs rsi, 0xb492b66fbe98f273
imul r15, rsi
mov r8, r10
imul r8, rsi
mov rsi, r15
xor rsi, rdi
mov rbx, qword [rax + r13 + 0x28]
add r11, rbx
mov r10, r11
add r10, r8
add r9, r14
movabs r8, 0xb492b66fbe98f273
imul r12, r8
mov r8, qword [rax + r13 + 0x18]
add r12, qword [rax + r13]
add r14, r8
add r14, r12
add r14, rsi
rol r14, 0x2b
add rdx, rbp
add rdx, r12
mov r11, rdx
rol r11, 0x14
add r12, r11
add r12, r14
rol r9, 0x1f
mov r11, rdx
mov r15, r9
movabs rdx, 0xb492b66fbe98f273
imul r15, rdx
add r11, r8
add rdi, r15
mov rdx, qword [rax + r13 + 0x38]
add rdi, qword [rax + r13 + 0x20]
add rbp, rdx
add rbp, r10
add rbp, rdi
add rbx, qword [rsp + 0x48]
add rbx, rdi
mov r8, rbx
rol r8, 0x14
add rdi, r8
rol rbp, 0x2b
add rdi, rbp
mov r14, rbx
add r14, rdx
add r13, 0x40
cmp rcx, r13
jne 0x140071c97
xor r12, rdi
movabs r8, 0x9ddfea08eb382d69
imul r12, r8
xor rdi, r12
shr r12, 0x2f
xor r12, rdi
imul r12, r8
mov rax, r12
shr rax, 0x2f
xor rax, r12
imul rax, r8
add rax, r15
xor r11, r14
imul r11, r8
xor r14, r11
shr r11, 0x2f
xor r11, r14
imul r11, r8
mov rcx, r11
shr rcx, 0x2f
xor rcx, r11
imul rcx, r8
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
movabs r9, 0xb492b66fbe98f273
imul rdx, r9
add rdx, rsi
add rdx, rcx
xor rdx, rax
imul rdx, r8
xor rax, rdx
shr rdx, 0x2f
xor rdx, rax
imul rdx, r8
mov r14, rdx
shr r14, 0x2f
xor r14, rdx
imul r14, r8
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
jmp 0x140071929
mov edx, dword [rax]
mov eax, dword [rax + rcx - 4]
lea rcx, [rcx + rdx*8]
xor rcx, rax
movabs rdx, 0x9ddfea08eb382d69
imul rcx, rdx
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, rdx
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, rdx
jmp 0x140071929
divss xmm0, xmm2
call fcn.14010af6c
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x1401c70a8]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x140071edf
lea r8, [rsi - 1]
xor edx, edx
test rsi, r8
setne dl
or rdx, rcx
cmp rdx, rax
cmovbe rdx, rax
mov rcx, rbx
call fcn.1400af430
mov rsi, qword [rbx + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x140071ee6
cmp r15, rsi
jb 0x140072042
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
jmp 0x1400716e6
mov edx, 1
jmp 0x140071ea7
and r13, r15
jmp 0x1400716e6
and rax, rcx
jmp 0x140071887
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400714b4
lea rcx, [0x140218d60]
call fcn.140077990
test al, al
je 0x14007204a
lea rdi, [0x140218d68]
mov rcx, rdi
call fcn.14005e030
lea rcx, [0x140218d60]
mov rdx, rdi
xor r8d, r8d
mov r9, rcx
call fcn.140077a50
jmp 0x1400714a3
lea rcx, [0x140218d60]
call fcn.140077990
test al, al
je 0x140072056
lea rbx, [0x140218d68]
mov rcx, rbx
call fcn.14005e030
lea rcx, [0x140218d60]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.140077a50
jmp 0x1400714c5
mov ecx, 0xb8
call fcn.1400eb670
mov rcx, rax
call fcn.1400aefe0
mov rbx, qword [0x140218d70]
jmp 0x1400714da
lea rax, str.basic_string_const_char__detected_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__s___nullptr
mov r8d, 0x388
call fcn.140139d31
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0xee
call fcn.140139d31
mov rcx, rbp
mov edx, 0x20
call fcn.140073340
jmp 0x14007197e
lea rdx, [r12 + 0x10]
lea r8, [rsp + 0x58]
mov rcx, r13
call fcn.140068680
test al, al
jne 0x140071b45
jmp 0x140071b39
lea rcx, [rsp + 0x58]
call fcn.140136550
and rax, rbx
jmp 0x140071b34
lea r15, [rsi - 1]
and r15, r14
jmp 0x140071ae8
mov r13, r15
jmp 0x1400716e6
mov rdi, qword [0x140218d60]
jmp 0x1400714a3
mov rax, qword [0x140218d60]
jmp 0x1400714c5