Function at 0x180010c70
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 0x180010dc1
nop dword [rax]
add rsi, rsi
imul rcx, rsi, 0xd0
add rcx, rbp
movzx eax, byte [rcx + 0x1a0]
cmp al, byte [rcx + 0xd0]
je 0x180010cd3
cmp al, 0x64
sete al
jmp 0x180010d27
lea rdx, [rcx + 0x180]
add rcx, 0x250
cmp qword [rdx + 0x18], 0xf
mov rdi, qword [rdx + 0x10]
jbe 0x180010cef
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0xf
mov rbx, qword [rcx + 0x10]
jbe 0x180010cfd
mov rcx, qword [rcx]
cmp rdi, rbx
mov r8, rbx
cmovb r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180010d24
cmp rbx, rdi
jae 0x180010d1c
mov eax, 0xffffffff
jmp 0x180010d24
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 0x180010cb0
cmp rsi, r15
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
jne 0x180010e6a
test r13b, 1
jne 0x180010e6a
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 0x180011780
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 0x1800118da
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 0x1800117e3
cmp r15b, 0x64
sete al
jmp 0x180011842
cmp qword [rdi + 0xc8], 0xf
lea rcx, [r14 + 0xb0]
mov rsi, qword [rdi + 0xc0]
lea rdx, [rdi + 0xb0]
jbe 0x180011805
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0xf
mov rbx, qword [rcx + 0x10]
jbe 0x180011813
mov rcx, qword [rcx]
cmp rsi, rbx
mov r8, rbx
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001183a
cmp rbx, rsi
jae 0x180011832
mov eax, 0xffffffff
jmp 0x18001183a
xor eax, eax
cmp rbx, rsi
seta al
mov rsi, qword [rsp + 0x60]
shr eax, 0x1f
test al, al
je 0x1800118cb
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 0x1800117c0
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