Function at 0x1403064a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movzx r10d, word [rdx + 2]
test r10, r10
je 0x1403064d7
mov rax, qword [0x1403dbd90]
sub qword [rax], r10
cmp byte [rdx + 5], 0
je 0x140306524
mov r9b, 1
xor r8d, r8d
movzx esi, word [rdx]
test rsi, rsi
jne 0x1403065b4
jmp 0x140306621
mov rsi, qword [rdx - 0x1000]
add rdx, 0xfffffffffffff000
mov rdi, rsi
shl rdi, 0xc
lea rax, [rdi + 0x1000]
mov rcx, rdx
mov rdx, rax
call fcn.140304c90
mov rax, qword [0x1403dbd90]
sub qword [rax], rsi
mov rax, qword [0x1403dbdc0]
add qword [rax], 0xffffffffffffffff
mov rax, qword [0x1403dbdb8]
sub qword [rax], rdi
xor edi, edi
jmp 0x140306678
mov rax, r10
shl rax, 0xc
cmp byte [rdx + rax + 4], 0
je 0x140306585
mov rcx, r10
shl rcx, 7
add rax, rdx
shl rcx, 5
mov r8b, byte [rdx + rcx + 5]
movzx ecx, word [rdx + rcx + 2]
add cx, r10w
mov byte [rdx + 5], r8b
mov rdi, qword [rax + 0x10]
mov rsi, qword [rax + 0x18]
mov qword [rdi + 0x18], rsi
mov rax, qword [rax + 0x18]
mov qword [rax + 0x10], rdi
mov word [rdx + 2], cx
test r8b, r8b
je 0x140306598
mov r9b, 1
xor r8d, r8d
mov r10d, ecx
movzx esi, word [rdx]
test rsi, rsi
jne 0x1403065b4
jmp 0x140306621
mov r8b, 1
xor r9d, r9d
movzx esi, word [rdx]
test rsi, rsi
jne 0x1403065b4
jmp 0x140306621
movzx eax, cx
shl rax, 0xc
mov word [rdx + rax], cx
mov r8b, 1
xor r9d, r9d
mov r10d, ecx
movzx esi, word [rdx]
test rsi, rsi
je 0x140306621
mov rax, rsi
shl rax, 0xc
mov rcx, rax
neg rcx
cmp byte [rdx + rcx + 4], 0
je 0x140306621
shl rsi, 7
neg rsi
mov rcx, rdx
sub rcx, rax
mov rax, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov qword [rax + 0x18], rdi
mov rdi, qword [rcx + 0x18]
mov qword [rdi + 0x10], rax
shl rsi, 5
add r10w, word [rdx + rsi + 2]
mov word [rdx + rsi + 2], r10w
mov byte [rdx + rsi + 5], r9b
test r8b, r8b
je 0x140306610
movzx eax, r10w
shl rax, 0xc
mov word [rcx + rax], r10w
mov byte [rcx + 4], 1
movzx edi, word [rcx + 2]
cmp edi, 0x10
jae 0x140306631
xor eax, eax
jmp 0x14030664d
mov rcx, rdx
mov byte [rcx + 4], 1
movzx edi, word [rcx + 2]
cmp edi, 0x10
jb 0x14030661d
mov eax, edi
add eax, 0xfffffff0
je 0x140306643
bsr eax, eax
xor eax, 0xffffffe0
add eax, 0x22
jmp 0x14030664d
mov eax, 1
mov edi, 0x10
shl rax, 5
lea rdx, [0x1405ffb80]
lea rsi, [rdx + rax]
mov qword [rcx + 0x10], rsi
mov rsi, qword [rax + rdx + 0x18]
mov qword [rcx + 0x18], rsi
mov qword [rsi + 0x10], rcx
mov qword [rax + rdx + 0x18], rcx
cmp word [rcx], 0
je 0x140306681
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret
cmp byte [rcx + 5], 0
je 0x140306678
mov eax, dword [0x1405ffe18]
mov rdx, qword [0x1403dbd98]
cmp eax, dword [rdx]
jge 0x1403066a3
add eax, 1
mov dword [0x1405ffe18], eax
jmp 0x140306678
mov rax, qword [rcx + 0x10]
mov rdx, qword [rcx + 0x18]
mov qword [rax + 0x18], rdx
mov rdx, qword [rcx + 0x18]
mov qword [rdx + 0x10], rax
mov rdx, qword [0x1405ffe00]
xor eax, eax
test rdx, rdx
jne 0x1403066ff
mov qword [0x1405ffe00], rax
mov rax, qword [0x1403dbd88]
add qword [rax], 0xffffffffffffffff
mov edx, edi
shl edx, 0xc
call fcn.140304c90
jmp 0x140306678
mov qword [0x1405ffe00], rsi
mov rdx, rsi
test rsi, rsi
je 0x1403066c5
mov rsi, qword [rdx + 8]
cmp qword [rdx], rcx
je 0x1403066f0
mov qword [rdx + 8], rax
mov rax, rdx
jmp 0x1403066f0