Function at 0x140148340
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 0x14014885d
mov r15, rcx
movzx r10d, word [rdx + 2]
xor eax, eax
test r10w, r10w
sete al
mov ebp, 0x8a
mov ecx, 7
cmove ecx, ebp
mov esi, 4
sub esi, eax
inc r8d
xor r11d, r11d
mov ebx, 0xffffffff
xor r12d, r12d
mov r14d, r10d
movzx r10d, word [rdx + r11*4 + 6]
inc r11
lea ebp, [r12 + 1]
cmp ebp, ecx
jge 0x1401483a8
cmp r14d, r10d
jne 0x1401483a8
mov r14d, ebx
jmp 0x14014884e
cmp ebp, esi
jge 0x14014844e
mov r9d, r14d
mov ecx, dword [r15 + 0x1760]
not r12d
movzx ebp, word [r15 + r9*4 + 0xaf6]
mov edi, 0x10
sub edi, ebp
movzx eax, word [r15 + r9*4 + 0xaf4]
mov ebx, eax
shl ebx, cl
or bx, word [r15 + 0x175c]
mov word [r15 + 0x175c], bx
cmp ecx, edi
jle 0x140148437
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 + 0x175d]
mov rsi, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea ebx, [rdi + 1]
mov dword [r15 + 0x28], ebx
mov byte [rsi + rdi], cl
mov esi, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, sil
shr eax, cl
mov word [r15 + 0x175c], ax
lea ecx, [rsi + rbp]
add ecx, 0xfffffff0
jmp 0x140148439
add ecx, ebp
mov dword [r15 + 0x1760], ecx
inc r12d
jne 0x1401483bd
jmp 0x140148828
test r14d, r14d
je 0x14014846b
cmp r14d, ebx
jne 0x140148502
mov r9d, dword [r15 + 0x1760]
mov r12d, ebp
jmp 0x14014862b
cmp ebp, 0xa
jg 0x140148593
movzx ebp, word [r15 + 0xb3a]
mov r9d, dword [r15 + 0x1760]
mov eax, 0x10
sub eax, ebp
movzx ebx, word [r15 + 0xb38]
mov esi, ebx
mov ecx, r9d
shl esi, cl
or si, word [r15 + 0x175c]
mov word [r15 + 0x175c], si
cmp r9d, eax
jle 0x14014872b
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea edi, [rcx + 1]
mov dword [r15 + 0x28], edi
mov byte [rax + rcx], sil
mov al, byte [r15 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rcx + rdi], al
mov eax, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, al
shr ebx, cl
mov word [r15 + 0x175c], bx
lea r9d, [rax + rbp]
add r9d, 0xfffffff0
mov esi, ebx
jmp 0x14014872e
mov eax, r14d
movzx esi, word [r15 + rax*4 + 0xaf6]
mov r9d, dword [r15 + 0x1760]
mov edi, 0x10
sub edi, esi
movzx ebx, word [r15 + rax*4 + 0xaf4]
mov ebp, ebx
mov ecx, r9d
shl ebp, cl
or bp, word [r15 + 0x175c]
mov word [r15 + 0x175c], bp
cmp r9d, edi
jle 0x140148621
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 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea edi, [rbp + 1]
mov dword [r15 + 0x28], edi
mov byte [rcx + rbp], al
mov eax, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, al
shr ebx, cl
mov word [r15 + 0x175c], bx
lea r9d, [rsi + rax]
add r9d, 0xfffffff0
jmp 0x140148624
movzx ebp, word [r15 + 0xb3e]
mov r9d, dword [r15 + 0x1760]
mov eax, 0x10
sub eax, ebp
movzx ebx, word [r15 + 0xb3c]
mov esi, ebx
mov ecx, r9d
shl esi, cl
or si, word [r15 + 0x175c]
mov word [r15 + 0x175c], si
cmp r9d, eax
jle 0x1401487a3
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea edi, [rcx + 1]
mov dword [r15 + 0x28], edi
mov byte [rax + rcx], sil
mov al, byte [r15 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rcx + rdi], al
mov eax, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, al
shr ebx, cl
mov word [r15 + 0x175c], bx
lea r9d, [rax + rbp]
add r9d, 0xfffffff0
mov esi, ebx
jmp 0x1401487a6
add r9d, esi
mov dword [r15 + 0x1760], r9d
movzx ebx, word [r15 + 0xb36]
mov eax, 0x10
sub eax, ebx
movzx ebp, word [r15 + 0xb34]
mov esi, ebp
mov ecx, r9d
shl esi, cl
or si, word [r15 + 0x175c]
mov word [r15 + 0x175c], si
cmp r9d, eax
jle 0x1401486ab
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea edi, [rcx + 1]
mov dword [r15 + 0x28], edi
mov byte [rax + rcx], sil
mov al, byte [r15 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov edi, dword [r15 + 0x28]
lea esi, [rdi + 1]
mov dword [r15 + 0x28], esi
mov byte [rcx + rdi], al
mov eax, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, al
shr ebp, cl
mov word [r15 + 0x175c], bp
lea r9d, [rbx + rax]
add r9d, 0xfffffff0
mov esi, ebp
jmp 0x1401486ae
add r9d, ebx
add r12d, 0xfffd
movzx edi, r12w
mov eax, edi
mov ecx, r9d
shl eax, cl
mov dword [r15 + 0x1760], r9d
or esi, eax
mov word [r15 + 0x175c], si
cmp r9d, 0xf
jl 0x140148722
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea ebp, [rcx + 1]
mov dword [r15 + 0x28], ebp
mov byte [rax + rcx], sil
mov al, byte [r15 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea ebx, [rbp + 1]
mov dword [r15 + 0x28], ebx
mov byte [rcx + rbp], al
mov r9d, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, r9b
shr edi, cl
mov word [r15 + 0x175c], di
add r9d, 0xfffffff2
jmp 0x140148821
add r9d, 2
jmp 0x140148821
add r9d, ebp
add r12d, 0xfffe
movzx edi, r12w
mov eax, edi
mov ecx, r9d
shl eax, cl
mov dword [r15 + 0x1760], r9d
or esi, eax
mov word [r15 + 0x175c], si
cmp r9d, 0xe
jl 0x140148817
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea ebp, [rcx + 1]
mov dword [r15 + 0x28], ebp
mov byte [rax + rcx], sil
mov al, byte [r15 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea ebx, [rbp + 1]
mov dword [r15 + 0x28], ebx
mov byte [rcx + rbp], al
mov r9d, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, r9b
shr edi, cl
mov word [r15 + 0x175c], di
add r9d, 0xfffffff3
jmp 0x140148821
add r9d, ebp
add r12d, 0xfff6
movzx edi, r12w
mov eax, edi
mov ecx, r9d
shl eax, cl
mov dword [r15 + 0x1760], r9d
or esi, eax
mov word [r15 + 0x175c], si
cmp r9d, 0xa
jl 0x14014881d
mov rax, qword [r15 + 0x10]
mov ecx, dword [r15 + 0x28]
lea ebp, [rcx + 1]
mov dword [r15 + 0x28], ebp
mov byte [rax + rcx], sil
mov al, byte [r15 + 0x175d]
mov rcx, qword [r15 + 0x10]
mov ebp, dword [r15 + 0x28]
lea ebx, [rbp + 1]
mov dword [r15 + 0x28], ebx
mov byte [rcx + rbp], al
mov r9d, dword [r15 + 0x1760]
mov cl, 0x10
sub cl, r9b
shr edi, cl
mov word [r15 + 0x175c], di
add r9d, 0xfffffff7
jmp 0x140148821
add r9d, 3
jmp 0x140148821
add r9d, 7
mov dword [r15 + 0x1760], r9d
xor ebp, ebp
test r10w, r10w
je 0x140148844
xor ecx, ecx
cmp r14d, r10d
sete cl
mov esi, 4
sub esi, ecx
xor ecx, 7
jmp 0x14014884e
mov ecx, 0x8a
mov esi, 3
mov ebx, r14d
mov r12d, ebp
cmp r11, r8
jne 0x140148386
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret