Function at 0x180041230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push r13
sub rsp, 0xd60
lea eax, [rcx - 9]
mov r10, r9
mov r13, r8
mov r9, rdx
cmp ecx, eax
jbe 0x180041523
mov qword [r11 + 0x18], rbx
lea edx, [rcx - 0x4e]
mov qword [r11 - 0x10], rbp
mov r8d, 9
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov dword [rsp + 0xd70], edx
movzx ebx, byte [rsp + 0xd70]
movzx esi, byte [rsp + 0xd70]
mov qword [r11 - 0x30], r14
movzx r14d, byte [rsp + 0xd70]
mov qword [rsp + 0x30], r8
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x30]
mov qword [r11 - 0x38], r15
lea r11, [0x180000000]
movzx r15d, byte [rsp + 0xd70]
cmp edx, 0x14
ja case.0x1800412d5.3
mov ecx, dword [r11 + rdx*4 + 0x41530]
add rcx, r11
jmp rcx
movzx eax, word [rsp + 0x6aa]
mov word [0x1800ce8f8], ax
jmp case.0x1800412d5.3
mov eax, dword [r13]
mov dword [rsp + 0xc9c], eax
mov eax, dword [r9]
mov dword [rsp + 0xca0], eax
mov rax, qword [rsp + 0xd90]
movups xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0xb50], eax
movaps xmmword [rsp + 0xb40], xmm0
jmp case.0x1800412d5.3
cmp qword [r13 + 0x18], 0x10
lea rdi, [rsp + 0x40]
mov r12, r13
jb case.0x1800412d5.3
mov r12, qword [r13]
jmp case.0x1800412d5.3
cmp rbp, qword [r13 + 0x10]
jae 0x1800413bc
nop dword [rax]
nop dword [rax + rax]
mov r8d, 0x72
mov eax, r8d
sub eax, 0x72
je 0x180041395
sub eax, 1
je 0x180041379
cmp eax, 1
jne 0x1800413a1
movzx eax, r15b
movzx ecx, byte [rax + rdi]
xor byte [r12 + rbp], cl
inc rbp
jmp 0x1800413a1
movzx edx, r14b
movzx ecx, bl
movzx eax, byte [rdx + rdi]
mov byte [rcx + rdi], al
mov byte [rdx + rdi], sil
movzx r15d, byte [rcx + rdi]
add r15b, sil
jmp 0x1800413a1
inc bl
movzx eax, bl
movzx esi, byte [rax + rdi]
add r14b, sil
inc r8d
cmp r8d, 0x75
jb 0x180041356
cmp rbp, qword [r13 + 0x10]
jb 0x180041350
mov edx, dword [rsp + 0xd70]
mov r8, qword [rsp + 0x30]
mov byte [rsp + 0x140], bl
mov byte [rsp + 0x141], r14b
jmp case.0x1800412d5.3
movsx eax, byte [r10]
mov dword [rsp + 0x6b0], eax
mov rax, qword [r13]
mov qword [rsp + 0x6a2], rax
xor eax, eax
mov word [rsp + 0x6aa], ax
mov dword [rsp + 0x6ac], 8
jmp case.0x1800412d5.3
xor eax, eax
mov word [0x1800ce8f8], ax
jmp case.0x1800412d5.3
mov ecx, 0xfffffe4e
lea rdx, [rsp + 0x150]
call qword [0x1800ce8f0]
jmp 0x1800414b0
xor r9d, r9d
mov dword [rsp + 0x38], 0x200
lea r8, [rsp + 0x38]
mov dword [rsp + 0x20], 0x157
mov rdx, r10
lea rcx, [rsp + 0x940]
call fcn.1800108e0
mov ecx, 0xfffffeb4
lea rdx, [rsp + 0x740]
call qword [0x1800ce8f0]
jmp 0x1800414b0
xor eax, eax
mov rcx, r10
cmp qword [r10 + 0x18], 0x10
mov ebp, eax
jb 0x180041475
mov rcx, qword [r10]
mov eax, dword [r10 + 0x10]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x38], eax
xor r9d, r9d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
lea r8d, [r9 + 0x7b]
call fcn.180031bb0
movzx ebx, byte [rsp + 0x140]
movzx r14d, byte [rsp + 0x141]
mov edx, dword [rsp + 0xd70]
lea r11, [0x180000000]
mov r8, qword [rsp + 0x30]
mov r10, qword [rsp + 0xd88]
mov r9, qword [rsp + 0xd78]
dec edx
sub r8, 1
mov dword [rsp + 0xd70], edx
mov qword [rsp + 0x30], r8
jne 0x1800412c1
mov r15, qword [rsp + 0xd30]
mov r14, qword [rsp + 0xd38]
mov r12, qword [rsp + 0xd40]
mov rdi, qword [rsp + 0xd48]
mov rsi, qword [rsp + 0xd50]
mov rbp, qword [rsp + 0xd58]
mov rbx, qword [rsp + 0xd80]
add rsp, 0xd60
pop r13
ret