Function at 0x1400cf9b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
xor eax, eax
mov rdi, rdx
mov dword [rsp + 0x50], eax
mov rbx, rcx
mov r14d, eax
test rcx, rcx
jne 0x1400cf9d9
or eax, 0xffffffff
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
cmp rdx, 8
jb 0x1400cf9cd
cmp rdx, 0x4000
ja 0x1400cf9cd
mov qword [rsp + 0x68], r12
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x28], r13
mov r13, qword [rcx + 8]
test r13, r13
jne 0x1400cfa07
or eax, 0xffffffff
jmp 0x1400cfc90
mov qword [rsp + 0x58], rbp
cmp r12, 0x80
mov qword [rsp + 0x60], rsi
mov ebp, 1
mov rsi, rdx
cmove ebp, eax
shl rsi, 5
mov rcx, rsi
call qword [fcn.14022ac1e]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400cfa45
mov qword [rbx + 8], r13
or eax, 0xffffffff
jmp 0x1400cfc86
mov r8, rsi
mov qword [rsp + 0x20], r15
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0x10], rdi
movsxd r15, ebp
test r12, r12
je 0x1400cfc75
lea rdi, [r13 + 8]
mov rbp, r12
nop
cmp dword [rdi + 0xc], 0
je 0x1400cfb3d
test r15, r15
je 0x1400cfa84
mov esi, dword [rdi + 0x10]
jmp 0x1400cfaa6
cmp qword [rbx + 0x10], 0x80
mov r8d, dword [rbx + 0x30]
mov edx, dword [rdi + 8]
mov rcx, qword [rdi]
jne 0x1400cfa9f
call fcn.1400cf560
jmp 0x1400cfaa4
call fcn.1400cf470
mov esi, eax
xor edx, edx
mov eax, esi
div qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov r14d, edx
shl r14, 5
cmp dword [r14 + rax + 0x14], 0
jne 0x1400cfaf0
movups xmm0, xmmword [rdi - 8]
movups xmmword [r14 + rax], xmm0
movups xmm1, xmmword [rdi + 8]
movups xmmword [r14 + rax + 0x10], xmm1
mov rax, qword [rbx + 8]
mov qword [r14 + rax], 0
mov rax, qword [rbx + 8]
mov dword [r14 + rax + 0x18], esi
mov r14d, dword [rsp + 0x50]
jmp 0x1400cfb3d
mov ecx, 0x20
call qword [fcn.14022ac1e]
mov rdx, rax
test rax, rax
je 0x1400cfb34
mov rax, qword [rdi]
mov qword [rdx + 8], rax
mov eax, dword [rdi + 8]
mov dword [rdx + 0x10], eax
mov dword [rdx + 0x18], esi
mov rax, qword [rbx + 8]
mov rcx, qword [r14 + rax]
mov qword [rdx], rcx
mov dword [rdx + 0x14], 1
mov rax, qword [rbx + 8]
mov qword [r14 + rax], rdx
mov r14d, dword [rsp + 0x50]
jmp 0x1400cfb3d
or r14d, 0xffffffff
mov dword [rsp + 0x50], r14d
add rdi, 0x20
sub rbp, 1
jne 0x1400cfa70
test r12, r12
je 0x1400cfc75
mov rsi, r13
nop word [rax + rax]
mov r10, qword [rsi]
test r10, r10
je 0x1400cfc67
nop dword [rax]
mov rdi, qword [r10]
test r15, r15
je 0x1400cfb7e
mov ecx, dword [r10 + 0x18]
jmp 0x1400cfbf0
cmp qword [rbx + 0x10], 0x80
jne 0x1400cfb9d
mov r8d, dword [rbx + 0x30]
mov edx, dword [r10 + 0x10]
mov rcx, qword [r10 + 8]
call fcn.1400cf560
mov ecx, eax
jmp 0x1400cfbf0
movsxd rcx, dword [r10 + 0x10]
mov r8, qword [r10 + 8]
test ecx, ecx
jle 0x1400cfbee
test r8, r8
je 0x1400cfbee
mov eax, dword [rbx + 0x30]
xor edx, edx
mov r9, rcx
test ecx, ecx
jle 0x1400cfbdc
nop word [rax + rax]
movzx ecx, byte [rdx + r8]
inc rdx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp rdx, r9
jl 0x1400cfbc0
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
jmp 0x1400cfbf0
xor ecx, ecx
xor edx, edx
mov eax, ecx
div qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov r8d, edx
shl r8, 5
add rax, r8
cmp dword [rax + 0x14], 0
jne 0x1400cfc49
movups xmm0, xmmword [r10]
movups xmmword [rax], xmm0
movups xmm1, xmmword [r10 + 0x10]
movups xmmword [rax + 0x10], xmm1
mov rax, qword [rbx + 8]
mov qword [r8 + rax], 0
mov rax, qword [rbx + 8]
mov dword [r8 + rax + 0x14], 1
mov rax, qword [rbx + 8]
mov dword [r8 + rax + 0x18], ecx
mov rcx, r10
call qword [case.0x1400ef54e.0]
jmp 0x1400cfc5b
mov rax, qword [rax]
mov qword [r10], rax
mov dword [r10 + 0x18], ecx
mov rax, qword [rbx + 8]
mov qword [r8 + rax], r10
mov r10, rdi
test rdi, rdi
jne 0x1400cfb70
add rsi, 0x20
sub r12, 1
jne 0x1400cfb60
mov rcx, r13
call qword [case.0x1400ef54e.0]
mov r15, qword [rsp + 0x20]
mov eax, r14d
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret