Function at 0x1800c0f70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rsp + 0x80]
mov r13d, r9d
movsxd rdi, r8d
mov rsi, rdx
mov r15, rcx
test rdx, rdx
je 0x1800c1060
test r13b, 8
jne 0x1800c1060
or dword [rbp + 8], 1
lea eax, [rdi - 1]
mov r13, qword [rcx + 0x18]
mov r9d, select
movsxd r8, eax
test eax, eax
js 0x1800c0fe8
nop dword [rax + rax]
movzx edx, byte [r8 + rsi]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x1800c0fd0
xor edx, edx
mov eax, r9d
div dword [r13 + 0x14]
mov rax, qword [r13 + 0x20]
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x1800c1021
nop
lea rcx, [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.1801624a0
test eax, eax
jne 0x1800c1019
cmp byte [rdi + rbx + 0x30], al
je 0x1800c1031
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c1000
mov r13d, dword [rsp + 0x78]
xor r12d, r12d
xor r14d, r14d
jmp 0x1800c10d5
test rbx, rbx
je 0x1800c1021
mov rdx, rbx
mov rcx, r13
call fcn.1800b6fc0
mov r14d, dword [rbx + 0x18]
lea eax, [rdi + 1]
mov r13d, dword [rsp + 0x78]
sub r14d, edi
movsxd r12, eax
add r12, 0x30
add r12, rbx
sub r14d, 0x31
jmp 0x1800c10d5
mov rcx, qword [rcx + 0x18]
mov r8d, edi
call fcn.18010e550
mov rcx, qword [r15 + 0x18]
mov dword [r15 + 0x34], eax
mov r14, qword [rcx + 0x18]
test r14, r14
je 0x1800c10cb
mov rdi, 0xffffffffffffffff
lea rsi, [r14 + 0x30]
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1800c1090
mov rdx, r14
call fcn.1800b6fc0
lea r12, [r14 + 0x30]
mov r14d, dword [r14 + 0x18]
sub r14d, ebx
lea eax, [rbx + 1]
movsxd rcx, eax
sub r14d, 0x31
add r12, rcx
test rsi, rsi
je 0x1800c10d3
nop
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1800c10c0
jmp 0x1800c10d5
xor esi, esi
xor r12d, r12d
xor r14d, r14d
xor edi, edi
test r12, r12
je 0x1800c1184
mov dword [rbp + 0x60], 0
cmp edi, dword [rbp + 0x64]
jbe 0x1800c10fe
lea rcx, [r15 + 0x34]
mov r8d, edi
lea rdx, [rbp + 0x58]
call fcn.18010b640
test eax, eax
jne 0x1800c1114
movsxd rcx, dword [rbp + 0x60]
mov rdx, rsi
add rcx, qword [rbp + 0x58]
mov r8d, edi
call fcn.1801625a0
add dword [rbp + 0x60], edi
cmp dword [r15 + 0x34], 0
jne 0x1800c1261
call fcn.18014a870
test eax, eax
jne 0x1800c123a
lea ecx, [rax + 0x10]
call fcn.18011da50
mov rbx, rax
test rax, rax
je 0x1800c123a
xorps xmm0, xmm0
lea rdx, [rbp + 0x68]
movups xmmword [rax], xmm0
mov qword [rax], r12
mov dword [rax + 0xc], r14d
mov dword [rax + 8], r14d
mov qword [rbp + 0x10], rax
mov rcx, qword [rax]
call fcn.18010e1e0
movzx edx, al
mov dword [rbp + 0x20], edx
mov r9d, dword [rbx + 8]
mov dword [rbp + 0x3c], r9d
test r13b, 2
je 0x1800c119e
or dword [rbp + 8], 2
mov rdx, rbp
mov rcx, r15
call fcn.1800c2070
test byte [rbp + 8], 2
je 0x1800c1244
lea rax, [0x1800c1d70]
mov qword [rbp + 0x28], rax
jmp 0x1800c1261
cmp dword [r15 + 0x34], 0
jne 0x1800c1184
mov rax, qword [r15]
mov ebx, edx
mov r8, qword [rbp + 0x10]
cmp dword [rax + 0x5c], 1
jne 0x1800c1200
cmp r9d, dword [r8 + 0xc]
cmovge r9d, dword [r8 + 0xc]
mov byte [rbp + 0x74], 0
mov dword [rbp + 0x70], 1
cmp edx, r9d
jge 0x1800c1232
mov rax, qword [r8]
movsxd rcx, edx
cmp byte [rcx + rax], 0
jne 0x1800c1232
inc edx
mov byte [rbp + 0x74], 1
cmp edx, r9d
jge 0x1800c11f4
mov rax, qword [r8]
cmp byte [rdx + rax], 0
jne 0x1800c11f4
inc edx
mov dword [rbp + 0x20], edx
jmp 0x1800c1184
mov dword [rbp + 0x70], 0
mov dword [rbp + 0x20], edx
jmp 0x1800c1184
mov rcx, rdx
inc edx
add rcx, qword [r8]
movzx eax, byte [rcx]
mov dword [rsp + 0x68], eax
test al, al
jns 0x1800c1224
lea rdx, [rsp + 0x68]
call fcn.18010e3d0
lea edx, [rbx + rax]
mov eax, dword [rsp + 0x68]
movzx ecx, al
and cl, 1
sar eax, 1
mov dword [rbp + 0x70], eax
mov byte [rbp + 0x74], cl
mov dword [rbp + 0x20], edx
jmp 0x1800c1184
mov dword [r15 + 0x34], 7
jmp 0x1800c1261
mov rax, qword [r15]
lea rcx, [0x1800c1600]
lea rdx, [0x1800c1b40]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbp + 0x28], rcx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret