Function at 0x1401d84c0
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 0x1401d8560
nop
cmp word [rsi + r8*4], bx
je 0x1401d853c
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 0x1401d8542
mov word [rsi + r8*4 + 2], bx
inc r9d
inc r8
cmp r8, rbp
jl 0x1401d8510
mov r8d, dword [rcx + 0x149c]
cmp r8d, 2
jge 0x1401d85ba
nop word [rax + rax]
cmp edi, 2
lea eax, [r8 + 1]
mov dword [rcx + 0x149c], eax
lea edx, [rdi + 1]
movsxd rax, r8d
mov r9d, edx
cmovge edx, ebx
cmovge r9d, edi
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 + 0x16fc]
test r10, r10
je 0x1401d85aa
movzx eax, word [r10 + rax*4 + 2]
sub dword [rcx + 0x1700], eax
mov r8d, dword [rcx + 0x149c]
mov edi, r9d
cmp r8d, 2
jl 0x1401d8560
mov dword [r14 + 8], edi
mov r8d, dword [rcx + 0x149c]
mov eax, r8d
cdq
mov r9d, r8d
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r15d
jl 0x1401d8600
nop word [rax + rax]
mov r8d, ebx
mov rdx, rsi
call fcn.1401d9080
dec ebx
cmp ebx, r15d
jge 0x1401d85e0
mov r8d, dword [rcx + 0x149c]
mov r9d, r8d
nop dword [rax]
movsxd rbx, dword [rcx + 0xbac]
movsxd rax, r8d
mov r8d, r15d
mov edx, dword [rcx + rax*4 + 0xba8]
lea eax, [r9 - 1]
mov dword [rcx + 0xbac], edx
mov rdx, rsi
mov dword [rcx + 0x149c], eax
call fcn.1401d9080
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.1401d9080
mov r8d, dword [rcx + 0x149c]
mov r9d, r8d
cmp r8d, 2
jge 0x1401d8600
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.1401d8c00
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 0x1401d8e10
push rbx
sub rsp, 0x50
mov rax, qword [0x1407ddd00]
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 0x1401d8e40
movsxd r10, edx
test edx, edx
js 0x1401d8e96
movzx edx, word [rbx + r9*4 + 2]
test edx, edx
je 0x1401d8e8e
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.1401d8370
mov word [rbx + r9*4], ax
inc r9
cmp r9, r10
jle 0x1401d8e65
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0x50
pop rbx
ret