Function at 0x14000c470
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 edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400255e0]
mov r8d, 0x104
mov rdx, rbx
mov rsi, rax
call qword [0x140025650]
movzx ecx, word [rbx]
mov word [rsi], cx
lea rcx, [rbp + 0x88]
mov dword [rbp + 0x88], 0x540056
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rbx], cx
je 0x14000c541
mov r14, rsi
sub r14, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + 2]
lea rbx, [rbx + 2]
lea rcx, [rbp + 0x88]
mov word [r14 + rbx], ax
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rbx], cx
jne 0x14000c520
xor r14d, r14d
mov dword [rbp + 0x88], 0x540056
lea rcx, [rbp + 0x88]
mov r12d, r14d
mov ebx, r14d
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rsi], cx
je 0x14000c588
nop dword [rax + rax]
lea rcx, [rbp + 0x88]
inc rbx
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rsi + rbx*2], cx
jne 0x14000c570
lea rax, [rbx - 1]
test rax, rax
je 0x14000c5a3
cmp word [rsi + rax*2], 0x5c
je 0x14000c5a0
sub rax, 1
jne 0x14000c591
jmp 0x14000c5a3
mov r12, rax
lea rcx, [rbp + 0x88]
mov dword [rbp + 0x88], 0x540056
mov rbx, r14
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rsi], cx
je 0x14000c5e8
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp + 0x88]
inc rbx
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rsi + rbx*2], cx
jne 0x14000c5d0
lea rbx, [rbx*2 - 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [r12 + r12]
mov dword [rbp + 0x88], 0x540056
mov r13, rax
mov qword [rsp + 0x30], rax
sub r13, rcx
lea r15, [rcx + rsi]
sub r13, rsi
nop word [rax + rax]
lea rcx, [rbp + 0x88]
mov rbx, r14
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rsi], cx
je 0x14000c668
nop word [rax + rax]
lea rcx, [rbp + 0x88]
inc rbx
call fcn.1400031f0
movzx ecx, word [rax]
cmp word [rsi + rbx*2], cx
jne 0x14000c650
lea rax, [rbx - 1]
cmp r12, rax
ja 0x14000c683
movzx eax, word [r15]
inc r12
mov word [r15 + r13], ax
add r15, 2
jmp 0x14000c630
movdqa xmm0, xmmword [0x14000ece0]
lea rcx, [rsp + 0x58]
mov rsi, qword [rsp + 0x30]
add rsi, 2
mov dword [rsp + 0x68], 0x4c1e3608
movdqu xmmword [rsp + 0x58], xmm0
call fcn.1400032c0
test rax, rax
je 0x14000c6cf
lea rcx, [rbp + 0x88]
mov word [rbp + 0x88], 0x5448
call fcn.140001620
movsx rcx, byte [rax]
mov word [rsi + rcx*2], r14w
mov edx, 0x16
mov ecx, 0x99da8279
call fcn.1400092b0
mov edx, 0x14
mov dword [rsp + 0x38], eax
mov ecx, 0xe85bb67a
call fcn.1400092b0
mov edx, 0x13
mov dword [rsp + 0x3c], eax
mov ecx, 0x9b91e377
call fcn.1400092b0
mov edx, 0x17
mov dword [rsp + 0x40], eax
mov ecx, 0x9d52a7fa
call fcn.1400092b0
mov edx, 0xe
mov dword [rsp + 0x44], eax
mov ecx, 0x949fd443
call fcn.1400092b0
mov edx, 0x18
mov dword [rsp + 0x48], eax
mov ecx, 0x8c9b0568
call fcn.1400092b0
mov edx, 0x14
mov dword [rsp + 0x4c], eax
mov ecx, 0x9ab1f83d
call fcn.1400092b0
mov edx, 0x1a
mov dword [rsp + 0x50], eax
mov ecx, 0x656f8334
call fcn.1400092b0
mov r15, r14
mov dword [rsp + 0x54], eax
cmp word [rsi], r14w
je 0x14000c77a
inc r15
cmp word [rsi + r15*2], r14w
jne 0x14000c770
lea r13, [r15 + r15]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 2]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
mov rbx, rax
test r15, r15
je 0x14000c871
mov rdx, rax
sub rsi, rax
mov r8, r15
movzx ecx, word [rsi + rdx]
mov word [rdx], cx
lea rdx, [rdx + 2]
sub r8, 1
jne 0x14000c7b0
mov word [rax + r13], r14w
mov r12, r14
mov r14d, 0x410
mov dword [rbp + 0x88], 0x540017
nop dword [rax]
movzx esi, word [rbx + r12*2]
lea rcx, [rbp + 0x88]
call fcn.1400031f0
cmp si, word [rax]
jb 0x14000c842
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x54000c
call fcn.1400031f0
cmp si, word [rax]
ja 0x14000c842
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x28], 0x540037
mov dword [rsp + 0x24], 0x540017
call fcn.1400031f0
lea rcx, [rsp + 0x28]
movzx ebx, word [rax]
call fcn.1400031f0
movzx ecx, word [rax]
sub cx, bx
mov rbx, qword [rsp + 0x30]
add si, cx
movzx eax, si
lea ecx, [rsi + 0x20]
sub ax, r14w
cmp ax, 0x1f
cmova cx, si
mov word [rbx + r12*2], cx
inc r12
cmp r12, r15
jb 0x14000c7e0
mov rdi, qword [rbp + 0x80]
xor r14d, r14d
jmp 0x14000c876
mov word [rax + r13], r14w
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14000a500
mov rsi, r14
lea r15, [0x14000e950]
nop dword [rax]
inc rsi
cmp byte [rsi + r15], 0
jne 0x14000c890
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x70], rax
mov r12, rax
test rsi, rsi
je 0x14000c8e1
mov rdx, rax
sub r15, rax
mov r8, rsi
nop dword [rax + rax]
movzx ecx, byte [rdx + r15]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14000c8d0
lea rdx, [rsp + 0x70]
mov byte [rax + rsi], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x78], rsi
call fcn.1400030d0
lea rcx, [rsp + 0x70]
mov rdx, qword [rax]
call fcn.14000a500
mov rbx, qword [rsp + 0x58]
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 0x14000c981
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 0x14000c970
mov r15, qword [rsp + 0x78]
mov byte [r12 + rax], 0
lea rsi, [r15 + r12]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi + 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 0x14000c9e1
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 0x14000c9d0
test r15, r15
je 0x14000ca10
mov rcx, qword [rsp + 0x70]
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 0x14000ca00
mov byte [rsi + 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 + 0x38]
mov rcx, r14
mov dword [rbp - 0x20], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbp - 0x1c], eax
mov eax, dword [rsp + 0x40]
mov dword [rbp - 0x18], eax
mov eax, dword [rsp + 0x44]
mov dword [rbp - 0x14], eax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x10], eax
mov eax, dword [rsp + 0x4c]
mov dword [rbp - 0xc], eax
mov eax, dword [rsp + 0x50]
mov dword [rbp - 8], eax
mov eax, dword [rsp + 0x54]
mov dword [rbp - 4], eax
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], rcx
test rsi, rsi
je 0x14000cacc
cmp rsi, 0x40
jb 0x14000caa3
mov r15, rsi
shr r15, 6
imul rax, r15, 0xffffffffffffffc0
add rsi, rax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140006f40
add qword [rbp - 0x70], 0x40
add rbx, 0x40
sub r15, 1
jne 0x14000ca84
mov rcx, qword [rbp - 0x68]
test rsi, rsi
je 0x14000cacc
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 rsi, 1
jne 0x14000cab0
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.1400069a0
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.1400066f0
mov r15, r14
nop word [rax + rax]
mov rax, qword [rdi + 0x10]
movzx r13d, byte [rbp + r15]
cmp qword [rdi + 8], rax
jb 0x14000cb73
mov r12d, 1
test rax, rax
je 0x14000cb0f
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, r14
mov rsi, rax
jbe 0x14000cb55
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 0x14000cb40
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], rsi
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 0x14000caf0
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rsi, qword [rbp + 0x78]
mov edx, 8
mov rcx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rsi, rsi
je 0x14000cc05
mov r10, qword [rbp + 0x70]
movabs r11, 0x8080808080808081
sub r10, rax
nop word [rax + rax]
mov rcx, r14
lea r9, [r14 + rbx]
and ecx, 0x1f
mov rax, r11
movzx r8d, byte [rcx + rdi]
add r8, r14
inc r14
mul r8
shr rdx, 7
imul rax, rdx, 0xff
sub r8, rax
xor r8b, byte [r9 + r10]
mov byte [r9], r8b
cmp r14, rsi
jb 0x14000cbd0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
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 + 0x70]
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 + 0x30]
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