Function at 0x14021dcc0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r8, qword [rcx + 0x18]
mov rax, r8
inc rax
je 0x14021e4fc
mov rbp, rdx
mov rdi, qword [rcx + 8]
lea r15, [rdi + 1]
mov rdx, r15
shr rdx, 3
mov r9, r15
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp rdi, 8
cmovb r9, rdi
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], r8
jbe 0x14021dd3f
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x14021dd71
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14021ddce
mov qword [rsp + 0x58], r9
mov r14, qword [rcx]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x14021e083
cmp rax, 1
jne 0x14021e009
xor edx, edx
jmp 0x14021e067
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r9, rax
jae 0x14021e4fc
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x14021ddce
mov r8, r9
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x18
mov rax, r14
mul rcx
jo 0x14021e4fc
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea r12, [r14 + 0x10]
mov r13, rsi
add r13, r12
jb 0x14021e4fc
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
ja 0x14021e4fc
test r13, r13
je 0x14021de55
movzx eax, byte [0x1403f6a90]
mov rcx, qword [0x1403f6548]
test rcx, rcx
jne 0x14021de39
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14021de4b
mov rcx, rax
mov qword [0x1403f6548], rax
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x14021de5a
mov rcx, r13
call fcn.140150410
ud2
mov ebx, 0x10
mov qword [rsp + 0x20], r15
lea r15, [r14 - 1]
mov rax, r14
shr rax, 3
mov r13, r14
and r13, 0xfffffffffffffff8
sub r13, rax
cmp r14, 9
cmovb r13, r15
add rbx, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
sub r13, qword [rsp + 0x38]
cmp rdi, 0xffffffffffffffff
je 0x14021dfbb
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x28]
mov r14, qword [rax]
lea rsi, [r14 - 0x18]
mov r13, qword [rbp]
mov r12, qword [rbp + 8]
xor ebp, ebp
jmp 0x14021df18
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, r15
mov byte [rbx + rdx], al
mov byte [rcx + rbx + 0x10], al
lea rax, [rbp*8]
lea rax, [rax + rax*2]
mov rcx, r14
sub rcx, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x18]
movdqu xmmword [rbx + rax - 0x18], xmm0
mov rax, qword [rcx - 8]
mov qword [rdx - 8], rax
lea rax, [rbp + 1]
cmp rbp, rdi
mov rbp, rax
je 0x14021df9c
cmp byte [r14 + rbp], 0
js 0x14021df08
mov rax, rbp
neg rax
lea rax, [rax + rax*2]
mov r8, qword [rsi + rax*8]
mov r9, qword [rsi + rax*8 + 8]
mov rcx, r13
mov rdx, r12
call fcn.14021db30
mov rcx, rax
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14021df77
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14021df60
tzcnt edx, edx
add rdx, rcx
and rdx, r15
cmp byte [rbx + rdx], 0
js 0x14021dec0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14021dec0
mov rax, qword [rsp + 0x28]
mov qword [rax], rbx
mov qword [rax + 8], r15
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
test rdi, rdi
jne 0x14021dfce
jmp 0x14021e0b0
mov rax, qword [rsp + 0x28]
mov r14, qword [rax]
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r13
mov ecx, 0x18
mov rax, qword [rsp + 0x20]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rdi, rax
cmp rdi, 0xffffffffffffffef
je 0x14021e0b0
sub r14, rax
mov rcx, qword [0x1403f6548]
xor edx, edx
mov r8, r14
call fcn.140302ad4
jmp 0x14021e0b0
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14030c400]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r8]
por xmm1, xmm0
movdqa xmmword [r14 + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14021e030
test al, 1
je 0x14021e083
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rdx]
por xmm0, xmmword [0x14030c400]
movdqa xmmword [r14 + rdx], xmm0
cmp r15, 0x10
jae 0x14021e0cf
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, r15
call sub.msvcrt.dll_memmove
test r15, r15
jne 0x14021e0da
mov rcx, qword [rsp + 0x58]
sub rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r15], xmm0
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
movabs r15, 0x736f6d6570736575
xor r15, rax
movabs rsi, 0x646f72616e646f6d
xor rsi, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x40], rax
xor r11d, r11d
mov qword [rsp + 0x60], rdi
jmp 0x14021e154
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, rdi
mov byte [r14 + r11], al
mov byte [rcx + r14 + 0x10], al
lea rax, [r11 + 1]
cmp r11, rdi
mov r11, rax
je 0x14021e09d
cmp byte [r14 + r11], 0x80
jne 0x14021e144
lea rax, [r11*8]
lea rax, [rax + rax*2]
neg rax
add rax, r14
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x50], rax
mov rax, r11
neg rax
lea rax, [rax + rax*2]
lea rax, [r14 + rax*8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r11
nop
mov rax, qword [rsp + 0x30]
mov r8, qword [rax - 0x18]
mov r10, qword [rax - 0x10]
mov rax, r10
and rax, 0xfffffffffffffff8
je 0x14021e230
mov r12, qword [rsp + 0x48]
mov rbp, rsi
mov r13, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, r15
nop dword [rax]
add rdx, rbp
rol rbp, 0xd
mov rcx, qword [r8 + r9 + 0x10]
xor rbp, rdx
rol rdx, 0x20
xor r13, rcx
add r12, r13
rol r13, 0x10
xor r13, r12
add rdx, r13
rol r13, 0x15
add r12, rbp
rol rbp, 0x11
xor rbp, r12
rol r12, 0x20
xor r13, rdx
xor rdx, rcx
add r9, 8
cmp r9, rax
jb 0x14021e1c0
mov ebx, r10d
and ebx, 7
cmp ebx, 3
jbe 0x14021e24e
mov r11d, dword [r8 + r9 + 0x10]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jb 0x14021e25f
jmp 0x14021e28b
mov r13, qword [rsp + 0x40]
mov rbp, rsi
mov r12, qword [rsp + 0x48]
mov rdx, r15
xor r9d, r9d
mov ebx, r10d
and ebx, 7
cmp ebx, 3
ja 0x14021e20f
xor r11d, r11d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jae 0x14021e28b
lea rcx, [rax + r9]
mov rdi, rsi
mov rsi, r15
movzx r15d, word [r8 + rcx + 0x10]
lea ecx, [rax*8]
shl r15, cl
or r11, r15
mov r15, rsi
mov rsi, rdi
mov rdi, qword [rsp + 0x60]
or rax, 2
cmp rax, rbx
jae 0x14021e2b0
add r9, rax
movzx r8d, byte [r8 + r9 + 0x10]
shl eax, 3
mov ecx, eax
shl r8, cl
or r11, r8
inc r10
jmp 0x14021e2b8
inc r10
test rbx, rbx
je 0x14021e30a
lea ecx, [rbx*8]
mov eax, 0xff
shl rax, cl
or rax, r11
cmp rbx, 7
jne 0x14021e310
add rdx, rbp
rol rbp, 0xd
xor r13, rax
xor rbp, rdx
rol rdx, 0x20
add r12, r13
rol r13, 0x10
xor r13, r12
add rdx, r13
rol r13, 0x15
xor r13, rdx
add r12, rbp
rol rbp, 0x11
xor rbp, r12
rol r12, 0x20
xor rdx, rax
xor eax, eax
jmp 0x14021e310
mov eax, 0xff
nop
mov r11, qword [rsp + 0x20]
shl r10, 0x38
add rdx, rbp
rol rbp, 0xd
or r10, rax
xor rbp, rdx
rol rdx, 0x20
xor r13, r10
add r12, r13
rol r13, 0x10
xor r13, r12
add rdx, r13
rol r13, 0x15
add r12, rbp
rol rbp, 0x11
xor r13, rdx
xor rbp, r12
rol r12, 0x20
xor rdx, r10
add rdx, rbp
rol rbp, 0xd
xor rbp, rdx
rol rdx, 0x20
xor r12, 0xff
add r12, r13
rol r13, 0x10
xor r13, r12
add rdx, r13
rol r13, 0x15
add r12, rbp
rol rbp, 0x11
xor rbp, r12
rol r12, 0x20
xor r13, rdx
add rdx, rbp
rol rbp, 0xd
xor rbp, rdx
rol rdx, 0x20
add r12, r13
rol r13, 0x10
xor r13, r12
add rdx, r13
rol r13, 0x15
add r12, rbp
rol rbp, 0x11
xor rbp, r12
rol r12, 0x20
xor r13, rdx
add rdx, rbp
rol rbp, 0xd
add r12, r13
rol r13, 0x10
xor r13, r12
rol r13, 0x15
xor rbp, rdx
add r12, rbp
rol rbp, 0x11
mov rax, r12
rol rax, 0x20
xor rax, rbp
xor rax, r13
xor rax, r12
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x14021e428
mov r9d, 0x10
mov r8, rcx
nop dword [rax + rax]
add r8, r9
and r8, rdi
movdqu xmm0, xmmword [r14 + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14021e410
tzcnt edx, edx
add rdx, r8
and rdx, rdi
cmp byte [r14 + rdx], 0
js 0x14021e446
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rdi
cmp r9, 0x10
jb 0x14021e130
lea rcx, [rdx*8]
lea rcx, [rcx + rcx*2]
neg rcx
add rcx, r14
add rcx, 0xffffffffffffffe8
movzx r8d, byte [r14 + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [r14 + rdx], al
mov byte [r9 + r14 + 0x10], al
cmp r8b, 0xff
je 0x14021e4d0
mov r8, qword [rsp + 0x50]
mov rax, qword [r8]
mov rdx, qword [rcx]
mov qword [r8], rdx
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [r8 + 0x10], rdx
mov qword [rcx + 0x10], rax
jmp 0x14021e190
lea rax, [r11 - 0x10]
and rax, rdi
mov byte [r14 + r11], 0xff
mov byte [rax + r14 + 0x10], 0xff
mov rdx, qword [rsp + 0x50]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rcx], xmm0
jmp 0x14021e144
call fcn.1401503d0
ud2