Function at 0x14002fb50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
xor ebx, ebx
mov rsi, qword [rdx]
mov edi, 0xffffffff
mov r14, rdx
mov r9d, ebx
mov r8d, ebx
movsxd rbp, dword [rax + 0x14]
mov r10, qword [rax]
lea r15d, [rdi + 2]
mov dword [rcx + 0x149c], ebx
mov dword [rcx + 0x14a0], 0x23d
test ebp, ebp
jle 0x14002fbf0
nop
cmp word [rsi + r8*4], bx
je 0x14002fbcc
movsxd rdx, dword [rcx + 0x149c]
mov edi, r9d
lea eax, [rdx + 1]
mov dword [rcx + 0x149c], eax
mov dword [rcx + rdx*4 + 0xbac], r9d
mov byte [r8 + rcx + 0x14a4], bl
jmp 0x14002fbd2
mov word [rsi + r8*4 + 2], bx
inc r9d
inc r8
cmp r8, rbp
jl 0x14002fba0
mov r8d, dword [rcx + 0x149c]
cmp r8d, 2
jge 0x14002fc48
nop word [rax + rax]
cmp edi, 2
lea eax, [rdi + 1]
lea edx, [rdi + 1]
cmovge eax, edi
cmovge edx, ebx
mov edi, eax
lea eax, [r8 + 1]
mov dword [rcx + 0x149c], eax
movsxd rax, r8d
mov dword [rcx + rax*4 + 0xbac], edx
movsxd rax, edx
mov word [rsi + rax*4], r15w
mov byte [rax + rcx + 0x14a4], bl
dec dword [rcx + 0x1700]
test r10, r10
je 0x14002fc3b
movzx eax, word [r10 + rax*4 + 2]
sub dword [rcx + 0x1704], eax
mov r8d, dword [rcx + 0x149c]
cmp r8d, 2
jl 0x14002fbf0
mov dword [r14 + 8], edi
mov r8d, dword [rcx + 0x149c]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r15d
jl 0x14002fc80
mov r8d, ebx
mov rdx, rsi
call fcn.140030710
dec ebx
cmp ebx, r15d
jge 0x14002fc62
mov r8d, dword [rcx + 0x149c]
nop dword [rax + rax]
movsxd rbx, dword [rcx + 0xbac]
movsxd rax, r8d
mov r8d, r15d
mov edx, dword [rcx + rax*4 + 0xba8]
mov dword [rcx + 0xbac], edx
mov rdx, rsi
dec dword [rcx + 0x149c]
call fcn.140030710
movsxd rdx, dword [rcx + 0x14a0]
movsxd r8, dword [rcx + 0xbac]
mov r9, r8
movsxd r10, ebp
lea eax, [rdx - 1]
mov dword [rcx + 0x14a0], eax
mov dword [rcx + rdx*4 + 0xba4], ebx
movsxd rdx, dword [rcx + 0x14a0]
lea eax, [rdx - 1]
mov dword [rcx + 0x14a0], eax
mov dword [rcx + rdx*4 + 0xba4], r8d
mov rdx, rsi
movzx eax, word [rsi + rbx*4]
add ax, word [rsi + r8*4]
mov word [rsi + r10*4], ax
movzx r8d, byte [rbx + rcx + 0x14a4]
movzx eax, byte [r9 + rcx + 0x14a4]
cmp r8b, al
cmovb r8d, eax
inc r8b
mov byte [r10 + rcx + 0x14a4], r8b
mov r8d, r15d
mov word [rsi + r9*4 + 2], bp
mov word [rsi + rbx*4 + 2], bp
mov dword [rcx + 0xbac], ebp
inc ebp
call fcn.140030710
mov r8d, dword [rcx + 0x149c]
cmp r8d, 2
jge 0x14002fc80
movsxd r8, dword [rcx + 0x14a0]
mov rdx, r14
lea eax, [r8 - 1]
mov dword [rcx + 0x14a0], eax
mov eax, dword [rcx + 0xbac]
mov dword [rcx + r8*4 + 0xba4], eax
call fcn.140030290
lea r8, [rcx + 0xb88]
mov edx, edi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp 0x1400304a0
push rbx
sub rsp, 0x50
mov rax, qword [0x140374a58]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x22]
mov r10d, r9d
sub r8, rax
mov rbx, rcx
mov r11d, 1
nop dword [rax]
lea rax, [r8 + r11*2]
movzx ecx, word [rsp + rax + 0x20]
add r10d, ecx
add r10d, r10d
mov word [rsp + r11*2 + 0x20], r10w
inc r11
cmp r11, 0xf
jle 0x1400304d0
movsxd r10, edx
test edx, edx
js 0x140030526
movzx edx, word [rbx + r9*4 + 2]
test edx, edx
je 0x14003051e
lea r8, [rsp + 0x20]
movzx ecx, word [r8 + rdx*2]
lea r8, [r8 + rdx*2]
lea eax, [rcx + 1]
mov word [r8], ax
call fcn.14002fa00
mov word [rbx + r9*4], ax
inc r9
cmp r9, r10
jle 0x1400304f5
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005bc60
add rsp, 0x50
pop rbx
ret