Function at 0x1800101a0
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 0x1800102d0
nop dword [rax]
add rsi, rsi
imul rax, rsi, 0xd0
movzx ecx, byte [rax + rbp + 0x1a0]
cmp cl, byte [rax + rbp + 0xd0]
je 0x180010203
cmp cl, 0x64
sete cl
jmp 0x180010236
lea rdx, [rbp + 0xf8]
add rdx, rax
cmp qword [rdx + 0x18], 0xf
jbe 0x180010217
mov rdx, qword [rdx]
lea rcx, [rbp + 0x1c8]
add rcx, rax
cmp qword [rcx + 0x18], 0xf
jbe 0x18001022b
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, eax
shr ecx, 0x1f
movzx eax, cl
inc rsi
xor rax, 1
add rsi, rax
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 0x1800101e0
cmp rsi, r15
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
jne 0x180010379
test r13b, 1
jne 0x180010379
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 0x1800110b0
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rbp, rcx
cmp r8, rdx
jge 0x1800111ba
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
nop dword [rax]
lea rsi, [rbx - 1]
sar rsi, 1
imul rdi, rsi, 0xd0
add rdi, rbp
movzx eax, byte [rdi]
cmp al, byte [r14]
je 0x180011100
cmp al, 0x64
sete al
jmp 0x180011125
cmp qword [r14 + 0x40], 0xf
lea rdx, [r14 + 0x28]
jbe 0x18001110e
mov rdx, qword [rdx]
cmp qword [rdi + 0x40], 0xf
lea rcx, [rdi + 0x28]
jbe 0x18001111c
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
shr eax, 0x1f
test al, al
je 0x1800111b0
movzx eax, byte [rdi]
lea rdx, [rdi + 8]
imul rbx, rbx, 0xd0
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 rbx, rsi
cmp r15, rsi
jl 0x1800110e0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
movzx eax, byte [r14]
lea rdx, [r14 + 8]
imul rbx, rbx, 0xd0
add rbx, rbp
lea rcx, [rbx + 8]
mov byte [rbx], al
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]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbp
jmp fcn.180008e50