Function at 0x180066450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180066450
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x278
cmp qword [0x180640da0], 0
jne 0x180066585
lea rax, [rsp + 0xa0]
lea rcx, [0x1802888a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x48
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x23
movzx eax, word [rsp + rax + 0xa0]
test eax, eax
je 0x1800664b6
mov dword [rsp + 0x2c], 1
jmp 0x1800664be
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
movzx eax, al
test eax, eax
je 0x180066527
mov dword [rsp + 0x24], 0
jmp 0x1800664e7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x24
jge 0x180066527
movsxd rax, dword [rsp + 0x24]
movzx eax, word [rsp + rax*2 + 0xa0]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x24]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
add eax, 0xa
mov ecx, dword [rsp + 0x34]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov word [rsp + rcx*2 + 0xa0], ax
jmp 0x1800664dd
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.180002662
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [0x180640da0], rax
mov dword [rsp + 0x28], 0
jmp 0x18006656d
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x24
jge 0x180066585
movsxd rax, dword [rsp + 0x28]
xor ecx, ecx
mov word [rsp + rax*2 + 0xa0], cx
jmp 0x180066563
lea rcx, [rsp + 0xf0]
call fcn.180008a8a
mov rax, qword [rsp + 0x298]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x2a0]
movsd xmm0, qword [rax]
movsd qword [rsp + 0xf8], xmm0
mov rax, qword [rsp + 0x2a0]
movsd xmm0, qword [rax + 8]
movsd qword [rsp + 0x100], xmm0
mov rax, qword [rsp + 0x2a0]
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x108], xmm0
mov rax, qword [rsp + 0x2a8]
movsd xmm0, qword [rax]
movsd qword [rsp + 0x110], xmm0
mov rax, qword [rsp + 0x2a8]
movsd xmm0, qword [rax + 8]
movsd qword [rsp + 0x118], xmm0
mov rax, qword [rsp + 0x2a8]
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x120], xmm0
mov byte [rsp + 0x21], 1
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x128], al
mov byte [rsp + 0x129], 1
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x130]
mov rdi, rax
mov rsi, qword [rsp + 0x50]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x22], 0
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x140], al
mov byte [rsp + 0x230], 1
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x234]
lea rcx, [rsp + 0x78]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x244]
lea rcx, [rsp + 0x88]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
xorps xmm0, xmm0
movss dword [rsp + 0x254], xmm0
mov rax, qword [0x180640da0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x290]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18006674d
mov eax, 8
imul rax, rax, 0x4f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x290]
call qword [rsp + 0x60]
nop
movzx eax, byte [rsp + 0x260]
test eax, eax
jne 0x180066763
mov dword [rsp + 0x30], 1
jmp 0x18006676b
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x278
pop rdi
pop rsi
ret