Function at 0x14001a840
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
xor ebx, ebx
mov qword [r8 + 0x10], rbx
cmp qword [r8 + 0x18], 0x10
jb 0x14001a88f
mov rax, qword [r8]
jmp 0x14001a892
mov rax, r8
mov byte [rax], bl
lea rcx, [rbp - 0x70]
call fcn.14001af34
nop
cmp qword [rdi + 0x18], 0x10
jb 0x14001a8a8
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.14001b054
cmp dword [rbp - 0x20], ebx
je 0x14001a8be
jmp 0x14001acc8
movups xmm0, xmmword [str.HC_V7]
movdqu xmmword [rbp + 8], xmm0
mov ecx, 0xe
mov al, byte [rbp + rcx + 7]
xor byte [rbp + rcx + 8], al
dec rcx
test rcx, rcx
jg 0x14001a8cf
xor byte [rbp + 8], 8
mov edi, dword [rbp - 0x70]
shl rdi, 5
mov rax, qword [rbp - 0x68]
movabs r12, 0xffffffffffff
and rax, r12
add rdi, rax
lea r8, [rbp + 8]
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.14001b16c
mov r13d, 0x1000
cmp qword [rax], rdi
je 0x14001a96c
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x70]
call fcn.14001b1f8
movzx ecx, word [rax + 0xe]
shr cx, 0xa
test cl, 1
je 0x14001a96c
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x70]
call fcn.14001b1f8
mov rdx, rax
test word [rax + 0xe], r13w
jne 0x14001a952
mov rdx, qword [rax + 8]
and rdx, r12
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.140002348
mov eax, dword [0x14003b4f8]
mov dword [rbp - 8], eax
movzx eax, word [0x14003b4fc]
mov word [rbp - 4], ax
mov esi, 4
mov ecx, esi
mov al, byte [rbp + rcx - 9]
xor byte [rbp + rcx - 8], al
dec rcx
test rcx, rcx
jg 0x14001a987
xor byte [rbp - 8], 0xf5
mov edi, dword [rbp - 0x70]
shl rdi, 5
mov rax, qword [rbp - 0x68]
and rax, r12
add rdi, rax
lea r8, [rbp - 8]
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.14001b16c
cmp qword [rax], rdi
je 0x14001acc3
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.14001b1f8
cmp word [rax + 0xe], si
jne 0x14001acc3
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.14001b1f8
mov rsi, rax
mov r14d, dword [rax]
mov r12d, ebx
test r14, r14
je 0x14001acc3
mov r13, rbx
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], bl
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
mov eax, dword [str.KC]
mov dword [rbp - 0x10], eax
mov al, byte [0x14003b504]
mov byte [rbp - 0xc], al
mov ecx, 3
mov al, byte [rbp + rcx - 0x11]
xor byte [rbp + rcx - 0x10], al
dec rcx
test rcx, rcx
jg 0x14001aa39
xor byte [rbp - 0x10], 0x44
mov rcx, qword [rsi + 8]
movabs rdx, 0xffffffffffff
and rcx, rdx
add rcx, r13
mov edi, dword [rcx]
shl rdi, 5
mov rax, qword [rcx + 8]
and rax, rdx
add rdi, rax
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x28]
call fcn.14001b16c
cmp qword [rax], rdi
je 0x14001ab11
mov edi, r12d
shl rdi, 4
mov rcx, qword [rsi + 8]
movabs rax, 0xffffffffffff
and rcx, rax
add rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.14001b1f8
movzx ecx, word [rax + 0xe]
shr cx, 0xa
test cl, 1
je 0x14001ab11
mov rcx, qword [rsi + 8]
movabs rax, 0xffffffffffff
and rcx, rax
add rcx, rdi
lea rdx, [rbp - 0x10]
call fcn.14001b1f8
mov rdx, rax
mov eax, 0x1000
test word [rdx + 0xe], ax
jne 0x14001aaf5
mov rdx, qword [rdx + 8]
movabs rax, 0xffffffffffff
and rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.140002348
movzx eax, word [0x14003b508]
mov word [rsp + 0x20], ax
mov al, byte [0x14003b50a]
mov byte [rsp + 0x22], al
lea rax, [rsp + 0x20]
mov al, byte [rax]
xor byte [rsp + 0x21], al
xor byte [rsp + 0x20], 0x44
mov rcx, qword [rsi + 8]
movabs rax, 0xffffffffffff
and rcx, rax
add rcx, r13
mov rdi, qword [rcx + 8]
and rdi, rax
mov eax, dword [rcx]
shl rax, 5
add rdi, rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.14001b16c
cmp qword [rax], rdi
je 0x14001abfe
mov edi, r12d
shl rdi, 4
mov rcx, qword [rsi + 8]
movabs rax, 0xffffffffffff
and rcx, rax
add rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.14001b1f8
movzx ecx, word [rax + 0xe]
shr cx, 0xa
test cl, 1
je 0x14001abfe
mov rcx, qword [rsi + 8]
movabs rax, 0xffffffffffff
and rcx, rax
add rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.14001b1f8
mov rdx, rax
mov eax, 0x1000
test word [rdx + 0xe], ax
jne 0x14001abe2
mov rdx, qword [rdx + 8]
movabs rax, 0xffffffffffff
and rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.140002348
mov eax, dword [0x14003b50c]
mov dword [rbp], eax
mov al, byte [0x14003b510]
mov byte [rbp + 4], al
mov ecx, 3
mov al, byte [rbp + rcx - 1]
xor byte [rbp + rcx], al
dec rcx
test rcx, rcx
jg 0x14001ac15
xor byte [rbp], 0xed
cmp qword [rsp + 0x50], rbx
jbe 0x14001ac7b
cmp qword [rsp + 0x78], rbx
jbe 0x14001ac7b
mov rcx, qword [rsi + 8]
movabs rdx, 0xffffffffffff
and rcx, rdx
add rcx, r13
mov edi, dword [rcx]
shl rdi, 5
mov rax, qword [rcx + 8]
and rax, rdx
add rdi, rax
lea r8, [rbp]
lea rdx, [rbp + 8]
call fcn.14001b16c
cmp qword [rax], rdi
je 0x14001ac7b
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1400064cc
nop
cmp qword [rsp + 0x58], 0x10
jb 0x14001ac8d
mov rcx, qword [rsp + 0x40]
call fcn.1400233e4
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
cmp qword [rbp - 0x80], 0x10
jb 0x14001acb0
mov rcx, qword [rsp + 0x68]
call fcn.1400233e4
inc r12d
add r13, 0x10
movsxd rax, r12d
cmp rax, r14
jb 0x14001a9ff
mov ebx, 1
lea rcx, [rbp - 0x70]
call fcn.14001afd0
mov eax, ebx
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140022ee0
mov rbx, qword [rsp + 0x178]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret