Function at 0x140006190
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 0x1400066d0
mov r10, rcx
movzx r11d, word [rdx + 2]
xor eax, eax
test r11d, r11d
sete al
mov ebp, 0x8a
mov ecx, 7
cmove ecx, ebp
mov ebp, 4
sub ebp, eax
inc r8d
xor r14d, r14d
mov esi, 0xffffffff
xor edi, edi
jmp 0x1400061e7
mov r15d, esi
mov esi, r15d
mov edi, ebx
cmp r14, r8
je 0x1400066d0
mov r15d, r11d
movzx r11d, word [rdx + r14*4 + 6]
lea ebx, [rdi + 1]
cmp r15d, r11d
sete al
cmp ebx, ecx
jge 0x1400066c9
add r14, 1
test al, al
jne 0x1400061d6
cmp ebx, ebp
jge 0x1400062af
mov r9d, r15d
mov ecx, dword [r10 + 0x1714]
movzx edi, word [r10 + 0x1710]
movzx esi, word [r10 + r9*4 + 0xaa6]
mov ebp, 0x10
movzx r12d, word [r10 + r9*4 + 0xaa4]
mov eax, r12d
shl eax, cl
sub ebp, esi
or edi, eax
mov word [r10 + 0x1710], di
cmp ecx, ebp
jg 0x140006262
add ecx, esi
mov dword [r10 + 0x1714], ecx
dec ebx
je 0x14000632b
jmp 0x140006223
mov rax, qword [r10 + 0x10]
mov ecx, dword [r10 + 0x28]
lea ebp, [rcx + 1]
mov dword [r10 + 0x28], ebp
mov byte [rax + rcx], dil
mov al, byte [r10 + 0x1711]
mov rcx, qword [r10 + 0x10]
mov edi, dword [r10 + 0x28]
lea ebp, [rdi + 1]
mov dword [r10 + 0x28], ebp
mov byte [rcx + rdi], al
mov eax, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, al
shr r12d, cl
mov word [r10 + 0x1710], r12w
lea ecx, [rsi + rax]
add ecx, 0xfffffff0
mov edi, r12d
jmp 0x140006251
test r15d, r15d
jne 0x140006358
cmp edi, 9
jg 0x140006409
movzx esi, word [r10 + 0xaea]
mov r9d, dword [r10 + 0x1714]
mov ebp, 0x10
movzx eax, word [r10 + 0xae8]
mov ebx, eax
mov ecx, r9d
shl ebx, cl
sub ebp, esi
or bx, word [r10 + 0x1710]
cmp r9d, ebp
jg 0x1400064ca
add r9d, esi
mov dword [r10 + 0x1714], r9d
add edi, 0xfffe
cmp r9d, 0xe
jge 0x14000660e
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x1710], bx
add r9d, 3
mov dword [r10 + 0x1714], r9d
xor ebx, ebx
test r11d, r11d
je 0x140006349
xor ecx, ecx
cmp r15d, r11d
sete cl
mov ebp, 4
sub ebp, ecx
xor ecx, 7
jmp 0x1400061d9
mov ecx, 0x8a
mov ebp, 3
jmp 0x1400061d9
cmp r15d, esi
je 0x1400066db
mov eax, r15d
movzx esi, word [r10 + rax*4 + 0xaa6]
mov r9d, dword [r10 + 0x1714]
mov ebx, 0x10
sub ebx, esi
movzx eax, word [r10 + rax*4 + 0xaa4]
mov ebp, eax
mov ecx, r9d
shl ebp, cl
or bp, word [r10 + 0x1710]
mov word [r10 + 0x1710], bp
cmp r9d, ebx
jg 0x1400065c3
add r9d, esi
mov dword [r10 + 0x1714], r9d
movzx esi, word [r10 + 0xae6]
movzx eax, word [r10 + 0xae4]
mov ebx, eax
mov ecx, r9d
shl ebx, cl
mov ecx, 0x10
sub ecx, esi
or ebp, ebx
cmp r9d, ecx
jg 0x14000651d
add r9d, esi
mov dword [r10 + 0x1714], r9d
add edi, 0xfffd
cmp r9d, 0xf
jge 0x14000666b
mov ecx, r9d
shl edi, cl
or ebp, edi
mov word [r10 + 0x1710], bp
add r9d, 2
jmp 0x140006324
movzx esi, word [r10 + 0xaee]
mov r9d, dword [r10 + 0x1714]
mov ebp, 0x10
movzx eax, word [r10 + 0xaec]
mov ebx, eax
mov ecx, r9d
shl ebx, cl
sub ebp, esi
or bx, word [r10 + 0x1710]
cmp r9d, ebp
jg 0x140006570
add r9d, esi
mov dword [r10 + 0x1714], r9d
add edi, 0xfff6
cmp r9d, 0xa
jge 0x14000646d
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x1710], bx
add r9d, 7
jmp 0x140006324
movzx eax, di
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x1710], bx
mov rcx, qword [r10 + 0x10]
mov ebp, dword [r10 + 0x28]
lea edi, [rbp + 1]
mov dword [r10 + 0x28], edi
mov byte [rcx + rbp], bl
mov cl, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea edi, [rbx + 1]
mov dword [r10 + 0x28], edi
mov byte [rbp + rbx], cl
mov r9d, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, r9b
shr eax, cl
mov word [r10 + 0x1710], ax
add r9d, 0xfffffff7
jmp 0x140006324
mov word [r10 + 0x1710], bx
mov r9, qword [r10 + 0x10]
mov ebp, dword [r10 + 0x28]
lea ecx, [rbp + 1]
mov dword [r10 + 0x28], ecx
mov byte [r9 + rbp], bl
mov r9b, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea ecx, [rbx + 1]
mov dword [r10 + 0x28], ecx
mov byte [rbp + rbx], r9b
mov ebp, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebx, eax
jmp 0x1400062fa
mov word [r10 + 0x1710], bp
mov r9, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea ecx, [rbx + 1]
mov dword [r10 + 0x28], ecx
mov byte [r9 + rbx], bpl
mov r9b, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea ecx, [rbx + 1]
mov dword [r10 + 0x28], ecx
mov byte [rbp + rbx], r9b
mov ebp, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebp, eax
jmp 0x1400063da
mov word [r10 + 0x1710], bx
mov r9, qword [r10 + 0x10]
mov ebp, dword [r10 + 0x28]
lea ecx, [rbp + 1]
mov dword [r10 + 0x28], ecx
mov byte [r9 + rbp], bl
mov r9b, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea ecx, [rbx + 1]
mov dword [r10 + 0x28], ecx
mov byte [rbp + rbx], r9b
mov ebp, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebx, eax
jmp 0x140006442
mov r9, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea ecx, [rbx + 1]
mov dword [r10 + 0x28], ecx
mov byte [r9 + rbx], bpl
mov r9b, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea ecx, [rbx + 1]
mov dword [r10 + 0x28], ecx
mov byte [rbp + rbx], r9b
mov ebp, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebp, eax
jmp 0x1400063a7
movzx eax, di
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x1710], bx
mov rcx, qword [r10 + 0x10]
mov ebp, dword [r10 + 0x28]
lea edi, [rbp + 1]
mov dword [r10 + 0x28], edi
mov byte [rcx + rbp], bl
mov cl, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea edi, [rbx + 1]
mov dword [r10 + 0x28], edi
mov byte [rbp + rbx], cl
mov r9d, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, r9b
shr eax, cl
mov word [r10 + 0x1710], ax
add r9d, 0xfffffff3
jmp 0x140006324
movzx eax, di
mov ecx, r9d
shl edi, cl
or ebp, edi
mov word [r10 + 0x1710], bp
mov rcx, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea edi, [rbx + 1]
mov dword [r10 + 0x28], edi
mov byte [rcx + rbx], bpl
mov cl, byte [r10 + 0x1711]
mov rbp, qword [r10 + 0x10]
mov ebx, dword [r10 + 0x28]
lea edi, [rbx + 1]
mov dword [r10 + 0x28], edi
mov byte [rbp + rbx], cl
mov r9d, dword [r10 + 0x1714]
mov cl, 0x10
sub cl, r9b
shr eax, cl
mov word [r10 + 0x1710], ax
add r9d, 0xfffffff2
jmp 0x140006324
xor eax, eax
jmp 0x140006201
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, dword [r10 + 0x1714]
movzx ebp, word [r10 + 0x1710]
mov edi, ebx
jmp 0x1400063ae