Function at 0x14008c980
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe8
mov rax, qword [0x14019d0c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rcx
mov ebp, r8d
mov r8, qword [rsp + 0x150]
mov r12, rdx
xor edx, edx
mov dword [rsp + 0x44], r9d
mov r10d, r9d
mov qword [rsp + 0x48], r8
movzx eax, byte [rsi + 0x315]
mov r14d, edx
movzx r15d, byte [rsi + 0x319]
mov ecx, edx
cmp al, 1
jne 0x14008cb84
movzx r9d, word [rsi + 0x4d6]
mov r8d, edx
test r9b, 0x10
je 0x14008c9fb
movzx r8d, word [rsi + 0x310]
mov eax, r8d
mov rcx, rbp
sub rcx, rax
mov dword [rsp + 0x40], 1
mov rdi, rbp
movzx r14d, byte [rcx + r12 - 1]
mov ecx, r14d
mov r13d, r14d
test r9b, 8
je 0x14008cb09
sub ebp, r8d
mov eax, 0xff
movsxd r8, ebp
dec r8
add r8, r12
lea ecx, [rbp - 1]
movzx r10d, byte [r8]
mov edi, r10d
sub edi, ebp
add edi, r15d
shr edi, 0x1f
dec dil
cmp ecx, eax
cmovg ecx, eax
movsxd r9, ecx
test ecx, ecx
jle 0x14008ca83
nop word [rax + rax]
mov ecx, r10d
lea r8, [r8 - 1]
sub ecx, edx
movzx eax, r10b
xor al, byte [r8 + 1]
inc edx
shr ecx, 0x1f
dec cl
and cl, al
or dil, cl
sub r9, 1
jne 0x14008ca60
mov eax, dword [rsp + 0x44]
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x38], 1
mov r9d, ebp
sub r9d, r15d
mov dword [rsp + 0x30], 1
sub r9d, r14d
mov dword [rsp + 0x28], eax
dec r9d
mov dword [rsp + 0x20], r14d
mov r8, r12
mov rcx, rsi
call qword [rsi + pe_nt_image_headers64]
movzx r8d, byte [rsi + 0x319]
lea r9, [rsp + 0x90]
mov edx, ebp
mov rcx, r12
mov ebx, eax
call fcn.14008bff0
or al, dil
not al
movzx ecx, al
shr cl, 4
and al, cl
movzx ecx, al
mov edx, ecx
shr edx, 2
and edx, ecx
mov eax, edx
shr eax, 1
and eax, edx
dec eax
add eax, ebx
je 0x14008cb7e
mov eax, 0xfffffecf
jmp 0x14008cc0a
sub ebp, r15d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov r8, r12
mov dword [rsp + 0x28], r10d
lea eax, [rbp - 1]
cmp r14d, eax
mov dword [rsp + 0x44], eax
cmova r14d, edx
cmp r13d, eax
cmovbe edx, ecx
mov rcx, rsi
sub ebp, edx
mov ebx, edx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x20], ebx
lea r9d, [rbp - 1]
call qword [rsi + pe_nt_image_headers64]
sub rdi, rbx
lea rdx, [r12 - 1]
sub rdi, r15
lea rcx, [rsp + 0x50]
add rdx, rdi
mov r8d, r15d
mov ebp, eax
call fcn.14007f140
test eax, eax
jne 0x14008caff
test ebp, ebp
jne 0x14008caff
cmp r13d, dword [rsp + 0x44]
ja 0x14008caff
mov ecx, dword [rsp + 0x40]
jmp 0x14008cbe7
test al, al
jne 0x14008cbec
mov dword [rsp + 0x38], 1
lea rdx, [rsp + 0x50]
mov r9d, ebp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r10d
sub r9d, r15d
mov r8, r12
mov dword [rsp + 0x20], 0xffffffff
mov rcx, rsi
call qword [rsi + pe_nt_image_headers64]
mov rdx, rbp
lea rcx, [rsp + 0x50]
sub rdx, r15
mov r8d, r15d
add rdx, r12
mov ebx, eax
call fcn.14007f140
test eax, eax
jne 0x14008caff
test ebx, ebx
jne 0x14008caff
mov ecx, r14d
mov r8, qword [rsp + 0x48]
cmp byte [rsi + 0x315], 2
jne 0x14008cbfe
movzx eax, word [rsi + 0x312]
jmp 0x14008cc05
lea eax, [r15 + rcx]
add eax, r14d
mov dword [r8], eax
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14011c6a0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret