Function at 0x1800e5ec9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test r8d, r8d
jle 0x1800e6168
push rbx
push rsi
push rdi
push r14
sub rsp, 0x38
mov rax, qword [0x18025ed68]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov esi, dword [rsp + 0x80]
mov eax, edx
mov qword [rsp + 0x68], rbp
sub eax, esi
mov qword [rsp + 0x70], r12
mov r14d, edx
mov qword [rsp + 0x30], r15
mov rdi, rcx
movsxd rbx, eax
mov qword [rsp + 0x20], 0
movsxd r15, r9d
mov ebp, r8d
nop dword [rax]
nop word [rax + rax]
mov r8, rsi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.18017baa0
xor r9d, r9d
mov eax, esi
sub eax, 2
je 0x1800e60ae
sub eax, 1
je 0x1800e605d
sub eax, 1
je 0x1800e6002
xor ecx, ecx
cmp eax, 1
je 0x1800e5fae
test rbx, rbx
js 0x1800e60f7
mov r10, rdi
lea r11, [rbx + 1]
nop word [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movsxd rax, ecx
mov edx, r8d
and eax, 7
movzx eax, byte [rsp + rax + 0x20]
sub edx, eax
lea eax, [rsi + rcx]
and eax, 7
add r9d, edx
xor edx, edx
inc ecx
mov byte [rsp + rax + 0x20], r8b
mov eax, r9d
div esi
mov byte [r10 - 1], al
sub r11, 1
jne 0x1800e5f70
jmp 0x1800e60f7
test rbx, rbx
js 0x1800e60f7
mov r10, rdi
lea r11, [rbx + 1]
nop
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movsxd rax, ecx
mov edx, r8d
and eax, 7
movzx eax, byte [rsp + rax + 0x20]
sub edx, eax
lea eax, [rcx - 3]
and eax, 7
add r9d, edx
inc ecx
mov byte [rsp + rax + 0x20], r8b
mov eax, 0xcccccccd
mul r9d
shr edx, 2
mov byte [r10 - 1], dl
sub r11, 1
jne 0x1800e5fc0
jmp 0x1800e60f7
xor ecx, ecx
test rbx, rbx
js 0x1800e60f7
mov r10, rdi
lea r11, [rbx + 1]
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movsxd rax, ecx
mov edx, r8d
and eax, 7
movzx eax, byte [rsp + rax + 0x20]
sub edx, eax
lea eax, [rcx - 4]
and eax, 7
add r9d, edx
inc ecx
mov byte [rsp + rax + 0x20], r8b
mov eax, r9d
shr eax, 2
mov byte [r10 - 1], al
sub r11, 1
jne 0x1800e6020
jmp 0x1800e60f7
xor ecx, ecx
test rbx, rbx
js 0x1800e60f7
mov r10, rdi
lea r11, [rbx + 1]
nop
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movsxd rax, ecx
mov edx, r8d
and eax, 7
movzx eax, byte [rsp + rax + 0x20]
sub edx, eax
lea eax, [rcx + 3]
and eax, 7
add r9d, edx
inc ecx
mov byte [rsp + rax + 0x20], r8b
mov eax, 0xaaaaaaab
mul r9d
shr edx, 1
mov byte [r10 - 1], dl
sub r11, 1
jne 0x1800e6070
jmp 0x1800e60f7
xor ecx, ecx
test rbx, rbx
js 0x1800e60f7
mov r10, rdi
lea r11, [rbx + 1]
nop dword [rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movsxd rax, ecx
mov edx, r8d
and eax, 7
movzx eax, byte [rsp + rax + 0x20]
sub edx, eax
lea eax, [rcx + 2]
and eax, 7
add r9d, edx
inc ecx
mov byte [rsp + rax + 0x20], r8b
mov eax, r9d
shr eax, 1
mov byte [r10 - 1], al
sub r11, 1
jne 0x1800e60c0
cmp ecx, r14d
jge 0x1800e6136
movsxd r8, ecx
mov eax, r14d
sub eax, ecx
mov ecx, eax
lea r10, [r8 + rdi]
nop word [rax + rax]
mov rax, r8
lea r10, [r10 + 1]
and eax, 7
xor edx, edx
inc r8
movzx eax, byte [rsp + rax + 0x20]
sub r9d, eax
mov eax, r9d
div esi
mov byte [r10 - 1], al
sub rcx, 1
jne 0x1800e6110
add rdi, r15
sub rbp, 1
jne 0x1800e5f20
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18015d5d0
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret