Function at 0x1400040f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140075078]
xor rax, rsp
mov qword [rbp - 8], rax
mov r9, r8
mov rdi, rdx
movsxd r8, dword [r8 + 0x48]
cmp r8d, 0x1a
ja case.0x140004145.0
lea rdx, [0x140000000]
movzx eax, byte [rdx + r8 + 0x443c]
mov ecx, dword [rdx + rax*4 + 0x4424]
add rcx, rdx
jmp rcx
mov r10, qword [r9]
movsxd rcx, dword [rdi + 0x18]
lea eax, [rcx + 1]
mov dword [rdi + 0x18], eax
mov rax, qword [rdi]
mov qword [rax + rcx*8 + 8], r8
mov qword [rbp - 0x30], r10
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140004179
mov qword [rdx], r10
add qword [rdi + 8], 8
mov al, 1
jmp 0x1400043ff
lea r8, [rbp - 0x30]
mov rcx, rdi
int3
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], r12b
movups xmm1, xmmword [rbp - 0x28]
movups xmm2, xmmword [rbp - 0x18]
movups xmm0, xmmword [r9 + 8]
movups xmmword [rbp - 0x28], xmm0
movups xmm3, xmmword [r9 + 0x18]
movups xmmword [rbp - 0x18], xmm3
movups xmmword [r9 + 8], xmm1
movups xmmword [r9 + 0x18], xmm2
movsxd rcx, dword [rdi + 0x18]
lea eax, [rcx + 1]
mov dword [rdi + 0x18], eax
mov rax, qword [rdi]
lea rdx, [rax + rcx*8]
mov rax, r8
bts rax, 0x1e
mov qword [rdx + 8], rax
movq rsi, xmm3
mov qword [rbp - 0x30], rsi
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400041fd
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x140004209
lea r8, [rbp - 0x30]
mov rcx, rdi
int3
mov r15, qword [rbp - 0x10]
mov r14, qword [rbp - 0x28]
test rsi, rsi
je 0x140004278
mov rbx, r12
nop dword [rax]
mov rdx, r12
mov ecx, r12d
cmp rbx, rsi
je 0x14000424c
lea rax, [rbp - 0x28]
cmp r15, 0x10
cmovae rax, r14
movzx eax, byte [rax + rbx]
shl rax, cl
or rdx, rax
inc rbx
add ecx, 8
cmp ecx, 0x40
jne 0x140004226
mov qword [rbp - 0x30], rdx
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x140004264
mov qword [rax], rdx
add qword [rdi + 8], 8
jmp 0x140004273
lea r8, [rbp - 0x30]
mov rdx, rax
mov rcx, rdi
int3
cmp rbx, rsi
jne 0x140004220
cmp r15, 0x10
jb 0x1400042af
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400042a7
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043e9
mov rcx, r14
call fcn.14004e6b4
mov al, 1
jmp 0x1400043ff
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
movups xmm1, xmmword [rbp - 0x28]
movups xmm2, xmmword [rbp - 0x18]
movups xmm0, xmmword [r9 + 0x28]
movups xmmword [rbp - 0x28], xmm0
movups xmm3, xmmword [r9 + 0x38]
movups xmmword [rbp - 0x18], xmm3
movups xmmword [r9 + 0x28], xmm1
movups xmmword [r9 + 0x38], xmm2
movsxd rcx, dword [rdi + 0x18]
lea eax, [rcx + 1]
mov dword [rdi + 0x18], eax
mov rax, qword [rdi]
lea rdx, [rax + rcx*8]
mov rax, r8
or rax, 0xffffffff80000000
mov qword [rdx + 8], rax
movq rsi, xmm3
mov qword [rbp - 0x30], rsi
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140004329
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x140004335
lea r8, [rbp - 0x30]
mov rcx, rdi
int3
mov r15, qword [rbp - 0x10]
mov r14, qword [rbp - 0x28]
test rsi, rsi
je 0x1400043ae
mov rbx, r12
mov r8, r12
mov ecx, r12d
nop dword [rax + rax]
cmp rbx, rsi
je 0x140004385
lea rax, [rbp - 0x28]
cmp r15, 8
cmovae rax, r14
movzx eax, word [rax + rbx*2]
mov edx, eax
and rdx, 0xffffffffffffff00
movzx eax, al
or rdx, rax
shl rdx, cl
or r8, rdx
inc rbx
add ecx, 0x10
cmp ecx, 0x40
jne 0x140004350
mov qword [rbp - 0x30], r8
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14000439d
mov qword [rdx], r8
add qword [rdi + 8], 8
jmp 0x1400043a9
lea r8, [rbp - 0x30]
mov rcx, rdi
int3
cmp rbx, rsi
jne 0x140004345
cmp r15, 8
jb 0x1400042af
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400042a7
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400042a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [r9]
mov rcx, rdi
call fcn.1400026f0
jmp 0x1400043ff
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14004eb00
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret