Function at 0x18008d9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov r14, rdx
mov rsi, rcx
test rcx, rcx
je 0x18008db96
movzx r15d, byte [rdx]
movabs r13, 0xcccccccccccccccd
mov r12d, 0x7fffffff
nop dword [rax + rax]
mov rdx, r14
test r15b, r15b
je 0x18008da40
inc rdx
cmp byte [rdx], 0
jne 0x18008da38
mov r11, qword [rsi + 8]
sub rdx, r14
mov r8, rdx
mov rax, r11
je 0x18008da89
mov r10, r14
sub r10, r11
nop word [rax + rax]
movzx ecx, byte [r10 + rax]
dec r8
movzx r9d, byte [rax]
lea rax, [rax + 1]
cmp cl, r9b
jne 0x18008da80
test cl, cl
je 0x18008da89
test r8, r8
jne 0x18008da60
jmp 0x18008da89
sub ecx, r9d
jne 0x18008db89
cmp byte [r11], 0
mov rax, r11
je 0x18008da9a
inc rax
cmp byte [rax], 0
jne 0x18008da92
sub rax, r11
cmp rax, rdx
je 0x18008dc93
lea r8, [r11 + rdx]
nop word [rax + rax]
movzx ecx, byte [r8]
lea eax, [rcx - 9]
cmp al, 4
jbe 0x18008dac0
cmp cl, 0x20
jne 0x18008dac5
inc r8
jmp 0x18008dab0
lea eax, [rcx - 0x2b]
test al, 0xfd
je 0x18008dad1
mov dil, 1
jmp 0x18008dae1
inc r8
cmp cl, 0x2b
jne 0x18008dade
mov dil, 1
jmp 0x18008dae1
xor dil, dil
movzx r11d, dil
mov rax, r13
xor r11, 1
add r11, r12
mul r11
mov rbx, rdx
shr rbx, 3
xor eax, eax
nop dword [rax + rax]
movsx r9d, byte [r8]
lea ecx, [r9 - 0x30]
cmp cl, 9
ja 0x18008db13
lea ecx, [r9 - 0x30]
jmp 0x18008db2e
lea ecx, [r9 - 0x41]
cmp cl, 0x19
jbe 0x18008db25
lea ecx, [r9 - 0x61]
cmp cl, 0x19
ja 0x18008db64
mov ecx, r9d
or ecx, 0x20
sub ecx, 0x57
cmp ecx, 0xa
jge 0x18008db64
inc r8
cmp rax, r11
je 0x18008db00
cmp rax, rbx
ja 0x18008db49
lea rax, [rax + rax*4]
add rax, rax
jmp 0x18008db4c
mov rax, r11
movsxd rdx, ecx
mov rcx, r11
sub rcx, rdx
cmp rax, rcx
ja 0x18008db5f
add rax, rdx
jmp 0x18008db00
mov rax, r11
jmp 0x18008db00
cmp rax, r11
jne 0x18008db77
test dil, dil
mov eax, 0x80000000
cmovne eax, r12d
jmp 0x18008db81
mov ecx, eax
neg ecx
test dil, dil
cmove eax, ecx
test eax, eax
jg 0x18008dc93
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x18008da30
movabs rcx, 0xe8355da38021979c
movabs rax, 0x630e6b27e8c7fcd1
mov qword [rbp], rax
movabs r8, 0x172e0f4284ae9db7
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x811539cde947b7f3
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xae7719cecbdecb67
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xd9293169d647941e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xcb1478a8b9bbbf09
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xd9293169d647b63e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0x172e0f4284ae9d95
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp], rcx
mov rax, qword [rbp]
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [rsi]
call qword [0x1800da508]
mov rdx, rax
movabs r8, 0x172e0f4284ae9db7
movabs rax, 0x734b7d37f0defcd4
mov qword [rbp], rax
movabs rax, 0xe8355da38021b5bc
mov rcx, qword [rbp]
mov qword [rbp], rax
mov rcx, qword [rbp]
mov qword [rbp], r8
mov rcx, qword [rbp]
movabs rcx, 0xe8355da38021979c
mov qword [rbp], rcx
mov rax, qword [rbp]
movabs rax, 0x715c6a36eac7bd95
mov qword [rbp], rax
mov rax, qword [rbp]
movabs rax, 0xe8355da38044f4fd
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp], rcx
mov rax, qword [rbp]
mov rax, rdx
jmp 0x18008dc72