Function at 0x140050180
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 [0x140190028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [0x1401ac5c8]
cmp rdi, 1
jbe 0x140050a15
mov rcx, rdi
call fcn.14002182e
mov rbx, qword [0x1401ac5c8]
cmp rbx, 1
jbe 0x140050a55
mov rcx, rbx
call fcn.140021940
mov rbx, qword [0x1401ac5d8]
test rbx, rbx
je 0x1400509e5
mov r14, qword [rsi + 8]
mov qword [rsp + 0x58], r14
test r14, r14
je 0x140050a95
mov rcx, r14
call fcn.1400c8100
mov r15, rax
cmp rax, 0x20
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
ja 0x140050515
cmp r15, 0x10
jbe 0x14005090e
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
imul r12, rcx
mov rsi, qword [rbx + 8]
test rsi, rsi
je 0x1400503c8
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 0x1400503d4
mov rbp, r12
cmp r12, rsi
jb 0x14005032f
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 0x140050376
mov r13, qword [rax]
test r13, r13
je 0x140050376
lea rcx, [rsi - 1]
mov rax, qword [r13 + 8]
cmp rax, r12
je 0x140050367
cmp edi, 1
jbe 0x1400503c3
cmp rax, rsi
jb 0x140050362
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rbp
jne 0x140050376
cmp qword [r13 + 0x18], r15
je 0x1400503e0
mov r13, qword [r13]
test r13, r13
jne 0x140050347
mov ecx, 0x28
call fcn.1400a4810
cmp rax, 0xfffffffffffffff0
je 0x140050ac1
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 0x14005040d
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140050412
and rax, rcx
jmp 0x140050362
movabs rbp, 0xaaaaaaaaaaaaaaaa
jmp 0x140050376
lea rbp, [rsi - 1]
and rbp, r12
jmp 0x14005032f
mov qword [rsp + 0x30], rcx
mov rcx, qword [r13 + 0x10]
mov rdx, r14
mov r8, r15
call fcn.1400a7710
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14005036d
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
jmp 0x140050471
cvtsi2ss xmm0, rax
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
jns 0x140050430
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140050435
cvtsi2ss xmm1, rsi
movss xmm2, dword [rbx + 0x20]
je 0x1400505eb
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x1400505eb
mov rcx, qword [rbx]
mov rax, qword [rcx + rbp*8]
test rax, rax
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
je 0x1400504ce
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 0x1400504c4
mov qword [r13 + 0x20], rdi
mov rcx, qword [0x1401ac5d8]
add rcx, 0x28
lea rdx, [rsp + 0x58]
call fcn.140051550
test al, al
jne 0x140050a03
mov rcx, r14
call fcn.1400218e0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a5d70
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 0x14005049b
jmp 0x1400509bc
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 0x14005046d
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x140050669
cmp rax, rsi
jb 0x140050509
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbx]
jmp 0x14005046a
cmp r15, 0x40
ja 0x140050671
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
jmp 0x1400502a5
mov edx, 1
jmp 0x140050629
divss xmm0, xmm2
call fcn.1400dbd00
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x140169c80]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x1400505e4
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.14008f140
mov rsi, qword [rbx + 8]
lea rbp, [rsi - 1]
test rsi, rbp
je 0x140050661
cmp r12, rsi
jb 0x140050aed
mov rax, r12
xor edx, edx
div rsi
mov rbp, rdx
jmp 0x14005044d
and rbp, r12
jmp 0x14005044d
and rax, rcx
jmp 0x140050509
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 0x140050741
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 0x1400502a9
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 0x1400502a9
cmp r15, 9
jae 0x140050975
cmp r15, 4
jae 0x1400508d0
movabs r12, 0x9ae16a3b2f90404f
test r15, r15
je 0x1400502a9
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 0x1400502a9
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 0x1400502a9
mov rcx, r14
call fcn.1400218e0
test rdi, rdi
je 0x1400509dd
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [0x1401bc008]
mov rdi, rsi
jmp 0x1400504a3
mov ecx, 0xb8
call fcn.1400a4810
mov rcx, rax
call fcn.14008ecf0
mov rbx, qword [0x1401ac5d8]
jmp 0x1400501e4
mov rcx, rdi
mov edx, 0x20
call fcn.14004b510
jmp 0x14005049b
lea rcx, [0x1401ac5c8]
call fcn.14004bd50
test al, al
je 0x140050af5
mov qword [0x1401ac5d0], 0
lea rdi, [0x1401ac5d0]
lea rcx, [0x1401ac5c8]
mov rdx, rdi
xor r8d, r8d
mov r9, rcx
call fcn.14004be10
jmp 0x1400501b3
lea rcx, [0x1401ac5c8]
call fcn.14004bd50
test al, al
je 0x140050b01
mov qword [0x1401ac5d0], 0
lea rbx, [0x1401ac5d0]
lea rcx, [0x1401ac5c8]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14004be10
jmp 0x1400501cc
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.1400e7b8d
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.1400e7b8d
mov rbp, r12
jmp 0x14005044d
mov rdi, qword [0x1401ac5c8]
jmp 0x1400501b3
mov rbx, qword [0x1401ac5c8]
jmp 0x1400501cc