Function at 0x14027b720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
cmp r8d, ecx
jle 0x14027b870
mov edi, r9d
mov eax, edx
cmp r9d, edx
jle 0x14027b870
mov esi, r8d
mov ebx, ecx
mov r14, qword [rsp + 0xa0]
mov ebp, eax
sar ebp, 8
lea ecx, [rdi - 1]
sar ecx, 8
cmp ebp, ecx
jne 0x14027b780
not eax
add eax, edi
mov qword [rsp + 0x20], r14
mov ecx, ebx
mov edx, ebp
mov r8d, esi
mov r9d, eax
call 0x14027be50
jmp 0x14027b870
movzx r13d, byte [rsp + 0xa8]
and eax, 0xff
je 0x14027b7ac
mov r9d, 0x100
sub r9d, eax
mov qword [rsp + 0x20], r14
mov ecx, ebx
mov edx, ebp
mov r8d, esi
call 0x14027be50
inc ebp
mov r15d, edi
sar r15d, 8
mov r12d, r15d
sub r12d, ebp
jle 0x14027b848
mov byte [rsp + 0x37], r13b
mov r13d, ebx
sar r13d, 8
lea eax, [rsi - 1]
sar eax, 8
cmp r13d, eax
jne 0x14027b7de
mov eax, ebx
not eax
add eax, esi
jmp 0x14027b831
test bl, bl
je 0x14027b800
mov eax, ebx
neg al
mov r10, qword [r14]
mov byte [rsp + 0x20], al
mov rcx, r14
mov edx, r13d
mov r8d, ebp
mov r9d, r12d
call qword [r10 + 0x18]
inc r13d
mov edx, r13d
mov r13d, esi
sar r13d, 8
mov r9d, r13d
sub r9d, edx
jle 0x14027b82a
cmp byte [rsp + 0x37], 0
je 0x14027b82a
mov rax, qword [r14]
mov dword [rsp + 0x20], r12d
mov rcx, r14
mov r8d, ebp
call qword [rax + 0x20]
mov eax, esi
test sil, sil
je 0x14027b848
mov r10, qword [r14]
mov byte [rsp + 0x20], al
mov rcx, r14
mov edx, r13d
mov r8d, ebp
mov r9d, r12d
call qword [r10 + 0x18]
and edi, 0xff
je 0x14027b870
mov ecx, ebx
mov edx, r15d
mov r8d, esi
mov r9d, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x14027be50
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
mov ebx, r9d
mov esi, edx
mov rdx, r8
mov rdi, qword [rsp + 0x1f0]
mov rax, qword [0x1406a7e00]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov ebp, ecx
sar ebp, 8
lea eax, [r8 - 1]
sar eax, 8
cmp ebp, eax
jne 0x14027beab
sub edx, ecx
imul edx, ebx
mov rax, qword [rdi]
mov byte [rsp + 0x20], dh
mov rcx, rdi
mov edx, ebp
jmp 0x14027bf72
and ecx, 0xff
je 0x14027bee0
mov eax, 0x100
sub eax, ecx
imul eax, ebx
mov r10, qword [rdi]
mov byte [rsp + 0x20], ah
mov rcx, rdi
mov r14, rdx
mov edx, ebp
mov r8d, esi
mov r9d, 1
call qword [r10 + 0x18]
mov rcx, r14
inc ebp
jmp 0x14027bee3
mov rcx, rdx
mov edx, ecx
sar edx, 8
mov r12d, edx
sub r12d, ebp
jle 0x14027bf5d
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x38], rcx
lea r13, [rsp + 0xb0]
lea r15, [rsp + 0x40]
nop word cs:[rax + rax]
cmp r12d, 0x64
mov r14d, 0x64
cmovl r14d, r12d
mov byte [rsp + 0x40], bl
mov word [rsp + 0xb0], r14w
mov word [rsp + r14*2 + 0xb0], 0
mov rax, qword [rdi]
mov qword [rsp + 0x20], r13
mov rcx, rdi
mov edx, ebp
mov r8d, esi
mov r9, r15
call qword [rax + 0x10]
add ebp, r14d
sub r12d, r14d
jg 0x14027bf10
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
and ecx, 0xff
je 0x14027bf7e
imul ecx, ebx
mov rax, qword [rdi]
mov byte [rsp + 0x20], ch
mov rcx, rdi
mov r8d, esi
mov r9d, 1
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1405602f0
nop
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret