Function at 0x14013f9f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 8], rcx
push rsi
push r13
sub rsp, 0x48
mov rsi, qword [rsp + 0x80]
mov r13, rcx
mov qword [rax + 0x10], rbx
mov qword [rax - 0x18], rbp
mov qword [rax - 0x20], rdi
xor edi, edi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov eax, r9d
movsxd rbp, r8d
mov r15, rdx
test rdx, rdx
je 0x14013fb53
test al, 8
jne 0x14013fb53
mov r10, qword [rcx + 0x18]
lea eax, [rbp - 1]
mov qword [rsp + 0x80], r10
mov r9d, 0xd
movsxd r8, eax
test eax, eax
js 0x14013fa78
nop dword [rax]
movzx edx, byte [r15 + r8]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x14013fa60
xor edx, edx
mov eax, r9d
div dword [r10 + 0x14]
mov rax, qword [r10 + 0x20]
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x14013fab0
nop
cmp ebp, dword [rbx + 0x1c]
jne 0x14013faa8
mov r8, rbp
lea rcx, [rbx + 0x30]
mov rdx, r15
call fcn.140067fa0
test eax, eax
je 0x14013fad8
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14013fa90
xor r12d, r12d
mov dword [r13 + 0x3c], 0
lea r14, [r13 + 0x3c]
test rdi, rdi
je 0x14013facb
lea rax, [rdi + 0x10]
mov qword [rdi], rax
or dword [rsi + 8], 1
lea rbx, [rsi + 8]
jmp 0x14013fbea
mov r14d, dword [rbx + 0x18]
lea r12d, [rbp + 0x30]
sub r14d, r12d
call fcn.1401e45d0
test eax, eax
jne 0x14013fb39
lea eax, [r14 + 0x1a]
movsxd rcx, eax
call fcn.1401aeec0
mov rdi, rax
test rax, rax
je 0x14013fb39
movsxd rdx, r12d
lea rcx, [rax + 0x10]
add rdx, rbx
movsxd r8, r14d
call fcn.140067c10
mov ecx, 0x10
mov rdx, rbx
sub ecx, r12d
movsxd r8, ecx
mov rcx, qword [rsp + 0x80]
add r8, rdi
call fcn.1401337e0
lea r12d, [r14 + rax]
jmp 0x14013fab3
lea r14, [r13 + 0x3c]
xor r12d, r12d
lea rbx, [rsi + 8]
mov dword [r14], 7
or dword [rbx], 1
jmp 0x14013fbea
mov rcx, qword [rcx + 0x18]
lea r14, [r13 + 0x3c]
mov r8d, ebp
lea r9, [rcx + 0x18]
call fcn.140133a00
mov rcx, qword [r13 + 0x18]
mov dword [r14], eax
mov r12, qword [rcx + 0x18]
test r12, r12
je 0x14013fbd6
movsxd rbp, dword [r12 + 0x1c]
lea r15, [r12 + 0x30]
xor r8d, r8d
mov rdx, r12
call fcn.1401337e0
mov r12d, dword [r12 + 0x18]
mov rbx, rbp
sub r12d, ebp
sub r12d, 0x30
add rbx, r15
je 0x14013fbde
cmp dword [r14], edi
jne 0x14013fbde
call fcn.1401e45d0
test eax, eax
jne 0x14013fbc0
mov ecx, 0x10
call fcn.1401aeec0
mov rdi, rax
test rax, rax
jne 0x14013fbc9
mov dword [r14], 7
jmp 0x14013fbde
mov qword [rax + 8], 0
mov qword [rax], rbx
jmp 0x14013fbde
xor r15d, r15d
xor ebp, ebp
xor r12d, r12d
mov dword [r13 + 0x30], 0
lea rbx, [rsi + 8]
test rdi, rdi
je 0x14013fd32
mov dword [rsi + 0x68], 0
test ebp, ebp
je 0x14013fc39
cmp ebp, dword [rsi + 0x6c]
jbe 0x14013fc1f
mov r8d, ebp
lea rdx, [rsi + 0x60]
mov rcx, r14
call fcn.14019b4c0
test eax, eax
jne 0x14013fc39
mov r14, qword [rsp + 0x60]
add r14, 0x3c
movsxd rcx, dword [rsi + 0x68]
mov rdx, r15
add rcx, qword [rsi + 0x60]
mov r8d, ebp
call fcn.140067c10
add dword [rsi + 0x68], ebp
lea rbx, [rsi + 8]
mov dword [rdi + 0xc], r12d
lea rdx, [rsi + 0x70]
mov dword [rdi + 8], r12d
mov qword [rsi + 0x10], rdi
mov rcx, qword [rdi]
call fcn.14019dec0
test byte [rsp + 0x78], 2
mov r13, qword [rsp + 0x60]
movzx edx, al
mov qword [rsi + 0x20], rdx
mov r9d, dword [rdi + 8]
mov dword [rsi + 0x44], r9d
je 0x14013fc84
or dword [rsi + 8], 2
lea rbx, [rsi + 8]
mov rdx, rsi
mov rcx, r13
call fcn.140140ff0
jmp 0x14013fd32
cmp dword [r14], 0
jne 0x14013fd32
mov rax, qword [r13]
mov ebx, edx
mov r8, qword [rsi + 0x10]
cmp dword [rax + 0x60], 1
jne 0x14013fce6
cmp r9d, dword [r8 + 0xc]
cmovge r9d, dword [r8 + 0xc]
mov byte [rsi + 0x7c], 0
mov dword [rsi + 0x78], 1
cmp edx, r9d
jge 0x14013fd27
mov rax, qword [r8]
cmp byte [rdx + rax], 0
jne 0x14013fd27
lea eax, [rdx + 1]
mov byte [rsi + 0x7c], 1
mov edx, eax
cmp eax, r9d
jge 0x14013fcdd
mov ecx, eax
mov rax, qword [r8]
cmp byte [rcx + rax], 0
jne 0x14013fcdd
inc edx
jmp 0x14013fd27
mov dword [rsi + 0x78], 0
jmp 0x14013fd27
mov rcx, rdx
inc edx
add rcx, qword [r8]
movzx r8d, byte [rcx]
mov dword [rsp + 0x80], r8d
test r8b, r8b
jns 0x14013fd17
lea rdx, [rsp + 0x80]
call fcn.14019e0b0
mov r8d, dword [rsp + 0x80]
lea edx, [rbx + rax]
movzx eax, r8b
and al, 1
sar r8d, 1
mov dword [rsi + 0x78], r8d
mov byte [rsi + 0x7c], al
movsxd rax, edx
lea rbx, [rsi + 8]
mov qword [rsi + 0x20], rax
test byte [rbx], 2
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
je 0x14013fd68
lea rax, [0x140140bf0]
mov qword [rsi + 0x30], rax
add rsp, 0x48
pop r13
pop rsi
ret
mov rax, qword [r13]
lea rcx, [0x1401401a0]
lea rdx, [0x1401409a0]
cmp dword [rax + 0x60], 1
cmove rcx, rdx
mov qword [rsi + 0x30], rcx
add rsp, 0x48
pop r13
pop rsi
ret