Function at 0x14004fbe0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, rcx
call fcn.14004e220
test rax, rax
je 0x14004fc05
mov rcx, rax
call fcn.14004e230
mov rsi, qword [0x1401aa608]
cmp rsi, 1
jbe 0x140050238
mov rcx, rsi
call fcn.140021fa8
mov r15, qword [0x1401aa618]
test r15, r15
je 0x14004ff19
mov rdi, qword [rbx]
mov r8, qword [rbx + 8]
cmp r8, 0x20
mov qword [rsp + 0x20], rsi
ja 0x14004fd4a
cmp r8, 0x10
jbe 0x14004fcdd
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [rdi]
mov rdx, qword [rdi + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [rdi + r8 - 8]
movabs r11, 0xc3a5c85c97cb3127
imul r11, qword [rdi + r8 - 0x10]
movabs r9, 0xc949d7c7509e6557
xor r9, rdx
rol r9, 0x2c
add r9, rcx
add r9, r8
sub rcx, rdx
rol rcx, 0x15
sub r9, rax
rol rax, 0x22
add rax, r11
add rax, rcx
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
jmp 0x14004fe22
cmp r8, 9
jae 0x14004ff45
cmp r8, 4
jae 0x14004ff8c
movabs r14, 0x9ae16a3b2f90404f
test r8, r8
je 0x14004fe22
movzx eax, byte [rdi]
mov rcx, r8
shr rcx, 1
movzx ecx, byte [rdi + rcx]
movzx edx, byte [r8 + rdi - 1]
shl rcx, 8
or rcx, rax
lea rax, [r8 + rdx*4]
imul rcx, r14
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul r14, rax
jmp 0x14004fe22
mov qword [rsp + 0x28], r15
cmp r8, 0x40
ja 0x14004ffe7
mov rcx, qword [rdi + 0x10]
mov r9, qword [rdi + 0x18]
mov r11, qword [rdi + r8 - 0x10]
lea rdx, [r11 + r8]
movabs rax, 0xc3a5c85c97cb3127
imul rdx, rax
add rdx, qword [rdi]
lea rbx, [rdx + r9]
rol rbx, 0xc
mov r15, rdx
rol r15, 0x1b
add rdx, qword [rdi + 8]
mov r10, rdx
rol r10, 0x39
add rdx, rcx
add rcx, qword [rdi + r8 - 0x20]
mov r14, qword [rdi + r8 - 8]
add r14, r9
lea r12, [r14 + rcx]
rol r12, 0xc
mov r13, rcx
rol r13, 0x1b
add rcx, qword [rdi + r8 - 0x18]
add r10, r15
mov r15, rcx
rol r15, 0x39
add rcx, r11
add r14, rcx
rol rcx, 0x21
add r13, r9
add r13, r15
add r13, r12
add r13, rcx
add r13, rdx
rol rdx, 0x21
add r10, rbx
add rdx, r10
movabs rcx, 0x9ae16a3b2f90404f
imul r13, rcx
add r14, rdx
imul r14, rax
add r14, r13
mov r9, r14
shr r9, 0x2f
xor r9, r14
imul r9, rax
add r9, rdx
mov r14, r9
shr r14, 0x2f
xor r14, r9
imul r14, rcx
mov r15, qword [rsp + 0x28]
mov r13, qword [r15 + 8]
test r13, r13
je 0x14004ff19
mov rax, r13
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r13
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 rbp, 0x101010101010101
imul rbp, rax
shr rbp, 0x38
cmp rbp, 1
jbe 0x14004ffdb
mov r12, r14
cmp r14, r13
jb 0x14004fea8
mov rax, r14
xor edx, edx
div r13
mov r12, rdx
mov rax, qword [r15]
mov rax, qword [rax + r12*8]
test rax, rax
je 0x14004ff19
mov rsi, qword [rax]
test rsi, rsi
je 0x14004ffd3
mov rbx, rdi
lea rax, [r13 - 1]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov rax, qword [rsi + 8]
cmp r14, rax
jne 0x14004ff20
cmp qword [rsi + 0x18], r8
jne 0x14004ff3b
mov rcx, qword [rsi + 0x10]
mov rdx, rbx
mov rdi, r8
call fcn.1400a4390
mov r8, rdi
test eax, eax
jne 0x14004ff3b
mov r15, qword [rsi + 0x20]
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.140022008
mov rax, r15
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r15d, r15d
jmp 0x14004fefd
cmp ebp, 1
jbe 0x14004ffc9
cmp rax, r13
jb 0x14004ff36
xor edx, edx
div r13
mov rax, rdx
cmp rax, r12
jne 0x14004fef8
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14004fecf
jmp 0x14004fef8
mov rax, qword [rdi + r8 - 8]
lea rdx, [rax + r8]
mov ecx, r8d
ror rdx, cl
mov rcx, qword [rdi]
xor rcx, rdx
movabs r9, 0x9ddfea08eb382d69
imul rcx, r9
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r9
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, r9
xor r14, rax
jmp 0x14004fe22
mov eax, dword [rdi]
mov ecx, dword [rdi + r8 - 4]
lea rax, [r8 + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov r14, rax
shr r14, 0x2f
xor r14, rax
imul r14, rdx
jmp 0x14004fe22
and rax, qword [rsp + 0x28]
jmp 0x14004ff36
xor r15d, r15d
jmp 0x14004fef8
lea r12, [r13 - 1]
and r12, r14
jmp 0x14004fea8
movabs rbp, 0xb492b66fbe98f273
movabs rbx, 0x9ddfea08eb382d69
mov r14, qword [rdi + r8 - 0x28]
mov rax, qword [rdi + r8 - 0x10]
mov rcx, qword [rdi + r8 - 0x38]
mov r9, qword [rdi + r8 - 0x30]
lea rdx, [rcx + rax]
mov rsi, r8
mov r11, qword [rdi + r8 - 0x18]
add r8, r9
xor r8, r11
imul r8, rbx
mov r10, r11
xor r10, r8
shr r8, 0x2f
xor r8, r10
imul r8, rbx
mov r10, r8
shr r10, 0x2f
xor r10, r8
imul r10, rbx
mov r8, qword [rdi + rsi - 0x40]
add r8, rsi
lea r12, [r8 + r14]
add r12, r10
rol r12, 0x2b
add r9, rcx
add r9, r8
mov r15, r9
rol r15, 0x14
add r15, r8
add r15, r12
add r9, r14
mov rcx, qword [rdi + rsi - 0x20]
add rcx, rdx
mov r8, qword [rdi + rsi - 8]
add rcx, rbp
lea r13, [r8 + r14]
add r13, rcx
rol r13, 0x2b
add r11, rax
add r11, rcx
mov r12, r11
rol r12, 0x14
add r12, rcx
add r12, r13
imul r14, rbp
add r14, qword [rdi]
add r11, r8
mov qword [rsp + 0x30], rsi
lea rax, [rsi - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x38], rax
xor ebp, ebp
movabs rbx, 0xb492b66fbe98f273
mov rax, r10
add r14, r9
add r14, rdx
mov r8, qword [rdi + rbp + 8]
mov rcx, qword [rdi + rbp + 0x10]
add r14, r8
rol r14, 0x1b
add rdx, r15
mov r10, qword [rdi + rbp + 0x30]
mov qword [rsp + 0x40], r10
add rdx, r10
rol rdx, 0x16
imul r14, rbx
mov rsi, rdx
imul rsi, rbx
mov r10, r14
xor r10, r12
mov r13, qword [rdi + rbp + 0x28]
add r9, r13
mov rdx, r9
add rdx, rsi
add rax, r11
imul r15, rbx
mov rsi, qword [rdi + rbp + 0x18]
add r15, qword [rdi + rbp]
add r11, rsi
add r11, r15
add r11, r10
rol r11, 0x2b
add r8, rcx
add r8, r15
mov r9, r8
rol r9, 0x14
add r15, r9
add r15, r11
rol rax, 0x1f
mov r9, r8
mov r14, rax
imul r14, rbx
add r9, rsi
add r12, r14
mov rax, qword [rdi + rbp + 0x38]
add r12, qword [rdi + rbp + 0x20]
add rcx, rax
add rcx, rdx
add rcx, r12
add r13, qword [rsp + 0x40]
add r13, r12
mov r8, r13
rol r8, 0x14
add r12, r8
rol rcx, 0x2b
add r12, rcx
mov r11, r13
add r11, rax
add rbp, 0x40
cmp qword [rsp + 0x38], rbp
jne 0x1400500c3
xor r15, r12
movabs rsi, 0x9ddfea08eb382d69
imul r15, rsi
xor r12, r15
shr r15, 0x2f
xor r15, r12
imul r15, rsi
mov rax, r15
shr rax, 0x2f
xor rax, r15
imul rax, rsi
add rax, r14
xor r9, r11
imul r9, rsi
xor r11, r9
shr r9, 0x2f
xor r9, r11
imul r9, rsi
mov rcx, r9
shr rcx, 0x2f
xor rcx, r9
imul rcx, rsi
mov r8, rdx
shr r8, 0x2f
xor r8, rdx
movabs rdx, 0xb492b66fbe98f273
imul r8, rdx
add r8, r10
add r8, rcx
xor r8, rax
imul r8, rsi
xor rax, r8
shr r8, 0x2f
xor r8, rax
imul r8, rsi
mov r14, r8
shr r14, 0x2f
xor r14, r8
imul r14, rsi
mov rsi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
jmp 0x14004fe1d
lea rcx, [0x1401aa608]
call fcn.14004b260
test al, al
je 0x140050274
mov qword [0x1401aa610], 0
lea rsi, [0x1401aa610]
lea rcx, [0x1401aa608]
mov rdx, rsi
xor r8d, r8d
mov r9, rcx
call fcn.14004b320
jmp 0x14004fc16
mov rsi, qword [0x1401aa608]
jmp 0x14004fc16