Function at 0x14005b7c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r8, qword [rcx + 0x18]
mov rax, r8
inc rax
je 0x14005c0a6
mov r15, rdx
mov r13, qword [rcx + 8]
lea rsi, [r13 + 1]
mov rdx, rsi
shr rdx, 3
mov r9, rsi
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp r13, 8
cmovb r9, r13
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], r8
jbe 0x14005b83f
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x14005b871
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14005b8d4
mov qword [rsp + 0x68], r9
mov rbx, qword [rcx]
mov rcx, rsi
shr rcx, 4
xor eax, eax
test sil, 0xf
setne al
add rax, rcx
je 0x14005bb61
cmp rax, 1
jne 0x14005baf4
xor edx, edx
jmp 0x14005bb47
mov rax, r9
shr rax, 0x3d
jne 0x14005c0a6
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x14005b8d4
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
movabs rax, 0x7fffffffffffffe
cmp r14, rax
ja 0x14005c0a6
inc r14
mov rbp, r14
shl rbp, 5
lea rbx, [r14 + 0x10]
mov r12, rbp
add r12, rbx
jb 0x14005c0a6
movabs rax, 0x7ffffffffffffff1
cmp r12, rax
jae 0x14005c0a6
test r12, r12
je 0x14005b948
movzx eax, byte [0x140085280]
mov rcx, qword [0x1400851f8]
test rcx, rcx
jne 0x14005b92b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14005b93e
mov rcx, rax
mov qword [0x1400851f8], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14005b94d
mov rcx, r12
call fcn.14001fd10
ud2
mov edi, 0x10
mov qword [rsp + 0x38], rsi
lea rsi, [r14 - 1]
mov rax, r14
shr rax, 3
mov r12, r14
and r12, 0xfffffffffffffff8
sub r12, rax
cmp r14, 9
cmovb r12, rsi
add rdi, rbp
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
sub r12, qword [rsp + 0x40]
cmp r13, 0xffffffffffffffff
je 0x14005bab1
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
lea r14, [rbx - 0x20]
mov r12, qword [r15]
mov r15, qword [r15 + 8]
xor ebp, ebp
jmp 0x14005b9f9
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rsi
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, rbp
not rax
shl rax, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [rbx + rax]
movdqu xmm1, xmmword [rbx + rax + 0x10]
movdqu xmmword [rdi + rdx + 0x10], xmm1
movdqu xmmword [rdi + rdx], xmm0
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
je 0x14005ba7c
cmp byte [rbx + rbp], 0
js 0x14005b9e9
mov rax, rbp
shl rax, 5
mov rcx, r14
sub rcx, rax
mov r8, qword [rcx]
mov r9, qword [rcx + 0x10]
mov rcx, r12
mov rdx, r15
call fcn.140051370
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14005ba57
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14005ba40
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x14005b9b0
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14005b9b0
mov rax, qword [rsp + 0x28]
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
test r13, r13
mov rax, qword [rsp + 0x38]
je 0x14005c08b
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
jne 0x14005bada
jmp 0x14005c08b
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r12
mov rax, qword [rsp + 0x38]
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
je 0x14005c08b
sub rbx, rax
mov rcx, qword [0x1400851f8]
mov ecx, dword [0x1400851f8]
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
call fcn.14001fcd0
ud2