Function at 0x1401992c0
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, 0x58
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x70], rax
jne 0x1401992e6
jmp 0x14019958f
movsxd rax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rcx + 8]
sub rcx, rdx
sar rcx, 4
cmp rax, rcx
jle 0x140199333
lea r9, [0x14040dc28]
mov r8d, 0x9e
lea rdx, [0x14040dcb0]
lea rcx, str._n_____from__top___from__base_
call fcn.140059d40
test eax, eax
je 0x140199333
int3
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 0x18], rcx
je 0x14019936e
lea r9, [0x14040dcf8]
mov r8d, 0x9f
lea rdx, [0x14040dd80]
lea rcx, [0x14040dc38]
call fcn.140059d40
test eax, eax
je 0x14019936e
int3
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x10]
sub rax, rcx
sar rax, 4
movsxd rcx, dword [rsp + 0x80]
cmp rax, rcx
jge 0x1401993bf
lea r9, [0x14040ddc8]
mov r8d, 0xa0
lea rdx, [0x14040de50]
lea rcx, str.to__ci__top___to__top___n
call fcn.140059d40
test eax, eax
je 0x1401993bf
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
cmp eax, 5
jge 0x1401993f3
lea r9, [0x14040de98]
mov r8d, 0xa1
lea rdx, [0x14040df20]
lea rcx, [0x14040dc58]
call fcn.140059d40
test eax, eax
je 0x1401993f3
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x140199459
mov rax, qword [rsp + 0x78]
add rax, 0x68
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
cmp eax, 5
jge 0x140199445
lea r9, [0x14040df68]
mov r8d, 0xa1
lea rdx, [0x14040dff0]
lea rcx, [0x14040dd28]
call fcn.140059d40
test eax, eax
je 0x140199445
int3
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
call fcn.1401ab650
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x14019949b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
jge 0x140199561
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x48]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 5
jl 0x14019955c
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + 0xc], eax
jne 0x140199535
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
movzx eax, byte [rax + 1]
and eax, 0xb
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x18]
movzx ecx, byte [rcx + 0x20]
xor ecx, 3
and ecx, 3
cmp eax, ecx
jne 0x14019955c
lea r9, str.lua_xmove
mov r8d, 0xa6
lea rdx, [0x14040e0a0]
lea rcx, [0x14040e110]
call fcn.140059d40
test eax, eax
je 0x14019955c
int3
jmp 0x140199491
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 8], rax
add rsp, 0x58
pop rdi
pop rsi
ret