Function at 0x1400808e0
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 0x140080906
jmp 0x140080baf
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 0x140080953
lea r9, [0x140256318]
mov r8d, 0x9e
lea rdx, [0x1402563a0]
lea rcx, str._n_____from__top___from__base_
call fcn.140019010
test eax, eax
je 0x140080953
int3
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 0x18], rcx
je 0x14008098e
lea r9, [0x1402563e8]
mov r8d, 0x9f
lea rdx, [0x140256470]
lea rcx, [0x140256328]
call fcn.140019010
test eax, eax
je 0x14008098e
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 0x1400809df
lea r9, [0x1402564b8]
mov r8d, 0xa0
lea rdx, [0x140256540]
lea rcx, str.to__ci__top___to__top___n
call fcn.140019010
test eax, eax
je 0x1400809df
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
cmp eax, 5
jge 0x140080a13
lea r9, [0x140256588]
mov r8d, 0xa1
lea rdx, [0x140256610]
lea rcx, [0x140256348]
call fcn.140019010
test eax, eax
je 0x140080a13
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x140080a79
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 0x140080a65
lea r9, [0x140256658]
mov r8d, 0xa1
lea rdx, [0x1402566e0]
lea rcx, [0x140256418]
call fcn.140019010
test eax, eax
je 0x140080a65
int3
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
call fcn.140092a10
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 0x140080abb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
jge 0x140080b81
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, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 5
jl 0x140080b7c
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + 0xc], eax
jne 0x140080b55
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 0x140080b7c
lea r9, str.lua_xmove
mov r8d, 0xa6
lea rdx, [0x140256790]
lea rcx, [0x140256800]
call fcn.140019010
test eax, eax
je 0x140080b7c
int3
jmp 0x140080ab1
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