Function at 0x14022fb40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
mov rsi, qword [rdx]
xor r10d, r10d
movsxd r14, dword [rax + 0x14]
mov r9, qword [rax]
or ebp, 0xffffffff
mov rbx, rcx
mov dword [rcx + 0x1494], r10d
mov dword [rcx + 0x1498], 0x23d
mov r15, rdx
mov r8d, r10d
mov ecx, r10d
test r14d, r14d
jle 0x14022fbce
cmp word [rsi + rcx*4], r10w
je 0x14022fbbd
inc dword [rbx + 0x1494]
movsxd rax, dword [rbx + 0x1494]
mov ebp, r8d
mov dword [rbx + rax*4 + 0xba0], r8d
mov byte [rcx + rbx + 0x149c], r10b
jmp 0x14022fbc3
mov word [rsi + rcx*4 + 2], r10w
inc rcx
inc r8d
cmp rcx, r14
jl 0x14022fb94
cmp dword [rbx + 0x1494], 2
mov r12d, 1
jge 0x14022fc32
nop dword [rax]
cmp ebp, 2
jge 0x14022fbeb
inc ebp
mov ecx, ebp
jmp 0x14022fbee
mov ecx, r10d
inc dword [rbx + 0x1494]
movsxd rax, dword [rbx + 0x1494]
mov dword [rbx + rax*4 + 0xba0], ecx
movsxd rax, ecx
mov word [rsi + rax*4], r12w
mov byte [rax + rbx + 0x149c], r10b
dec dword [rbx + 0x16f8]
test r9, r9
je 0x14022fc29
movzx eax, word [r9 + rax*4 + 2]
sub dword [rbx + 0x16fc], eax
cmp dword [rbx + 0x1494], 2
jl 0x14022fbe0
mov dword [rdx + 8], ebp
mov eax, dword [rbx + 0x1494]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp eax, r12d
jl 0x14022fc70
nop word [rax + rax]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.140230630
dec edi
cmp edi, r12d
jge 0x14022fc50
nop word [rax + rax]
movsxd rax, dword [rbx + 0x1494]
movsxd rdi, dword [rbx + 0xba4]
mov r8d, r12d
mov ecx, dword [rbx + rax*4 + 0xba0]
mov rdx, rsi
mov dword [rbx + 0xba4], ecx
dec dword [rbx + 0x1494]
mov rcx, rbx
call fcn.140230630
movsxd rcx, dword [rbx + 0xba4]
dec dword [rbx + 0x1498]
movsxd rax, dword [rbx + 0x1498]
mov rdx, rcx
lea r8, [rsi + rdi*4]
mov dword [rbx + rax*4 + 0xba0], edi
dec dword [rbx + 0x1498]
movsxd rax, dword [rbx + 0x1498]
mov dword [rbx + rax*4 + 0xba0], ecx
movzx eax, word [rsi + rdx*4]
movsxd r9, r14d
add ax, word [r8]
mov rcx, rdi
mov word [rsi + r9*4], ax
movzx eax, byte [rdi + rbx + 0x149c]
movzx ecx, byte [rdx + rbx + 0x149c]
cmp al, cl
movzx eax, al
jae 0x14022fd02
movzx eax, cl
inc al
mov rcx, rbx
mov byte [r9 + rbx + 0x149c], al
mov word [rsi + rdx*4 + 2], r14w
mov word [r8 + 2], r14w
mov dword [rbx + 0xba4], r14d
mov r8d, r12d
mov rdx, rsi
inc r14d
call fcn.140230630
cmp dword [rbx + 0x1494], 2
jge 0x14022fc70
dec dword [rbx + 0x1498]
movsxd r8, dword [rbx + 0x1498]
mov eax, dword [rbx + 0xba4]
mov rdx, r15
mov dword [rbx + r8*4 + 0xba0], eax
call fcn.1402302e0
lea r8, [rbx + 0xb80]
mov edx, ebp
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp 0x1402304f0
push rbx
sub rsp, 0x30
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x20], rax
xor ebx, ebx
lea rax, [rsp + 2]
mov r11, rcx
sub r8, rax
movzx r9d, bx
mov r10d, 1
nop dword [rax]
lea rax, [r8 + r10*2]
inc r10
add r9w, word [rsp + rax]
add r9w, r9w
mov word [rsp + r10*2 - 2], r9w
cmp r10, 0xf
jle 0x140230520
mov r9, rbx
movsxd r10, edx
test edx, edx
js 0x140230592
movzx edx, word [r11 + r9*4 + 2]
test edx, edx
je 0x14023058a
lea rcx, [rsp]
movzx r8d, word [rcx + rdx*2]
lea rcx, [rcx + rdx*2]
lea eax, [r8 + 1]
mov word [rcx], ax
mov eax, ebx
nop word [rax + rax]
mov ecx, r8d
dec edx
shr r8d, 1
and ecx, 1
or eax, ecx
add eax, eax
test edx, edx
jg 0x140230570
shr eax, 1
mov word [r11 + r9*4], ax
inc r9
cmp r9, r10
jle 0x140230546
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x30
pop rbx
ret