Function at 0x14004a250
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 r12
push r13
push r14
push r15
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov r12d, r14d
mov r15, rdx
mov rbx, rcx
movabs r13, 0x47ae147ae147ae15
nop word [rax + rax]
mov edx, 0x20
mov rcx, rdi
call fcn.1400098d0
imul rax, qword [rbx + 0x18]
mov rbp, qword [rbx + 0x38]
mov r10, qword [rbx + 0x28]
mov rcx, rax
mov esi, dword [rbx + 0x48]
shr rcx, 0x21
xor rax, rcx
mov ecx, dword [rbx + 0x4c]
mov r8, rax
shr rax, 5
and r8d, 0x1f
and rax, rbp
shr r8, cl
add r8d, esi
movzx ecx, byte [r10 + rax]
cmp r8d, ecx
jae 0x14004a2f1
nop dword [rax + rax]
movzx ecx, byte [r10 + rax + 1]
inc rax
add r8d, esi
cmp r8d, ecx
jb 0x14004a2e0
movzx ecx, byte [r10 + rax]
cmp r8d, ecx
jne 0x14004a345
mov rcx, qword [rbx + 0x20]
mov r11, qword [rdi]
lea r9, [rcx + rax*8]
mov rdx, qword [r9]
cmp r11, qword [rdx]
jne 0x14004a330
mov rcx, qword [rdx + 8]
cmp qword [rdi + 8], rcx
jne 0x14004a330
mov rcx, qword [rdx + 0x10]
cmp qword [rdi + 0x10], rcx
jne 0x14004a330
mov rcx, qword [rdx + 0x18]
cmp qword [rdi + 0x18], rcx
je 0x14004a453
movzx ecx, byte [r10 + rax + 1]
inc rax
add r9, 8
add r8d, esi
cmp r8d, ecx
je 0x14004a306
mov r9, qword [rbx + 0x30]
cmp r9, qword [rbx + 0x40]
jb 0x14004a463
test rbp, rbp
jne 0x14004a368
lea edx, [rbp + 8]
mov rcx, rbx
call fcn.1400140a0
jmp 0x14004a43b
lea rcx, [rbp + 1]
movabs r11, 0x28f5c28f5c28f5c
mov rax, r13
cmp rcx, r11
ja 0x14004a398
lea rcx, [rcx + rcx*4]
shl rcx, 4
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
jmp 0x14004a3b0
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
lea rcx, [rcx + rcx*4]
shl rcx, 4
cmp r9, rcx
jae 0x14004a3c1
mov rcx, rbx
call fcn.1400141c0
test al, al
jne 0x14004a43b
mov r8, qword [rbx + 0x38]
mov rax, r13
lea r9, [r8 + 1]
cmp r9, r11
ja 0x14004a3eb
lea rcx, [r9 + r9*4]
shl rcx, 4
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
jmp 0x14004a406
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
lea rcx, [rax + rax*4]
shl rcx, 4
mov rax, qword [rbx + 0x30]
add rax, rax
cmp rax, rcx
jae 0x14004a425
movabs rax, 0xc4ceb9fe1a85ec54
mov r8b, 1
add qword [rbx + 0x18], rax
jmp 0x14004a430
lea r9, [r8*2 + 2]
xor r8b, r8b
mov rdx, r9
mov rcx, rbx
call fcn.140046eb0
inc r12d
cmp r12d, 0x100
jl 0x14004a290
mov qword [r15], r14
jmp 0x14004a517
mov qword [r15], rax
mov dword [r15 + 8], 1
jmp 0x14004a51b
lea ecx, [rsi + r8]
mov r11, rax
cmp ecx, 0xff
jbe 0x14004a476
mov qword [rbx + 0x40], r14
cmp byte [r10 + rax], r14b
je 0x14004a4fd
mov r9, rax
inc rax
cmp byte [r10 + rax], r14b
jne 0x14004a480
cmp rax, r11
je 0x14004a4fd
mov rcx, qword [rbx + 0x20]
lea rdx, [rcx + rax*8]
mov rcx, qword [rcx + rax*8 - 8]
mov qword [rdx], rcx
cmp r9, r11
je 0x14004a4c7
nop word [rax + rax]
mov rcx, qword [rbx + 0x20]
lea rdx, [rcx + r9*8]
dec r9
mov rcx, qword [rdx - 8]
mov qword [rdx], rcx
cmp r9, r11
jne 0x14004a4b0
mov r9, qword [rbx + 0x28]
mov rdx, rax
nop
movzx ecx, byte [r9 + rdx - 1]
add cl, byte [rbx + 0x48]
mov byte [r9 + rdx], cl
mov r9, qword [rbx + 0x28]
movzx ecx, byte [r9 + rdx]
add ecx, dword [rbx + 0x48]
cmp ecx, 0xff
jbe 0x14004a4f5
mov qword [rbx + 0x40], r14
dec rdx
cmp rdx, r11
jne 0x14004a4d0
mov rcx, qword [rbx + 0x28]
mov qword [r15], r11
mov byte [r11 + rcx], r8b
inc qword [rbx + 0x30]
cmp rax, r11
setne r14b
add r14d, 2
mov dword [r15 + 8], r14d
mov rbx, qword [rsp + 0x50]
mov rax, r15
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret