Function at 0x140006d20
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 0x140007265
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 0x140006d81
mov r15d, esi
mov esi, r15d
mov edi, ebx
cmp r14, r8
je 0x140007265
mov r15d, r11d
movzx r11d, word [rdx + r14*4 + 6]
lea ebx, [rdi + 1]
cmp r15d, r11d
sete al
cmp ebx, ecx
jge 0x140007200
inc r14
test al, al
jne 0x140006d70
cmp ebx, ebp
jge 0x140006e48
mov r9d, r15d
mov ecx, dword [r10 + 0x1710]
movzx edi, word [r10 + 0x170c]
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 + 0x170c], di
cmp ecx, ebp
jg 0x140006dfb
add ecx, esi
mov dword [r10 + 0x1710], ecx
dec ebx
je 0x140006f71
jmp 0x140006dbc
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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, al
shr r12d, cl
mov word [r10 + 0x170c], r12w
lea ecx, [rsi + rax]
add ecx, 0xfffffff0
mov edi, r12d
jmp 0x140006dea
test r15d, r15d
jne 0x140006ebe
cmp edi, 9
jg 0x140006f9e
movzx esi, word [r10 + 0xaea]
mov r9d, dword [r10 + 0x1710]
mov ebp, 0x10
movzx eax, word [r10 + 0xae8]
mov ebx, eax
mov ecx, r9d
shl ebx, cl
sub ebp, esi
or bx, word [r10 + 0x170c]
cmp r9d, ebp
jg 0x14000705f
add r9d, esi
mov dword [r10 + 0x1710], r9d
add edi, 0xfffe
cmp r9d, 0xe
jge 0x1400071a3
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x170c], bx
add r9d, 3
jmp 0x140006f6a
cmp r15d, esi
je 0x140007270
mov eax, r15d
movzx esi, word [r10 + rax*4 + 0xaa6]
mov r9d, dword [r10 + 0x1710]
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 + 0x170c]
mov word [r10 + 0x170c], bp
cmp r9d, ebx
jg 0x140007158
add r9d, esi
mov dword [r10 + 0x1710], 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 0x1400070b2
add r9d, esi
mov dword [r10 + 0x1710], r9d
add edi, 0xfffd
cmp r9d, 0xf
jge 0x140007207
mov ecx, r9d
shl edi, cl
or ebp, edi
mov word [r10 + 0x170c], bp
add r9d, 2
mov dword [r10 + 0x1710], r9d
xor ebx, ebx
test r11d, r11d
je 0x140006f8f
xor ecx, ecx
cmp r15d, r11d
sete cl
mov ebp, 4
sub ebp, ecx
xor ecx, 7
jmp 0x140006d73
mov ecx, 0x8a
mov ebp, 3
jmp 0x140006d73
movzx esi, word [r10 + 0xaee]
mov r9d, dword [r10 + 0x1710]
mov ebp, 0x10
movzx eax, word [r10 + 0xaec]
mov ebx, eax
mov ecx, r9d
shl ebx, cl
sub ebp, esi
or bx, word [r10 + 0x170c]
cmp r9d, ebp
jg 0x140007105
add r9d, esi
mov dword [r10 + 0x1710], r9d
add edi, 0xfff6
cmp r9d, 0xa
jge 0x140007002
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x170c], bx
add r9d, 7
jmp 0x140006f6a
movzx eax, di
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x170c], 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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, r9b
shr eax, cl
mov word [r10 + 0x170c], ax
add r9d, 0xfffffff7
jmp 0x140006f6a
mov word [r10 + 0x170c], 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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebx, eax
jmp 0x140006e8f
mov word [r10 + 0x170c], 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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebp, eax
jmp 0x140006f40
mov word [r10 + 0x170c], 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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebx, eax
jmp 0x140006fd7
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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, bpl
shr eax, cl
lea r9d, [rsi + rbp]
add r9d, 0xfffffff0
mov ebp, eax
jmp 0x140006f0d
movzx eax, di
mov ecx, r9d
shl edi, cl
or ebx, edi
mov word [r10 + 0x170c], 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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, r9b
shr eax, cl
mov word [r10 + 0x170c], ax
add r9d, 0xfffffff3
jmp 0x140006f6a
xor eax, eax
jmp 0x140006d9b
movzx eax, di
mov ecx, r9d
shl edi, cl
or ebp, edi
mov word [r10 + 0x170c], 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 + 0x170d]
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 + 0x1710]
mov cl, 0x10
sub cl, r9b
shr eax, cl
mov word [r10 + 0x170c], ax
add r9d, 0xfffffff2
jmp 0x140006f6a
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, dword [r10 + 0x1710]
movzx ebp, word [r10 + 0x170c]
mov edi, ebx
jmp 0x140006f14