Function at 0x140098420
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 0x140098446
jmp 0x1400986ef
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 0x140098493
lea r9, [0x1402970b8]
mov r8d, 0x9e
lea rdx, [0x140297140]
lea rcx, str._n_____from__top___from__base_
call fcn.14002e330
test eax, eax
je 0x140098493
int3
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 0x18], rcx
je 0x1400984ce
lea r9, [0x140297188]
mov r8d, 0x9f
lea rdx, [0x140297210]
lea rcx, [0x1402970c8]
call fcn.14002e330
test eax, eax
je 0x1400984ce
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 0x14009851f
lea r9, [0x140297258]
mov r8d, 0xa0
lea rdx, [0x1402972e0]
lea rcx, str.to__ci__top___to__top___n
call fcn.14002e330
test eax, eax
je 0x14009851f
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
cmp eax, 5
jge 0x140098553
lea r9, [0x140297328]
mov r8d, 0xa1
lea rdx, [0x1402973b0]
lea rcx, [0x1402970e8]
call fcn.14002e330
test eax, eax
je 0x140098553
int3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x1400985b9
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 0x1400985a5
lea r9, [0x1402973f8]
mov r8d, 0xa1
lea rdx, [0x140297480]
lea rcx, [0x1402971b8]
call fcn.14002e330
test eax, eax
je 0x1400985a5
int3
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
call fcn.1400aa550
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 0x1400985fb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
jge 0x1400986c1
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 0x1400986bc
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + 0xc], eax
jne 0x140098695
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 0x1400986bc
lea r9, str.lua_xmove
mov r8d, 0xa6
lea rdx, [0x140297530]
lea rcx, [0x1402975a0]
call fcn.14002e330
test eax, eax
je 0x1400986bc
int3
jmp 0x1400985f1
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