Function at 0x140078460
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 [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x14021dbb8]
cmp rdi, 1
jbe 0x140078f08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140078efb
mov rax, qword [0x14021dbb8]
cmp rax, 1
jbe 0x140078f45
mov qword [rsp + 0x30], rdi
mov rbx, qword [0x14021dbc8]
test rbx, rbx
je 0x140078fda
mov qword [rsp + 0x38], rsi
mov r14, qword [rsi + 8]
mov r12b, 1
test r14, r14
je 0x140078633
mov rcx, r14
call fcn.140138e40
mov rbp, rax
test rax, rax
sete al
je 0x140078633
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 0x140078500
mov r12d, eax
mov rsi, qword [rbx + 8]
movabs rcx, 0x5555555555555555
movabs r9, 0x3333333333333333
movabs r8, 0xf0f0f0f0f0f0f0f
movabs rdx, 0x101010101010101
test rsi, rsi
je 0x14007864e
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 0x140078642
mov r13, r15
cmp r15, rsi
jb 0x1400785a0
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 0x140078658
mov byte [rsp + 0x40], r12b
mov r12, qword [rax]
test r12, r12
je 0x140078658
lea rcx, [rsi - 1]
mov rax, qword [r12 + 8]
cmp rax, r15
je 0x1400785e6
cmp edi, 1
jbe 0x14007863d
cmp rax, rsi
jb 0x1400785e1
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x140078658
cmp qword [r12 + 0x18], rbp
je 0x1400785f8
mov r12, qword [r12]
test r12, r12
jne 0x1400785c5
jmp 0x140078658
mov qword [rsp + 0x48], r13
cmp byte [rsp + 0x40], 0
jne 0x140078629
mov r13, rbx
mov rbx, rcx
mov rcx, qword [r12 + 0x10]
mov rdx, r14
mov r8, rbp
call fcn.140114770
test eax, eax
mov rcx, rbx
mov rbx, r13
mov r13, qword [rsp + 0x48]
jne 0x1400785ed
mov rbp, qword [rsp + 0x38]
jmp 0x140078703
xor ebp, ebp
xor r15d, r15d
jmp 0x14007851a
and rax, rcx
jmp 0x1400785e1
lea r13, [rsi - 1]
and r13, r15
jmp 0x1400785a0
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x28
call fcn.1401119e0
mov r12, rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], 0
mov qword [rax + 8], r15
mov qword [rax], 0
mov rax, qword [rbx + 0x18]
inc rax
js 0x140078690
cvtsi2ss xmm0, rax
jmp 0x1400786a5
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 0x1400786c4
cvtsi2ss xmm1, rsi
jmp 0x1400786cd
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbx + 0x20]
je 0x140078e5a
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140078e5a
mov rcx, qword [rbx]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x140078829
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 0x140078b1b
mov qword [r12 + 0x20], rbp
test r14, r14
je 0x140078f82
mov r13, qword [0x14021dbc8]
movabs rdi, 0x7fffffffffffffef
mov rcx, r14
call fcn.140138e40
cmp rax, rdi
ja 0x140079029
mov r15, rax
lea rsi, [rsp + 0x58]
cmp rax, 0x16
ja 0x140078759
mov byte [rsp + 0x6f], r15b
mov rcx, rsi
jmp 0x140078784
mov r12, r15
or r12, 0xf
inc r12
mov rcx, r12
call fcn.1401119e0
mov rcx, rax
mov qword [rsp + 0x58], rax
add rdi, 0x11
or rdi, r12
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r15
lea rdi, [rcx + r15]
cmp rcx, r14
ja 0x140078796
cmp rdi, r14
ja 0x140078fae
test r15, r15
je 0x1400787a6
mov rdx, r14
mov r8, r15
call fcn.140114870
mov byte [rdi], 0
movzx ebx, byte [rsp + 0x6f]
mov ecx, ebx
and ecx, 0x7f
test bl, bl
mov rdx, qword [rsp + 0x58]
mov rax, rsi
cmovs rax, rdx
cmovs rcx, qword [rsp + 0x60]
cmp rcx, 0x20
ja 0x140078874
cmp rcx, 0x10
ja 0x140078a86
cmp rcx, 9
jb 0x140078b54
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 0x140078958
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 0x1400786ff
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x140078ef3
cmp rax, rsi
jb 0x140078868
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbx]
jmp 0x1400786fc
mov qword [rsp + 0x40], r13
cmp rcx, 0x40
ja 0x140078bb7
test bl, bl
cmovs rsi, rdx
mov r9, qword [rsi + 0x10]
mov rdi, qword [rsi + 0x18]
mov r8, rbx
mov rbx, qword [rax + rcx - 0x10]
lea r10, [rbx + rcx]
movabs rdx, 0xc3a5c85c97cb3127
imul r10, rdx
add r10, qword [rax]
lea r11, [r10 + rdi]
mov r15, r10
add r10, qword [rsi + 8]
mov rsi, r10
add r10, r9
add r9, qword [rax + rcx - 0x20]
mov r14, qword [rax + rcx - 8]
add r14, rdi
lea r12, [r14 + r9]
mov r13, r9
add r9, qword [rax + rcx - 0x18]
rol r11, 0xc
rol r15, 0x1b
rol rsi, 0x39
rol r12, 0xc
rol r13, 0x1b
add rsi, r15
mov rax, r9
rol rax, 0x39
add r9, rbx
mov rbx, r8
add r14, r9
rol r9, 0x21
add r13, rdi
add r13, rax
add r13, r12
add r13, r9
add r13, r10
rol r10, 0x21
add rsi, r11
add r10, rsi
movabs rax, 0x9ae16a3b2f90404f
imul r13, rax
add r14, r10
imul r14, rdx
add r14, r13
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 r13, qword [rsp + 0x40]
mov rsi, qword [r13 + 0x30]
test rsi, rsi
movabs rdx, 0x101010101010101
movabs r8, 0xf0f0f0f0f0f0f0f
movabs r9, 0x3333333333333333
movabs rcx, 0x5555555555555555
jne 0x1400789d2
xor r12d, r12d
mov rdi, qword [rsp + 0x30]
test bl, bl
jns 0x14007899f
mov rcx, qword [rsp + 0x58]
call fcn.140111a1c
test r12, r12
jne 0x140079017
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140113000
mov rax, rbp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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 0x140078ed0
mov r15, r14
cmp r14, rsi
jb 0x140078a23
mov rax, r14
xor edx, edx
div rsi
mov r15, rdx
mov rax, qword [r13 + 0x28]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x140078989
mov r12, qword [rax]
test r12, r12
je 0x140078989
lea rbx, [rsi - 1]
add r13, 0x4c
mov rax, qword [r12 + 8]
cmp r14, rax
je 0x140078ff8
cmp edi, 1
jbe 0x140078ee3
cmp rax, rsi
jb 0x140078a6c
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r15
jne 0x140078a7a
mov r12, qword [r12]
test r12, r12
jne 0x140078a48
xor r12d, r12d
mov bl, byte [rsp + 0x6f]
jmp 0x14007898c
movabs r9, 0xb492b66fbe98f273
imul r9, qword [rax]
test bl, bl
cmovs rsi, rdx
mov r10, qword [rsi + 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
jmp 0x140078958
cmp rsi, rbp
mov rdi, qword [rsp + 0x30]
je 0x1400789a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbp, rbp
je 0x140078b4c
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
mov edx, 1
call qword [case.0x140173f30.0]
mov rbp, rsi
jmp 0x1400789b1
cmp rcx, 4
jae 0x140078e1e
movabs r14, 0x9ae16a3b2f90404f
test rcx, rcx
je 0x140078958
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
imul r14, rax
jmp 0x140078958
mov qword [rsp + 0x50], rbx
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 r14, qword [rax + rcx - 0x30]
lea r10, [r9 + rdx]
mov rsi, qword [rax + rcx - 0x18]
lea rdi, [r14 + rcx]
xor rdi, rsi
imul rdi, r8
mov r11, rsi
xor r11, rdi
shr rdi, 0x2f
xor rdi, r11
imul rdi, r8
mov r11, rdi
shr r11, 0x2f
xor r11, rdi
imul r11, r8
mov rdi, qword [rax + rcx - 0x40]
add rdi, rcx
lea rbx, [rdi + r15]
add rbx, r11
rol rbx, 0x2b
add r14, r9
add r14, rdi
mov r12, r14
rol r12, 0x14
add r12, rdi
add r12, rbx
add r14, 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 rsi, rdx
add rsi, r9
mov rdi, rsi
rol rdi, 0x14
add rdi, r9
add rdi, r13
imul r15, rbp
add r15, qword [rax]
add rsi, rbx
dec rcx
and rcx, 0xffffffffffffffc0
xor r13d, r13d
mov r9, r11
add r15, r14
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 r11, 0xb492b66fbe98f273
imul r15, r11
mov r8, r10
imul r8, r11
mov r11, r15
xor r11, rdi
mov rbx, qword [rax + r13 + 0x28]
add r14, rbx
mov r10, r14
add r10, r8
add r9, rsi
movabs r8, 0xb492b66fbe98f273
imul r12, r8
mov r8, qword [rax + r13 + 0x18]
add r12, qword [rax + r13]
add rsi, r8
add rsi, r12
add rsi, r11
rol rsi, 0x2b
add rdx, rbp
add rdx, r12
mov r14, rdx
rol r14, 0x14
add r12, r14
add r12, rsi
rol r9, 0x1f
mov r14, rdx
mov r15, r9
movabs rdx, 0xb492b66fbe98f273
imul r15, rdx
add r14, 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 rsi, rbx
add rsi, rdx
add r13, 0x40
cmp rcx, r13
jne 0x140078c82
xor r12, rdi
movabs r8, 0x9ddfea08eb382d69
imul r12, r8
mov rcx, r12
shr rcx, 0x2f
xor rcx, rdi
xor rcx, r12
imul rcx, r8
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul rax, r8
add rax, r15
xor r14, rsi
imul r14, r8
mov rcx, r14
shr rcx, 0x2f
xor rcx, rsi
xor rcx, r14
imul rcx, r8
mov rdx, rcx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, r8
mov rcx, r10
shr rcx, 0x2f
xor rcx, r10
movabs r9, 0xb492b66fbe98f273
imul rcx, r9
add rcx, r11
add rcx, rdx
xor rcx, rax
imul rcx, r8
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, r8
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, r8
mov rbp, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
jmp 0x140078958
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 0x140078958
divss xmm0, xmm2
call fcn.140130af0
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x1401d3bc8]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x140078edc
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.1400c6fb0
mov rsi, qword [rbx + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x140078eeb
cmp r15, rsi
jb 0x14007902e
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
jmp 0x1400786e5
lea r15, [rsi - 1]
and r15, r14
jmp 0x140078a23
mov edx, 1
jmp 0x140078e98
and rax, rbx
jmp 0x140078a6c
and r13, r15
jmp 0x1400786e5
and rax, rcx
jmp 0x140078868
mov rcx, rdi
call fcn.140081a40
jmp 0x1400784a4
lea rcx, [0x14021dbb8]
call fcn.140071290
test al, al
je 0x140079036
lea rdi, [0x14021dbc0]
mov rcx, rdi
call fcn.14005ce90
lea rcx, [0x14021dbb8]
mov rdx, rdi
xor r8d, r8d
mov r9, rcx
call fcn.140071350
jmp 0x140078493
lea rcx, [0x14021dbb8]
call fcn.140071290
test al, al
je 0x140079042
lea rbx, [0x14021dbc0]
mov rcx, rbx
call fcn.14005ce90
lea rcx, [0x14021dbb8]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.140071350
jmp 0x1400784b5
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, 0x371
call fcn.140152a0d
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.140152a0d
mov ecx, 0xc0
call fcn.1401119e0
mov rcx, rax
call fcn.1400c6d70
mov rbx, qword [0x14021dbc8]
jmp 0x1400784ca
lea rdx, [r12 + 0x10]
lea r8, [rsp + 0x58]
mov rcx, r13
call fcn.140072380
test al, al
jne 0x140078a7d
jmp 0x140078a71
mov rcx, rbp
mov edx, 0x20
call fcn.140076db0
jmp 0x1400789a8
call fcn.14012ba40
mov r13, r15
jmp 0x1400786e5
mov rdi, qword [0x14021dbb8]
jmp 0x140078493
mov rax, qword [0x14021dbb8]
jmp 0x1400784b5