Function at 0x180010e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x38
mov qword [rsp + 0x70], rsi
mov r13, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
lea r15, [r8 - 1]
mov qword [rsp + 0x78], rdx
sar r15, 1
mov rbp, rcx
mov rsi, rdx
cmp rdx, r15
jge 0x180010fe1
nop dword [rax]
add rsi, rsi
imul rdx, rsi, 0xd0
add rdx, rbp
movzx eax, byte [rdx + 0x1a0]
cmp al, byte [rdx + 0xd0]
je 0x180010ef3
cmp al, 0x64
setne al
jmp 0x180010f47
lea rcx, [rdx + 0x180]
add rdx, 0x250
cmp qword [rdx + 0x18], 0xf
mov rdi, qword [rdx + 0x10]
jbe 0x180010f0f
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0xf
mov rbx, qword [rcx + 0x10]
jbe 0x180010f1d
mov rcx, qword [rcx]
cmp rdi, rbx
mov r8, rbx
cmovb r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180010f44
cmp rbx, rdi
jae 0x180010f3c
mov eax, 0xffffffff
jmp 0x180010f44
xor eax, eax
cmp rbx, rdi
seta al
shr eax, 0x1f
movzx ecx, al
xor rcx, 1
inc rcx
add rsi, rcx
imul rdi, rsi, 0xd0
imul rbx, r14, 0xd0
add rdi, rbp
movzx eax, byte [rdi]
lea rdx, [rdi + 8]
add rbx, rbp
lea rcx, [rbx + 8]
mov byte [rbx], al
call fcn.180008e50
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
call fcn.180008e50
lea rdx, [rdi + 0x48]
lea rcx, [rbx + 0x48]
call fcn.180008e50
lea rdx, [rdi + 0x68]
lea rcx, [rbx + 0x68]
call fcn.180008e50
mov rax, qword [rdi + 0x88]
lea rdx, [rdi + 0x90]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x88], rax
call fcn.180008e50
lea rdx, [rdi + 0xb0]
lea rcx, [rbx + 0xb0]
call fcn.180008e50
mov r14, rsi
cmp rsi, r15
jl 0x180010ed0
cmp rsi, r15
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
jne 0x18001108a
test r13b, 1
jne 0x18001108a
imul rbx, r13, 0xd0
imul rdi, r14, 0xd0
add rbx, 0xffffffffffffff30
add rbx, rbp
movzx eax, byte [rbx]
lea rdx, [rbx + 8]
add rdi, rbp
lea rcx, [rdi + 8]
mov byte [rdi], al
call fcn.180008e50
lea rdx, [rbx + 0x28]
lea rcx, [rdi + 0x28]
call fcn.180008e50
lea rdx, [rbx + 0x48]
lea rcx, [rdi + 0x48]
call fcn.180008e50
lea rdx, [rbx + 0x68]
lea rcx, [rdi + 0x68]
call fcn.180008e50
mov rax, qword [rbx + 0x88]
lea rdx, [rbx + 0x90]
lea rcx, [rdi + 0x90]
mov qword [rdi + 0x88], rax
call fcn.180008e50
lea rdx, [rbx + 0xb0]
lea rcx, [rdi + 0xb0]
call fcn.180008e50
lea r14, [r13 - 1]
mov r9, qword [rsp + 0x88]
mov rdx, r14
mov r8, qword [rsp + 0x78]
mov rcx, rbp
add rsp, 0x38
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
jmp 0x180011b00
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, r9
mov rsi, r8
mov r13, rdx
mov r12, rcx
cmp r8, rdx
jge 0x180011c5a
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r15
nop dword [rax]
nop dword [rax + rax]
lea rbp, [r13 - 1]
sar rbp, 1
imul r14, rbp, 0xd0
add r14, r12
movzx r15d, byte [r14]
cmp r15b, byte [rdi]
je 0x180011b63
cmp r15b, 0x64
setne al
jmp 0x180011bc2
lea rdx, [r14 + 0xb0]
cmp qword [rdx + 0x18], 0xf
lea rcx, [rdi + 0xb0]
mov rsi, qword [rdx + 0x10]
jbe 0x180011b7f
mov rdx, qword [rdx]
cmp qword [rdi + 0xc8], 0xf
mov rbx, qword [rdi + 0xc0]
jbe 0x180011b93
mov rcx, qword [rcx]
cmp rsi, rbx
mov r8, rbx
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180011bba
cmp rbx, rsi
jae 0x180011bb2
mov eax, 0xffffffff
jmp 0x180011bba
xor eax, eax
cmp rbx, rsi
seta al
mov rsi, qword [rsp + 0x60]
shr eax, 0x1f
test al, al
je 0x180011c4b
imul rbx, r13, 0xd0
lea rdx, [r14 + 8]
add rbx, r12
lea rcx, [rbx + 8]
mov byte [rbx], r15b
call fcn.180008e50
lea rdx, [r14 + 0x28]
lea rcx, [rbx + 0x28]
call fcn.180008e50
lea rdx, [r14 + 0x48]
lea rcx, [rbx + 0x48]
call fcn.180008e50
lea rdx, [r14 + 0x68]
lea rcx, [rbx + 0x68]
call fcn.180008e50
mov rax, qword [r14 + 0x88]
lea rdx, [r14 + 0x90]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x88], rax
call fcn.180008e50
lea rdx, [r14 + 0xb0]
lea rcx, [rbx + 0xb0]
call fcn.180008e50
mov r13, rbp
cmp rsi, rbp
jl 0x180011b40
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
movzx eax, byte [rdi]
lea rdx, [rdi + 8]
imul rbx, r13, 0xd0
add rbx, r12
lea rcx, [rbx + 8]
mov byte [rbx], al
call fcn.180008e50
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
call fcn.180008e50
lea rdx, [rdi + 0x48]
lea rcx, [rbx + 0x48]
call fcn.180008e50
lea rdx, [rdi + 0x68]
lea rcx, [rbx + 0x68]
call fcn.180008e50
mov rax, qword [rdi + 0x88]
lea rdx, [rdi + 0x90]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x88], rax
call fcn.180008e50
lea rdx, [rdi + 0xb0]
lea rcx, [rbx + 0xb0]
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.180008e50