Function at 0x18008d2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x2c8]
sub rsp, 0x3c8
mov rax, qword [0x180146030]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rsi, r8
lea rax, [rsp + 0x40]
mov edx, 6
lea rax, ds:[rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x18008d2f0
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x3e8], rbx
movups xmm1, xmmword [rcx + 0x10]
mov qword [rsp + 0x3c0], rdi
movups xmmword [rax], xmm0
mov qword [rsp + 0x3b8], r14
movups xmm0, xmmword [rcx + 0x20]
mov qword [rsp + 0x3b0], r15
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
mov rcx, qword [rcx + 0x50]
movups xmmword [rax + 0x30], xmm1
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rcx
mov edx, dword [rbp + 0x244]
mov rax, qword [rbp - 0x50]
mov ecx, dword [rbp - 0x68]
cmp edx, 0x25a
jne 0x18008d549
cmp ecx, 3
jne 0x18008d3b8
cmp rax, 0x30
je 0x18008d3df
nop dword [rax + rax]
cmp edx, 0x25a
jne 0x18008d549
cmp ecx, 3
jne 0x18008d549
cmp rax, 0x60
jne 0x18008d549
mov rax, qword ds:[rsp + 0x48]
lea rdi, [rsp + 0x40]
shr rax, 0x20
mov ecx, 0x358
movzx ebx, al
xor eax, eax
rep stosb byte [rdi], al
movzx eax, byte [rbp + 0x300]
add rbx, r9
xor al, 1
lea r9, [rsp + 0x20]
movzx r15d, al
sub r8, rbx
mov rdx, rbx
lea eax, [r15 + 1]
movzx ecx, al
lea r14, [r15 + 1]
mov eax, ecx
shl r14, 4
or rax, 0xff00
shl rax, 8
or r14, rax
or r14, rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], r14
call fcn.1800073e0
cmp eax, 0x80000000
jae 0x18008d549
cmp dword ds:[rbp + 0x244], 0x222
nop
jne 0x18008d549
cmp dword [rbp - 0x68], 1
jne 0x18008d549
lfence
movzx eax, byte [rsp + 0x4c]
lea rdi, [rsp + 0x40]
add rbx, rax
mov qword [rsp + 0x28], r14
xor eax, eax
lea r9, [rsp + 0x28]
mov ecx, 0x358
mov r8, rsi
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
sub r8, rbx
mov rdx, rbx
call fcn.1800073e0
cmp eax, 0x80000000
jae 0x18008d549
cmp byte [rsp + 0x4c], 2
jne 0x18008d549
cmp byte [rbp + 0x284], 0x68
jne 0x18008d549
lfence
add rbx, 2
mov qword [rsp + 0x30], r14
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x358
lea r9, [rsp + 0x30]
rep stosb byte [rdi], al
sub rsi, rbx
lea rcx, [rsp + 0x40]
mov r8, rsi
mov rdx, rbx
call fcn.1800073e0
nop dword [rax + rax]
cmp eax, 0x80000000
jae 0x18008d549
cmp dword [rbp + 0x244], 0x175
jne 0x18008d549
cmp byte [rbp - 0x71], 2
jne 0x18008d549
cmp dword [rbp - 0x68], 1
jne 0x18008d549
cmp dword [rbp - 0x28], 2
jne 0x18008d549
mov rdx, qword [rbp - 0x10]
test dl, 1
je 0x18008d549
movzx eax, byte [rbp + 2]
lea ecx, [r15 + 4]
cmp eax, ecx
jne 0x18008d549
test dl, 2
je 0x18008d549
nop
test dl, 8
jne 0x18008d549
mov al, 1
jmp 0x18008d54b
xor al, al
mov r15, qword [rsp + 0x3b0]
mov r14, qword [rsp + 0x3b8]
mov rdi, qword [rsp + 0x3c0]
mov rbx, qword [rsp + 0x3e8]
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.18008e6f0
add rsp, 0x3c8
pop rsi
pop rbp
ret