Function at 0x7ff69899d1b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x20
mov qword [rsp + 0x30], rbx
mov rbp, rdx
mov qword [rsp + 0x40], rdi
mov rbx, rcx
mov rcx, qword [rdx + 0x448]
movzx edi, r8b
mov qword [rsp + 0x48], r14
test rcx, rcx
je 0x7ff69899d1e3
xor r8d, r8d
call fcn.7ff69899ec30
cmp qword [rbx + 0x80], 0
jne 0x7ff69899d21c
cmp dword [rbx + 0x28], 1
jne 0x7ff69899d21c
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0xd0], 0
jne 0x7ff69899d21c
cmp byte [rcx + 0xcf], 0
mov byte [rcx + 0xd6], 1
sete al
inc al
mov byte [rcx + 0xf0], al
mov r8d, dword [rbx + 0x28]
mov ecx, dword [rbx + 0x2c]
cmp r8d, ecx
jne 0x7ff69899d252
inc r8d
test ecx, ecx
je 0x7ff69899d23a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x7ff69899d23f
mov eax, 8
cmp eax, r8d
lea rcx, [rbx + 0x28]
cmovg r8d, eax
mov edx, r8d
call fcn.7ff6989b76d0
movsxd rcx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov qword [rax + rcx*8], rbp
inc dword [rbx + 0x28]
or byte [rbx + 0xbc], 0x80
mov qword [rbp + 0x448], rbx
mov eax, dword [rbx]
mov dword [rbp + 0x458], eax
cmp dword [rbx + 0x28], 1
movzx eax, byte [rbp + 0x429]
setg cl
and al, 0xfe
or cl, al
and cl, 0xfb
mov byte [rbp + 0x429], cl
cmp qword [rbx + 0x80], 0
jne 0x7ff69899d2e8
cmp qword [rbx + 0x10], 0
jne 0x7ff69899d2e8
test dword [rbx + 8], 0x400
jne 0x7ff69899d2e8
mov eax, dword [rbx + 0xb8]
test al, 7
jne 0x7ff69899d2c2
and eax, 0xfffffffa
or eax, 2
mov dword [rbx + 0xb8], eax
test al, 0x38
jne 0x7ff69899d2d2
and eax, 0xffffffd7
or eax, 0x10
mov dword [rbx + 0xb8], eax
test eax, 0x1c0
jne 0x7ff69899d2e8
and eax, 0xfffffebf
bts eax, 7
mov dword [rbx + 0xb8], eax
test dil, dil
je 0x7ff69899d368
cmp qword [rbx + 0x38], 0
jne 0x7ff69899d357
mov rcx, rbx
call fcn.7ff69899d140
mov rcx, qword [rbx + 0x38]
xor edi, edi
mov eax, dword [rbx + 0xb0]
mov dword [rcx + 0x1c], eax
mov rcx, qword [rbx + 0x38]
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x18], eax
mov eax, dword [rbx + 0x28]
dec eax
test eax, eax
jle 0x7ff69899d357
mov qword [rsp + 0x38], rsi
mov esi, edi
nop word [rax + rax]
mov r8, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rbx + 0x38]
mov r8, qword [rsi + r8]
call fcn.7ff6989e2aa0
mov eax, dword [rbx + 0x28]
lea rsi, [rsi + 8]
dec eax
inc edi
cmp edi, eax
jl 0x7ff69899d330
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x38]
mov r8, rbp
mov edx, 0x400000
call fcn.7ff6989e2aa0
mov ecx, dword [rbx + 8]
mov eax, ecx
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
shr eax, 0xb
shr ecx, 0xa
cmp qword [rbx + 0x10], 0
movzx eax, al
movzx edx, cl
cmovne edx, eax
cmp dword [rbx + 0x28], 0
setg al
or dl, al
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x7ff69899d3a8
test byte [rax + 0xbc], 1
je 0x7ff69899d3a8
mov dl, 1
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x7ff69899d3be
test byte [rax + 0xbc], 1
je 0x7ff69899d3be
mov cl, 1
jmp 0x7ff69899d3c0
xor cl, cl
movzx eax, byte [rbx + 0xbc]
or cl, dl
mov r8, qword [rbx + 0x80]
and cl, 1
and al, 0xfe
xor cl, al
mov byte [rbx + 0xbc], cl
mov rbx, qword [rsp + 0x30]
test r8, r8
je 0x7ff69899d3fb
mov edx, dword [rbp + 0xc]
mov rcx, rbp
bts edx, 0x18
add rsp, 0x20
pop rbp
jmp fcn.7ff6989b6550
add rsp, 0x20
pop rbp
ret