Function at 0x1401ecba0
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 0x1401ecbdb
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.1401fca40
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 0xc], 7
je 0x1401ecc10
lea r9, [0x140439710]
mov r8d, 0xc31
lea rdx, [0x140439770]
lea rcx, str.___func___tt___LUA_TFUNCTION_
call fcn.140057ff0
test eax, eax
je 0x1401ecc10
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 0x1401ecc4e
mov rcx, qword [rsp + 0xf0]
call fcn.14019fc80
mov qword [rsp + 0x78], rax
jmp 0x1401ecc7e
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 0x1401ecd52
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 5]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.14019fd50
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x28]
cmp qword [rax + 0x10], rcx
jbe 0x1401ecd90
lea r9, [0x140439860]
mov r8d, 0xc3f
lea rdx, [0x140439870]
lea rcx, [0x1404398c0]
call fcn.140057ff0
test eax, eax
je 0x1401ecd90
int3
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 3]
test eax, eax
jne 0x1401ece8f
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 0x1401ece0c
mov rax, qword [rsp + 0x48]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x48], rax
jmp 0x1401ecde1
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 5]
test eax, eax
je 0x1401ece28
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
jmp 0x1401ece39
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 0x1401ece83
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x28], 0
je 0x1401ece83
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], 4
xor eax, eax
jmp 0x1401ed0c8
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 0x1401eced4
mov eax, 2
jmp 0x1401ed0c8
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 0x1401ecf58
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401ed052
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x60], rax
jae 0x1401ed052
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 0x1401ed04d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x58]
cmp dword [rcx + 0xc], eax
jne 0x1401ed026
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 0x1401ed04d
lea r9, str.luau_precall
mov r8d, 0xc6a
lea rdx, [0x1404399b0]
lea rcx, [0x140439a10]
call fcn.140057ff0
test eax, eax
je 0x1401ed04d
int3
jmp 0x1401ecf4e
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 0x1401ed087
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x30], rax
jmp 0x1401ed052
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