Function at 0x1401ddbd0
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 0x1401ddc0b
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.1401eda70
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 0xc], 7
je 0x1401ddc40
lea r9, [0x14042deb0]
mov r8d, 0xc31
lea rdx, [0x14042dec0]
lea rcx, str.___func___tt___LUA_TFUNCTION_
call fcn.140048260
test eax, eax
je 0x1401ddc40
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 0x1401ddc7e
mov rcx, qword [rsp + 0xf0]
call fcn.140190cb0
mov qword [rsp + 0x78], rax
jmp 0x1401ddcae
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 0x1401ddd82
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 5]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.140190d80
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x28]
cmp qword [rax + 0x10], rcx
jbe 0x1401dddc0
lea r9, [0x14042df10]
mov r8d, 0xc3f
lea rdx, [0x14042df20]
lea rcx, [0x14042df70]
call fcn.140048260
test eax, eax
je 0x1401dddc0
int3
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 3]
test eax, eax
jne 0x1401ddebf
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 0x1401dde3c
mov rax, qword [rsp + 0x48]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x48], rax
jmp 0x1401dde11
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 5]
test eax, eax
je 0x1401dde58
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
jmp 0x1401dde69
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 0x1401ddeb3
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x28], 0
je 0x1401ddeb3
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], 4
xor eax, eax
jmp 0x1401de0f8
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 0x1401ddf04
mov eax, 2
jmp 0x1401de0f8
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 0x1401ddf88
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401de082
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x60], rax
jae 0x1401de082
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 0x1401de07d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x58]
cmp dword [rcx + 0xc], eax
jne 0x1401de056
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 0x1401de07d
lea r9, str.luau_precall
mov r8d, 0xc6a
lea rdx, [0x14042dfa0]
lea rcx, [0x14042dff0]
call fcn.140048260
test eax, eax
je 0x1401de07d
int3
jmp 0x1401ddf7e
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 0x1401de0b7
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x30], rax
jmp 0x1401de082
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