Function at 0x1401f4c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 0xc], 7
je 0x1401f4cab
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.140204b10
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 0xc], 7
je 0x1401f4ce0
lea r9, [0x14045e6c0]
mov r8d, 0xc31
lea rdx, [0x14045e720]
lea rcx, str.___func___tt___LUA_TFUNCTION_
call fcn.140059d40
test eax, eax
je 0x1401f4ce0
int3
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x38]
cmp qword [rax + 0x20], rcx
jne 0x1401f4d1e
mov rcx, qword [rsp + 0xf0]
call fcn.1401a7d50
mov qword [rsp + 0x78], rax
jmp 0x1401f4d4e
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x20]
add rax, 0x28
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xf8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xf8]
add rax, 0x10
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 5]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], 0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x100]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x28]
sub rax, rcx
mov rcx, qword [rsp + 0x38]
movzx ecx, byte [rcx + 5]
imul ecx, ecx, 0x10
movsxd rcx, ecx
cmp rax, rcx
jg 0x1401f4e22
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 5]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.1401a7e20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x28]
cmp qword [rax + 0x10], rcx
jbe 0x1401f4e60
lea r9, [0x14045e810]
mov r8d, 0xc3f
lea rdx, [0x14045e820]
lea rcx, [0x14045e870]
call fcn.140059d40
test eax, eax
je 0x1401f4e60
int3
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 3]
test eax, eax
jne 0x1401f4f5f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 4]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x48], rax
jae 0x1401f4edc
mov rax, qword [rsp + 0x48]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x48], rax
jmp 0x1401f4eb1
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 5]
test eax, eax
je 0x1401f4ef8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
jmp 0x1401f4f09
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
je 0x1401f4f53
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x28], 0
je 0x1401f4f53
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], 4
xor eax, eax
jmp 0x1401f5198
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xf0]
call qword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1401f4fa4
mov eax, 2
jmp 0x1401f5198
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
sub rax, 0x28
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x20], eax
jmp 0x1401f5028
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401f5122
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x60], rax
jae 0x1401f5122
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0xc8]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0xc], 5
jl 0x1401f511d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x58]
cmp dword [rcx + 0xc], eax
jne 0x1401f50f6
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
movzx eax, byte [rax + 1]
and eax, 0xb
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x18]
movzx ecx, byte [rcx + 0x20]
xor ecx, 3
and ecx, 3
cmp eax, ecx
jne 0x1401f511d
lea r9, str.luau_precall
mov r8d, 0xc6a
lea rdx, [0x14045e960]
lea rcx, [0x14045e9c0]
call fcn.140059d40
test eax, eax
je 0x1401f511d
int3
jmp 0x1401f501e
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x68], 0
jle 0x1401f5157
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x30], rax
jmp 0x1401f5122
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
mov eax, 1
add rsp, 0xd8
pop rdi
pop rsi
ret