Function at 0x14004f130
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [0x1401aa608]
cmp rdi, 1
jbe 0x14004f9cd
mov rcx, rdi
call fcn.140021f26
mov rbx, qword [0x1401aa608]
cmp rbx, 1
jbe 0x14004fa0d
mov rcx, rbx
call fcn.140022038
mov rbx, qword [0x1401aa618]
test rbx, rbx
je 0x14004f9af
mov r14, qword [rsi + 8]
mov qword [rsp + 0x58], r14
test r14, r14
je 0x14004fa4d
mov rcx, r14
call fcn.1400c5480
mov r15, rax
cmp rax, 0x20
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
ja 0x14004f30c
cmp r15, 0x10
jbe 0x14004f25a
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r14]
mov rdx, qword [r14 + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r14 + r15 - 8]
movabs r8, 0xc3a5c85c97cb3127
imul r8, qword [r14 + r15 - 0x10]
movabs r9, 0xc949d7c7509e6557
xor r9, rdx
rol r9, 0x2c
add r9, rcx
add r9, r15
sub rcx, rdx
rol rcx, 0x15
sub r9, rax
rol rax, 0x22
add rax, rcx
add rax, r8
xor rax, r9
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r9, rax
shr rax, 0x2f
xor rax, r9
imul rax, rcx
mov r12, rax
shr r12, 0x2f
xor r12, rax
jmp 0x14004f3d6
cmp r15, 9
jae 0x14004f2c5
cmp r15, 4
jae 0x14004f971
movabs r12, 0x9ae16a3b2f90404f
test r15, r15
je 0x14004f3da
movzx eax, byte [r14]
mov rcx, r15
shr rcx, 1
movzx ecx, byte [r14 + rcx]
movzx edx, byte [r15 + r14 - 1]
shl rcx, 8
or rcx, rax
lea rax, [r15 + rdx*4]
imul rcx, r12
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul r12, rax
jmp 0x14004f3da
mov rax, qword [r14 + r15 - 8]
lea rdx, [rax + r15]
mov ecx, r15d
ror rdx, cl
mov rcx, qword [r14]
xor rcx, rdx
movabs r8, 0x9ddfea08eb382d69
imul rcx, r8
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r8
mov r12, rcx
shr r12, 0x2f
xor r12, rcx
imul r12, r8
xor r12, rax
jmp 0x14004f3da
cmp r15, 0x40
ja 0x14004f712
mov rcx, qword [r14 + 0x10]
mov r9, qword [r14 + 0x18]
mov r11, qword [r14 + r15 - 0x10]
lea rdx, [r11 + r15]
movabs rax, 0xc3a5c85c97cb3127
imul rdx, rax
add rdx, qword [r14]
lea r8, [rdx + r9]
rol r8, 0xc
mov rdi, rdx
rol rdi, 0x1b
add rdx, qword [r14 + 8]
mov r10, rdx
rol r10, 0x39
add rdx, rcx
add rcx, qword [r14 + r15 - 0x20]
mov rsi, qword [r14 + r15 - 8]
add rsi, r9
lea r12, [rsi + rcx]
rol r12, 0xc
mov r13, rcx
rol r13, 0x1b
add rcx, qword [r14 + r15 - 0x18]
add r10, rdi
mov rdi, rcx
rol rdi, 0x39
add rcx, r11
add rsi, rcx
rol rcx, 0x21
add r13, r9
add r13, rdi
add r13, r12
add r13, rcx
add r13, rdx
rol rdx, 0x21
add r10, r8
add rdx, r10
movabs rcx, 0x9ae16a3b2f90404f
imul r13, rcx
add rsi, rdx
imul rsi, rax
add rsi, r13
mov r8, rsi
shr r8, 0x2f
xor r8, rsi
imul r8, rax
add r8, rdx
mov r12, r8
shr r12, 0x2f
xor r12, r8
imul r12, rcx
mov rsi, qword [rbx + 8]
test rsi, rsi
je 0x14004f4f9
mov rax, rsi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rsi
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
jbe 0x14004f505
mov rbp, r12
cmp r12, rsi
jb 0x14004f460
mov rax, r12
xor edx, edx
div rsi
mov rbp, rdx
mov rax, qword [rbx]
mov rax, qword [rax + rbp*8]
test rax, rax
je 0x14004f4a7
mov r13, qword [rax]
test r13, r13
je 0x14004f4a7
lea rcx, [rsi - 1]
mov rax, qword [r13 + 8]
cmp rax, r12
je 0x14004f498
cmp edi, 1
jbe 0x14004f4f4
cmp rax, rsi
jb 0x14004f493
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rbp
jne 0x14004f4a7
cmp qword [r13 + 0x18], r15
je 0x14004f511
mov r13, qword [r13]
test r13, r13
jne 0x14004f478
mov ecx, 0x28
call fcn.1400a1490
cmp rax, 0xfffffffffffffff0
je 0x14004fa79
mov r13, rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
xor eax, eax
mov qword [r13 + 0x20], rax
mov qword [r13 + 8], r12
mov qword [r13], rax
mov rax, qword [rbx + 0x18]
inc rax
jns 0x14004f53e
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14004f543
and rax, rcx
jmp 0x14004f493
movabs rbp, 0xaaaaaaaaaaaaaaaa
jmp 0x14004f4a7
lea rbp, [rsi - 1]
and rbp, r12
jmp 0x14004f460
mov qword [rsp + 0x30], rcx
mov rcx, qword [r13 + 0x10]
mov rdx, r14
mov r8, r15
call fcn.1400a4390
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14004f49e
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
jmp 0x14004f5a2
cvtsi2ss xmm0, rax
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
jns 0x14004f561
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x14004f566
cvtsi2ss xmm1, rsi
movss xmm2, dword [rbx + 0x20]
je 0x14004f646
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x14004f646
mov rcx, qword [rbx]
mov rax, qword [rcx + rbp*8]
test rax, rax
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
je 0x14004f5ff
mov rcx, qword [rax]
mov qword [r13], rcx
mov qword [rax], r13
inc qword [rbx + 0x18]
mov rsi, qword [r13 + 0x20]
test rsi, rsi
jne 0x14004f5f5
mov qword [r13 + 0x20], rdi
mov rcx, qword [0x1401aa618]
add rcx, 0x28
lea rdx, [rsp + 0x58]
call fcn.1400504a0
test al, al
jne 0x14004f6f8
mov rcx, r14
call fcn.140021fd8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a29f0
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rsi, rdi
je 0x14004f5cc
jmp 0x14004f6cf
lea rax, [rbx + 0x10]
mov rdx, qword [rbx + 0x10]
mov qword [r13], rdx
mov qword [rbx + 0x10], r13
mov qword [rcx + rbp*8], rax
mov rax, qword [r13]
test rax, rax
je 0x14004f59e
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x14004f6c7
cmp rax, rsi
jb 0x14004f63a
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbx]
jmp 0x14004f59b
divss xmm0, xmm2
call fcn.1400d8de0
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x140167c00]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x14004f6b8
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.14008c2a0
mov rsi, qword [rbx + 8]
lea rbp, [rsi - 1]
test rsi, rbp
je 0x14004f6bf
cmp r12, rsi
jb 0x14004f70a
mov rax, r12
xor edx, edx
div rsi
mov rbp, rdx
jmp 0x14004f57e
mov edx, 1
jmp 0x14004f684
and rbp, r12
jmp 0x14004f57e
and rax, rcx
jmp 0x14004f63a
mov rcx, r14
call fcn.140021fd8
test rdi, rdi
je 0x14004f6f0
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [0x1401ba008]
mov rdi, rsi
jmp 0x14004f5d4
mov rcx, rdi
mov edx, 0x20
call fcn.14004abf0
jmp 0x14004f5cc
mov rbp, r12
jmp 0x14004f57e
movabs rbp, 0xb492b66fbe98f273
movabs rdi, 0x9ddfea08eb382d69
mov r11, qword [r14 + r15 - 0x28]
mov rax, qword [r14 + r15 - 0x10]
mov rcx, qword [r14 + r15 - 0x38]
mov r8, qword [r14 + r15 - 0x30]
lea rdx, [rcx + rax]
mov r10, qword [r14 + r15 - 0x18]
lea rsi, [r8 + r15]
xor rsi, r10
imul rsi, rdi
mov r9, r10
xor r9, rsi
shr rsi, 0x2f
xor rsi, r9
imul rsi, rdi
mov r9, rsi
shr r9, 0x2f
xor r9, rsi
imul r9, rdi
mov rdi, qword [r14 + r15 - 0x40]
add rdi, r15
lea r12, [rdi + r11]
mov qword [rsp + 0x30], r9
add r12, r9
rol r12, 0x2b
add r8, rcx
add r8, rdi
mov rsi, r8
rol rsi, 0x14
add rsi, rdi
add rsi, r12
add r8, r11
mov rcx, qword [r14 + r15 - 0x20]
add rcx, rdx
mov rdi, qword [r14 + r15 - 8]
add rcx, rbp
lea r13, [rdi + r11]
add r13, rcx
rol r13, 0x2b
add r10, rax
add r10, rcx
mov r12, r10
rol r12, 0x14
add r12, rcx
add r12, r13
imul r11, rbp
add r11, qword [r14]
add r10, rdi
lea rax, [r15 - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
add r11, r8
add r11, rdx
mov rax, qword [r14 + rbp + 8]
mov rdi, qword [r14 + rbp + 0x10]
add r11, rax
rol r11, 0x1b
add rdx, rsi
mov r9, qword [r14 + rbp + 0x30]
mov qword [rsp + 0x50], r9
add rdx, r9
rol rdx, 0x16
movabs r13, 0xb492b66fbe98f273
imul r11, r13
mov r9, rdx
imul r9, r13
xor r11, r12
mov r13, qword [r14 + rbp + 0x28]
add r8, r13
mov rdx, r8
add rdx, r9
add rcx, r10
movabs r8, 0xb492b66fbe98f273
imul rsi, r8
mov r9, qword [r14 + rbp + 0x18]
add rsi, qword [r14 + rbp]
add r10, r9
add r10, rsi
mov qword [rsp + 0x30], r11
add r10, r11
rol r10, 0x2b
add rax, rdi
add rax, rsi
mov r8, rax
rol r8, 0x14
add rsi, r8
add rsi, r10
rol rcx, 0x1f
mov r8, rax
mov r11, rcx
movabs rax, 0xb492b66fbe98f273
imul r11, rax
add r8, r9
add r12, r11
mov rax, qword [r14 + rbp + 0x38]
add r12, qword [r14 + rbp + 0x20]
add rdi, rax
add rdi, rdx
add rdi, r12
add r13, qword [rsp + 0x50]
add r13, r12
mov rcx, r13
rol rcx, 0x14
add r12, rcx
rol rdi, 0x2b
add r12, rdi
mov r10, r13
add r10, rax
add rbp, 0x40
cmp qword [rsp + 0x48], rbp
jne 0x14004f7e2
xor rsi, r12
movabs r9, 0x9ddfea08eb382d69
imul rsi, r9
xor r12, rsi
shr rsi, 0x2f
xor rsi, r12
imul rsi, r9
mov rax, rsi
shr rax, 0x2f
xor rax, rsi
imul rax, r9
add rax, r11
xor r8, r10
imul r8, r9
xor r10, r8
shr r8, 0x2f
xor r8, r10
imul r8, r9
mov rcx, r8
shr rcx, 0x2f
xor rcx, r8
imul rcx, r9
mov r8, rdx
shr r8, 0x2f
xor r8, rdx
movabs rdx, 0xb492b66fbe98f273
imul r8, rdx
add r8, qword [rsp + 0x30]
add r8, rcx
xor r8, rax
imul r8, r9
xor rax, r8
shr r8, 0x2f
xor r8, rax
imul r8, r9
mov r12, r8
shr r12, 0x2f
xor r12, r8
imul r12, r9
jmp 0x14004f3da
mov eax, dword [r14]
mov ecx, dword [r14 + r15 - 4]
lea rax, [r15 + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov r12, rax
shr r12, 0x2f
xor r12, rax
imul r12, rdx
jmp 0x14004f3da
mov ecx, 0xb8
call fcn.1400a1490
mov rcx, rax
call fcn.14008be50
mov rbx, qword [0x1401aa618]
jmp 0x14004f194
lea rcx, [0x1401aa608]
call fcn.14004b260
test al, al
je 0x14004faa5
mov qword [0x1401aa610], 0
lea rdi, [0x1401aa610]
lea rcx, [0x1401aa608]
mov rdx, rdi
xor r8d, r8d
mov r9, rcx
call fcn.14004b320
jmp 0x14004f163
lea rcx, [0x1401aa608]
call fcn.14004b260
test al, al
je 0x14004fab1
mov qword [0x1401aa610], 0
lea rbx, [0x1401aa610]
lea rcx, [0x1401aa608]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14004b320
jmp 0x14004f17c
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400e34ad
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400e34ad
mov rdi, qword [0x1401aa608]
jmp 0x14004f163
mov rbx, qword [0x1401aa608]
jmp 0x14004f17c