Function at 0x14001f0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and byte [rdx + 0x401], 0xf6
mov rdi, rdx
and dword [rdx + 0xc], 0xfeffffff
mov rbx, rcx
mov rsi, qword [rdx + 0x390]
mov rbp, qword [0x1400d2e90]
mov qword [rdx + 0x420], 0
mov dword [rdx + 0x430], r8d
test rsi, rsi
je 0x14001f16c
mov rdx, qword [rsi + 0x1b8]
movsxd r8, dword [rsi + 0x1b0]
mov rax, rdx
lea rcx, [rdx + r8*8]
cmp rdx, rcx
jae 0x14001f16c
cmp qword [rax], rdi
je 0x14001f147
add rax, 8
cmp rax, rcx
jb 0x14001f137
jmp 0x14001f16c
sub rax, rdx
sar rax, 3
sub r8, rax
lea rcx, [rdx + rax*8]
lea r8, [r8*8 - 8]
lea rdx, [rcx + 8]
call fcn.1400abed0
dec dword [rsi + 0x1b0]
mov qword [rdi + 0x390], 0
mov qword [rdi + 0x3c0], rdi
mov qword [rdi + 0x3b8], rdi
mov qword [rdi + 0x3b0], rdi
mov qword [rdi + 0x3a8], rdi
mov qword [rdi + 0x3a0], rdi
test dword [rdi + 0xc], 0x800000
je 0x14001f1ca
mov rcx, rdi
nop word [rax + rax]
mov rax, qword [rcx + 0x390]
mov qword [rdi + 0x3c0], rax
mov rcx, rax
test dword [rax + 0xc], 0x800000
jne 0x14001f1b0
movsxd rdx, dword [rbx + 0x30]
xor eax, eax
test edx, edx
jle 0x14001f211
mov r8, qword [rbx + 0x38]
mov rcx, r8
nop dword [rax + rax]
cmp qword [rcx], rdi
je 0x14001f1f1
inc eax
add rcx, 8
cmp eax, edx
jl 0x14001f1e0
jmp 0x14001f211
cdqe
lea rcx, [r8 + rax*8]
mov r8, rdx
sub r8, rax
lea rdx, [rcx + 8]
lea r8, [r8*8 - 8]
call fcn.1400abed0
dec dword [rbx + 0x30]
cmp qword [rbx + 0x90], rdi
jne 0x14001f225
mov qword [rbx + 0x90], 0
or byte [rbx + 0xc9], 2
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001f25a
mov edx, dword [rdi + 0x90]
call fcn.140049610
mov eax, dword [rbx + 0x10]
shr eax, 0xb
not eax
and eax, 1
inc eax
cmp dword [rbx + 0x30], eax
jge 0x14001f25a
mov rcx, rbx
call fcn.140021d00
mov edx, dword [rbx + 0x30]
mov r8d, edx
test edx, edx
jne 0x14001f2a1
mov r9d, dword [rbx + 0x10]
mov eax, r9d
shr eax, 0xb
test al, 1
jne 0x14001f306
shr r9d, 0xa
test r9b, 1
jne 0x14001f306
mov eax, dword [rbx]
cmp dword [rdi + 0x430], eax
je 0x14001f306
mov r8b, 1
mov rdx, rbx
mov rcx, rbp
call fcn.14001d7e0
jmp 0x14001f378
cmp edx, 1
jne 0x14001f306
mov eax, dword [rbx + 0x10]
shr eax, 0xb
test dl, al
jne 0x14001f306
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x14001f306
cmp byte [rcx + 0xca], 0
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
je 0x14001f2ee
cmp qword [rbx + 0x18], 0
jne 0x14001f2ee
mov rax, qword [rcx + 0x30]
mov qword [rax + 0x88], rdx
mov rax, qword [rbx + 0x88]
mov rcx, qword [rax + 0x30]
mov eax, dword [rdx + 8]
mov dword [rcx], eax
mov rax, qword [rbx + 0x88]
movzx ecx, byte [rax + 0xce]
mov byte [rdx + 0xce], cl
mov r8d, dword [rbx + 0x30]
mov ecx, dword [rbx + 0x10]
mov eax, ecx
shr eax, 0xb
shr ecx, 0xa
cmp qword [rbx + 0x18], 0
movzx eax, al
movzx r9d, cl
cmovne r9d, eax
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14001f337
test byte [rax + 0xc8], 1
je 0x14001f337
mov al, 1
jmp 0x14001f339
xor al, al
movzx edx, al
test r8d, r8d
mov eax, 1
cmovg edx, eax
mov rax, qword [rbx + 0x28]
or dl, r9b
test rax, rax
je 0x14001f360
test byte [rax + 0xc8], 1
je 0x14001f360
mov cl, 1
jmp 0x14001f362
xor cl, cl
movzx eax, byte [rbx + 0xc8]
or cl, dl
and cl, 1
and al, 0xfe
xor cl, al
mov byte [rbx + 0xc8], cl
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret