Function at 0x14000cfb6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
test r8d, r8d
js 0x14000d4f4
mov r15, rcx
movzx r9d, word [rdx + 2]
xor eax, eax
test r9w, r9w
sete al
movsxd r10, r8d
mov ebp, 0x8a
mov ecx, 7
cmove ecx, ebp
mov ebx, 4
sub ebx, eax
xor r12d, r12d
mov esi, 0xffffffff
xor r11d, r11d
mov r14d, r9d
movzx r9d, word [rdx + r11*4 + 6]
lea ebp, [r12 + 1]
cmp ebp, ecx
jge 0x14000d01b
cmp r14d, r9d
jne 0x14000d01b
mov r14d, esi
jmp 0x14000d4e1
cmp ebp, ebx
jge 0x14000d0c8
mov r8d, r14d
mov ecx, dword [r15 + 0x1714]
movzx ebp, word [r15 + 0x1710]
not r12d
movzx esi, word [r15 + r8*4 + 0xaa6]
mov edi, 0x10
movzx ebx, word [r15 + r8*4 + 0xaa4]
mov eax, ebx
shl eax, cl
sub edi, esi
or ebp, eax
mov word [r15 + 0x1710], bp
cmp ecx, edi
jle 0x14000d0b1
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea edi, [rcx + 1]
mov dword [r15 + 0x28], edi
mov byte [rax + rcx], bpl
mov al, byte [r15 + 0x1711]
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea ebp, [rdi + 1]
mov dword [r15 + 0x28], ebp
mov byte [rcx + rdi], al
mov eax, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, eax
shr ebx, cl
mov word [r15 + 0x1710], bx
lea ecx, [rsi + rax]
add ecx, 0xfffffff0
mov ebp, ebx
jmp 0x14000d0b3
add ecx, esi
mov dword [r15 + 0x1714], ecx
inc r12d
jne 0x14000d038
jmp 0x14000d4bb
test r14d, r14d
je 0x14000d0ed
cmp r14d, esi
jne 0x14000d187
mov r8d, dword [r15 + 0x1714]
movzx ebx, word [r15 + 0x1710]
mov r12d, ebp
jmp 0x14000d2b6
cmp r12d, 9
jg 0x14000d21c
movzx ebp, word [r15 + 0xaea]
mov r8d, dword [r15 + 0x1714]
mov esi, 0x10
sub esi, ebp
movzx eax, word [r15 + 0xae8]
mov ebx, eax
mov ecx, r8d
shl ebx, cl
or bx, word [r15 + 0x1710]
mov word [r15 + 0x1710], bx
cmp r8d, esi
jle 0x14000d3b5
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rcx + rdi], bl
mov cl, byte [r15 + 0x1711]
mov rbx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rbx + rdi], cl
mov ebx, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, ebx
shr eax, cl
mov word [r15 + 0x1710], ax
lea r8d, [rbx + rbp]
add r8d, 0xfffffff0
mov ebx, eax
jmp 0x14000d3b8
mov eax, r14d
movzx ebp, word [r15 + rax*4 + 0xaa6]
mov r8d, dword [r15 + 0x1714]
mov esi, 0x10
sub esi, ebp
movzx eax, word [r15 + rax*4 + 0xaa4]
mov ebx, eax
mov ecx, r8d
shl ebx, cl
or bx, word [r15 + 0x1710]
mov word [r15 + 0x1710], bx
cmp r8d, esi
jle 0x14000d2ac
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rcx + rdi], bl
mov cl, byte [r15 + 0x1711]
mov rbx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rbx + rdi], cl
mov ebx, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, ebx
shr eax, cl
mov word [r15 + 0x1710], ax
lea r8d, [rbx + rbp]
add r8d, 0xfffffff0
mov ebx, eax
jmp 0x14000d2af
movzx ebp, word [r15 + 0xaee]
mov r8d, dword [r15 + 0x1714]
mov esi, 0x10
sub esi, ebp
movzx eax, word [r15 + 0xaec]
mov ebx, eax
mov ecx, r8d
shl ebx, cl
or bx, word [r15 + 0x1710]
mov word [r15 + 0x1710], bx
cmp r8d, esi
jle 0x14000d433
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rcx + rdi], bl
mov cl, byte [r15 + 0x1711]
mov rbx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rbx + rdi], cl
mov ebx, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, ebx
shr eax, cl
mov word [r15 + 0x1710], ax
lea r8d, [rbx + rbp]
add r8d, 0xfffffff0
mov ebx, eax
jmp 0x14000d436
add r8d, ebp
mov dword [r15 + 0x1714], r8d
movzx ebp, word [r15 + 0xae6]
mov eax, 0x10
movzx esi, word [r15 + 0xae4]
mov edi, esi
mov ecx, r8d
shl edi, cl
sub eax, ebp
or ebx, edi
mov word [r15 + 0x1710], bx
cmp r8d, eax
jle 0x14000d332
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea edi, [rcx + 1]
mov dword [r15 + 0x28], edi
mov byte [rax + rcx], bl
mov al, byte [r15 + 0x1711]
mov rcx, qword [r15 + 0x10]
mov ebx, dword [r15 + 0x28]
lea edi, [rbx + 1]
mov dword [r15 + 0x28], edi
mov byte [rcx + rbx], al
mov eax, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, eax
shr esi, cl
mov word [r15 + 0x1710], si
lea r8d, [rax + rbp]
add r8d, 0xfffffff0
mov ebx, esi
jmp 0x14000d335
add r8d, ebp
add r12d, 0xfffd
movzx eax, r12w
mov esi, eax
mov ecx, r8d
shl esi, cl
mov dword [r15 + 0x1714], r8d
or ebx, esi
mov word [r15 + 0x1710], bx
cmp r8d, 0xf
jl 0x14000d3ac
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea edi, [rbp + 1]
mov dword [r15 + 0x28], edi
mov byte [rcx + rbp], bl
mov cl, byte [r15 + 0x1711]
mov rbp, qword [r15 + 0x10]
mov ebx, dword [r15 + 0x28]
lea edi, [rbx + 1]
mov dword [r15 + 0x28], edi
mov byte [rbp + rbx], cl
mov r8d, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, r8d
shr eax, cl
mov word [r15 + 0x1710], ax
add r8d, 0xfffffff2
jmp 0x14000d4b4
add r8d, 2
jmp 0x14000d4b4
add r8d, ebp
add r12d, 0xfffe
movzx eax, r12w
mov esi, eax
mov ecx, r8d
shl esi, cl
mov dword [r15 + 0x1714], r8d
or ebx, esi
mov word [r15 + 0x1710], bx
cmp r8d, 0xe
jl 0x14000d4aa
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea edi, [rbp + 1]
mov dword [r15 + 0x28], edi
mov byte [rcx + rbp], bl
mov cl, byte [r15 + 0x1711]
mov rbp, qword [r15 + 0x10]
mov ebx, dword [r15 + 0x28]
lea edi, [rbx + 1]
mov dword [r15 + 0x28], edi
mov byte [rbp + rbx], cl
mov r8d, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, r8d
shr eax, cl
mov word [r15 + 0x1710], ax
add r8d, 0xfffffff3
jmp 0x14000d4b4
add r8d, ebp
add r12d, 0xfff6
movzx eax, r12w
mov esi, eax
mov ecx, r8d
shl esi, cl
mov dword [r15 + 0x1714], r8d
or ebx, esi
mov word [r15 + 0x1710], bx
cmp r8d, 0xa
jl 0x14000d4b0
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea edi, [rbp + 1]
mov dword [r15 + 0x28], edi
mov byte [rcx + rbp], bl
mov cl, byte [r15 + 0x1711]
mov rbp, qword [r15 + 0x10]
mov ebx, dword [r15 + 0x28]
lea edi, [rbx + 1]
mov dword [r15 + 0x28], edi
mov byte [rbp + rbx], cl
mov r8d, dword [r15 + 0x1714]
mov ecx, 0x10
sub ecx, r8d
shr eax, cl
mov word [r15 + 0x1710], ax
add r8d, 0xfffffff7
jmp 0x14000d4b4
add r8d, 3
jmp 0x14000d4b4
add r8d, 7
mov dword [r15 + 0x1714], r8d
xor ebp, ebp
test r9w, r9w
je 0x14000d4d7
xor ecx, ecx
cmp r14d, r9d
sete cl
mov ebx, 4
sub ebx, ecx
xor ecx, 7
jmp 0x14000d4e1
mov ecx, 0x8a
mov ebx, 3
mov esi, r14d
mov r12d, ebp
cmp r11, r10
lea r11, [r11 + 1]
jne 0x14000cffc
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret