Function at 0x140191200
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 0x140191226
jmp 0x1401914cf
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 0x140191273
lea r9, [0x1403e8c78]
mov r8d, 0x9e
lea rdx, [0x1403e8d00]
lea rcx, str._n_____from__top___from__base_
call fcn.140057ff0
test eax, eax
je 0x140191273
int3
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 0x18], rcx
je 0x1401912ae
lea r9, [0x1403e8d48]
mov r8d, 0x9f
lea rdx, [0x1403e8dd0]
lea rcx, [0x1403e8c88]
call fcn.140057ff0
test eax, eax
je 0x1401912ae
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 0x1401912ff
lea r9, [0x1403e8e18]
mov r8d, 0xa0
lea rdx, [0x1403e8ea0]
lea rcx, str.to__ci__top___to__top___n
call fcn.140057ff0
test eax, eax
je 0x1401912ff
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
cmp eax, 5
jge 0x140191333
lea r9, [0x1403e8ee8]
mov r8d, 0xa1
lea rdx, [0x1403e8f70]
lea rcx, [0x1403e8ca8]
call fcn.140057ff0
test eax, eax
je 0x140191333
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x140191399
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 0x140191385
lea r9, [0x1403e8fb8]
mov r8d, 0xa1
lea rdx, [0x1403e9040]
lea rcx, [0x1403e8d78]
call fcn.140057ff0
test eax, eax
je 0x140191385
int3
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
call fcn.1401a3580
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 0x1401913db
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
jge 0x1401914a1
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 0x14019149c
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + 0xc], eax
jne 0x140191475
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 0x14019149c
lea r9, str.lua_xmove
mov r8d, 0xa6
lea rdx, [0x1403e90f0]
lea rcx, [0x1403e9160]
call fcn.140057ff0
test eax, eax
je 0x14019149c
int3
jmp 0x1401913d1
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