Function at 0x14000be20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r12d, 8
mov r8d, 0x208
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400170d0]
mov r8d, 0x104
mov rdx, rbx
mov r14, rax
call qword [0x140017178]
movzx ecx, word [rbx]
mov word [r14], cx
lea rcx, [rbp + 0x88]
mov dword [rbp + 0x88], 0x6e0049
call fcn.1400027f0
movzx ecx, word [rax]
cmp word [rbx], cx
je 0x14000bef0
mov rsi, r14
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx + 2]
lea rbx, [rbx + 2]
lea rcx, [rbp + 0x88]
mov word [rsi + rbx], ax
call fcn.1400027f0
movzx ecx, word [rax]
cmp word [rbx], cx
jne 0x14000bed0
mov edx, 0x5c
mov rcx, r14
call fcn.14000ee70
movdqa xmm0, xmmword [0x140015760]
lea rcx, [rsp + 0x50]
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x630c066c
lea r14, [rax + 2]
call fcn.1400029f0
xor esi, esi
test rax, rax
je 0x14000bf46
lea rcx, [rbp + 0x88]
mov word [rbp + 0x88], 0x6e6c
call fcn.1400018c0
movsx rcx, byte [rax]
mov word [r14 + rcx*2], si
mov edx, 9
mov ecx, 0x13ccced4
call fcn.140009c60
mov edx, 0xe
mov dword [rsp + 0x2c], eax
mov ecx, 0xeba16ed9
call fcn.140009c60
mov edx, 0x14
mov dword [rsp + 0x30], eax
mov ecx, 0x3723c6ef
call fcn.140009c60
mov edx, 5
mov dword [rsp + 0x34], eax
mov ecx, 0xa9fea754
call fcn.140009c60
mov edx, 0x12
mov dword [rsp + 0x38], eax
mov ecx, 0x49fd4439
call fcn.140009c60
mov edx, 0xd
mov dword [rsp + 0x3c], eax
mov ecx, 0xad119360
call fcn.140009c60
mov edx, 5
mov dword [rsp + 0x40], eax
mov ecx, 0xf07b3563
call fcn.140009c60
mov edx, 4
mov dword [rsp + 0x44], eax
mov ecx, 0xbe0cd195
call fcn.140009c60
mov r15, rsi
mov dword [rsp + 0x48], eax
cmp word [r14], si
je 0x14000bffa
nop word [rax + rax]
inc r15
cmp word [r14 + r15*2], si
jne 0x14000bff0
lea r13, [r15 + r15]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 2]
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x78], rax
mov rbx, rax
test r15, r15
je 0x14000c0f9
mov rdx, rax
sub r14, rax
mov r8, r15
nop
movzx ecx, word [r14 + rdx]
mov word [rdx], cx
lea rdx, [rdx + 2]
sub r8, 1
jne 0x14000c030
mov word [rax + r13], si
mov r12, rsi
mov esi, 0x410
mov dword [rbp + 0x88], 0x6e0008
nop dword [rax]
movzx r14d, word [rbx + r12*2]
lea rcx, [rbp + 0x88]
call fcn.1400027f0
cmp r14w, word [rax]
jb 0x14000c0c5
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x6e0013
call fcn.1400027f0
cmp r14w, word [rax]
ja 0x14000c0c5
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x28], 0x6e0028
mov dword [rsp + 0x24], 0x6e0008
call fcn.1400027f0
lea rcx, [rsp + 0x28]
movzx ebx, word [rax]
call fcn.1400027f0
movzx ecx, word [rax]
sub cx, bx
mov rbx, qword [rsp + 0x78]
add r14w, cx
movzx eax, r14w
lea ecx, [r14 + 0x20]
sub ax, si
cmp ax, 0x1f
cmova cx, r14w
mov word [rbx + r12*2], cx
inc r12
cmp r12, r15
jb 0x14000c060
mov rdi, qword [rbp + 0x80]
xor esi, esi
lea r12d, [rsi + 8]
jmp 0x14000c0fe
mov word [rax + r13], si
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14000e7b0
mov r14, rsi
lea r15, [0x140010a00]
inc r14
cmp byte [r14 + r15], 0
jne 0x14000c114
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 + 1]
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x68], rax
mov r12, rax
test r14, r14
je 0x14000c161
mov rdx, rax
sub r15, rax
mov r8, r14
nop word [rax + rax]
movzx ecx, byte [r15 + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14000c150
lea rdx, [rsp + 0x68]
mov byte [rax + r14], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], r14
call fcn.140001d30
lea rcx, [rsp + 0x68]
mov rdx, qword [rax]
call fcn.14000e7b0
mov rbx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r12 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test r12, r12
je 0x14000c201
mov r9, qword [rbp - 0x80]
mov rdx, rax
sub r9, rax
mov r8, r12
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14000c1f0
mov r15, qword [rsp + 0x70]
mov byte [r12 + rax], 0
lea r14, [r15 + r12]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x80], rax
mov rbx, rax
test r12, r12
je 0x14000c261
mov r9, r13
mov rdx, rax
sub r9, rax
mov r8, r12
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14000c250
test r15, r15
je 0x14000c290
mov rcx, qword [rsp + 0x68]
sub r12, rcx
lea rdx, [r12 + rax]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
sub r15, 1
jne 0x14000c280
mov byte [r14 + rbx], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x2c]
mov rcx, rsi
mov dword [rbp - 0x20], eax
mov eax, dword [rsp + 0x30]
mov dword [rbp - 0x1c], eax
mov eax, dword [rsp + 0x34]
mov dword [rbp - 0x18], eax
mov eax, dword [rsp + 0x38]
mov dword [rbp - 0x14], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbp - 0x10], eax
mov eax, dword [rsp + 0x40]
mov dword [rbp - 0xc], eax
mov eax, dword [rsp + 0x44]
mov dword [rbp - 8], eax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 4], eax
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rcx
test r14, r14
je 0x14000c35c
cmp r14, 0x40
jb 0x14000c32f
mov r15, r14
shr r15, 6
imul rax, r15, 0xffffffffffffffc0
add r14, rax
nop word [rax + rax]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400078f0
add qword [rbp - 0x70], 0x40
add rbx, 0x40
sub r15, 1
jne 0x14000c310
mov rcx, qword [rbp - 0x68]
test r14, r14
je 0x14000c35c
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rbp + rcx - 0x60], al
mov rcx, qword [rbp - 0x68]
inc rcx
mov qword [rbp - 0x68], rcx
sub r14, 1
jne 0x14000c340
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140007350
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.1400070a0
mov r15, rsi
nop word [rax + rax]
mov rax, qword [rdi + 0x10]
movzx r13d, byte [rbp + r15]
cmp qword [rdi + 8], rax
jb 0x14000c403
mov r12d, 1
test rax, rax
je 0x14000c39f
lea r12, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp qword [rdi + 8], 0
mov rcx, rsi
mov r14, rax
jbe 0x14000c3e5
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi]
movzx r8d, byte [rcx + rdx]
mov byte [rcx + rax], r8b
inc rcx
cmp rcx, qword [rdi + 8]
jb 0x14000c3d0
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], r14
mov qword [rdi + 0x10], r12
mov rcx, qword [rdi + 8]
inc r15
mov rax, qword [rdi]
mov byte [rcx + rax], r13b
inc qword [rdi + 8]
cmp r15, 0x20
jb 0x14000c380
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14, qword [rbp + 0x78]
mov edx, 8
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test r14, r14
je 0x14000c495
mov r10, qword [rbp + 0x70]
movabs r11, 0x8080808080808081
sub r10, rax
nop word [rax + rax]
mov rcx, rsi
lea r9, [rsi + rbx]
and ecx, 0x1f
mov rax, r11
movzx r8d, byte [rcx + rdi]
add r8, rsi
inc rsi
mul r8
shr rdx, 7
imul rax, rdx, 0xff
sub r8, rax
xor r8b, byte [r10 + r9]
mov byte [r9], r8b
cmp rsi, r14
jb 0x14000c460
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x80]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x80]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret