Function at 0x1800843d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
movzx eax, byte [rdx]
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test al, al
je 0x180084650
mov qword [rsp + 0x50], r12
lea r9, [0x1802b2c2c]
mov qword [rsp + 0x58], r13
lea r12, str._C_
mov qword [rsp + 0x60], r14
lea r13, [0x1802452d4]
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x20], r15
lea r15, [0x180000000]
nop dword [rax]
nop dword [rax + rax]
movsx eax, al
add eax, 0xffffff9f
cmp eax, 0x14
ja case.0x18008444c.98
cdqe
mov ecx, dword [r15 + rax*4 + 0x8465c]
add rcx, r15
jmp rcx
cmp byte [rsi + 3], 0
je 0x180084473
lea rax, [0x1802b2c04]
mov qword [rdi + 0x10], r12
mov qword [rdi + 8], r13
mov dword [rdi + 0x20], 0xffffffff
mov qword [rdi + 0x18], rax
jmp case.0x18008444c.98
mov rcx, qword [rsi + 0x18]
add rcx, 0x50
add rcx, rsi
mov rdx, qword [rcx]
mov qword [rdi + 8], r9
sub rdx, rcx
lea r8, [rdx + 0x18]
mov qword [rdi + 0x10], r8
mov rax, qword [rsi + 0x18]
mov ecx, dword [rax + rsi + 0xac]
lea rax, [rdx + 0x14]
mov r9d, eax
mov dword [rdi + 0x20], ecx
lea rcx, [rdi + 0x38]
mov eax, dword [rax]
xor r9, rax
call fcn.18008a220
lea r9, [0x1802b2c2c]
mov qword [rdi + 0x18], rax
jmp case.0x18008444c.98
test r14, r14
je 0x180084567
mov rax, qword [r14]
cmp dword [rax + 0xc], 8
jne 0x18008456d
mov r8, qword [rax]
cmp byte [r8 + 3], 0
jne 0x18008456d
mov rdx, qword [r14 + 8]
add r8, 0x18
test rdx, rdx
je 0x18008450a
mov rcx, qword [r8]
add rcx, 8
add rcx, r8
sub rdx, qword [rcx]
sub rdx, rcx
sar rdx, 2
dec edx
mov r9, qword [r8]
add r9, r8
mov r10, qword [r9 + 0x50]
lea rcx, [r9 + 0x50]
cmp r10, rcx
jne 0x18008452e
xor ecx, ecx
lea r9, [0x1802b2c2c]
mov dword [rdi + 0x24], ecx
jmp case.0x18008444c.98
mov ecx, dword [r9 + 0x98]
lea rax, [r9 + 0x48]
movsxd r8, edx
sub r10, r9
mov rdx, r8
lea r9, [0x1802b2c2c]
sar rdx, cl
shl rdx, 2
movzx ecx, byte [r10 + r8 - 0x50]
sub rdx, rax
mov rax, qword [rax]
add ecx, dword [rdx + rax]
mov dword [rdi + 0x24], ecx
jmp case.0x18008444c.98
cmp byte [rsi + 3], 0
je 0x18008457a
mov ecx, 0xffffffff
mov dword [rdi + 0x24], ecx
jmp case.0x18008444c.98
mov rax, qword [rsi + 0x18]
mov ecx, dword [rax + rsi + 0xac]
mov dword [rdi + 0x24], ecx
jmp case.0x18008444c.98
movzx eax, byte [rsi + 4]
mov byte [rdi + 0x28], al
jmp case.0x18008444c.98
cmp byte [rsi + 3], 0
je 0x1800845ad
xor al, al
mov byte [rdi + 0x2a], 1
mov byte [rdi + 0x29], al
jmp case.0x18008444c.98
mov rax, qword [rsi + 0x18]
movzx ecx, byte [rax + rsi + 0x1c]
mov byte [rdi + 0x2a], cl
mov rax, qword [rsi + 0x18]
movzx eax, byte [rsi + rax + 0x1d]
mov byte [rdi + 0x29], al
jmp case.0x18008444c.98
test r14, r14
je 0x1800845f9
mov rax, qword [r14]
mov rcx, qword [rax]
cmp byte [rcx + 3], 0
je 0x1800845ec
lea rax, [rcx + 0x28]
mov rcx, qword [rcx + 0x28]
sub rcx, rax
jne 0x1800845e7
xor ecx, ecx
mov qword [rdi], rcx
jmp case.0x18008444c.98
mov rax, qword [rcx + 0x18]
add rcx, 0x78
add rcx, rax
jmp 0x18008461c
cmp byte [rsi + 3], 0
je 0x180084611
mov rcx, qword [rsi + 0x28]
lea rax, [rsi + 0x28]
sub rcx, rax
je 0x1800845e5
mov qword [rdi], rcx
jmp case.0x18008444c.98
mov rcx, qword [rsi + 0x18]
add rcx, 0x78
add rcx, rsi
add rcx, qword [rcx]
je 0x1800845e5
add rcx, 0x18
mov qword [rdi], rcx
jmp case.0x18008444c.98
mov rbp, rsi
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x180084430
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rax, rbp
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret