Function at 0x180198810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1802c2700]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor edi, edi
mov word [rbp + 0xf], 0x15ff
xor r11b, r11b
mov dword [rbp + 0x11], 2
xor r15b, r15b
mov word [rbp + 0x15], 0x8eb
mov byte [rbp - 0x49], r15b
mov r14, rcx
mov qword [rbp + 0x17], rdi
mov r12d, edi
mov word [rbp - 0x11], 0x25ff
mov r13d, edi
mov dword [rbp - 0xf], edi
mov qword [rbp - 0xb], rdi
mov qword [rbp - 1], 0x25ff0e70
mov qword [rbp + 7], rdi
mov byte [rbp - 0x48], r11b
mov qword [rcx + 0x20], rdi
nop
movzx esi, r15b
lea rdx, [rbp - 0x39]
mov r15, qword [r14 + 0x10]
movzx ebx, r11b
add r15, rsi
add rbx, qword [r14]
mov rcx, rbx
mov qword [rbp - 0x41], rsi
call fcn.180197c50
mov r9d, dword [rbp - 0x18]
mov r8d, eax
bt r9d, 0xc
jb 0x180198b73
movzx r11d, byte [rbp - 0x48]
mov r10, rbx
cmp r11b, 5
jb 0x1801988eb
mov qword [rbp - 0xb], rbx
lea r10, [rbp - 0x11]
mov r8d, 0xe
mov r13d, 1
jmp 0x180198a6e
movzx eax, byte [rbp - 0x2c]
and al, 0xc7
cmp al, 5
jne 0x180198941
movzx eax, byte [rbp - 0x39]
lea rdi, [rbp + 0x1f]
mov rcx, r8
lea r10, [rbp + 0x1f]
mov rsi, rbx
mov edx, ebx
rep movsb byte [rdi], byte [rsi]
sub edx, r15d
mov ecx, r9d
add edx, dword [rbp - 0x1c]
shr rcx, 2
and ecx, 0xf
sub rax, rcx
mov dword [rbp + rax + 0x1b], edx
cmp byte [rbp - 0x2e], 0xff
jne 0x180198a6a
cmp byte [rbp - 0x2a], 4
jne 0x180198a6a
mov r13d, 1
jmp 0x180198a6a
movzx ecx, byte [rbp - 0x2e]
cmp cl, 0xe8
jne 0x18019896b
movsxd rax, dword [rbp - 0x24]
lea r10, [rbp + 0xf]
movzx ecx, byte [rbp - 0x39]
add rax, rbx
add rcx, rax
mov r8d, 0x10
mov qword [rbp + 0x17], rcx
jmp 0x180198a6e
movzx eax, cl
and al, 0xfd
cmp al, 0xe9
jne 0x1801989ca
movzx edx, byte [rbp - 0x39]
movsx rax, byte [rbp - 0x24]
add rdx, rbx
cmp cl, 0xeb
je 0x180198989
movsxd rax, dword [rbp - 0x24]
lea rcx, [rdx + rax]
mov rax, qword [r14]
cmp rax, rcx
ja 0x1801989ad
add rax, 5
cmp rcx, rax
jae 0x1801989ad
cmp r12, rcx
cmovae rcx, r12
mov r12, rcx
jmp 0x180198a6e
cmp rbx, r12
mov qword [rbp - 0xb], rcx
mov r13d, edi
lea r10, [rbp - 0x11]
setae r13b
mov r8d, 0xe
jmp 0x180198a6e
movzx esi, byte [rbp - 0x2d]
movzx edx, cl
and dl, 0xf0
cmp dl, 0x70
je 0x180198a00
movzx eax, cl
and al, 0xfc
cmp al, 0xe0
je 0x180198a00
movzx eax, sil
and al, 0xf0
cmp al, 0x80
je 0x180198a00
and cl, 0xfe
cmp cl, 0xc2
jne 0x180198a6a
cmp rbx, r12
mov r13d, edi
setae r13b
jmp 0x180198a6a
movzx edi, byte [rbp - 0x39]
add rdi, rbx
cmp dl, 0x70
je 0x180198a19
movzx eax, cl
and al, 0xfc
cmp al, 0xe0
movsxd rax, dword [rbp - 0x24]
jne 0x180198a1e
movsx rax, byte [rbp - 0x24]
lea rdx, [rdi + rax]
mov rax, qword [r14]
cmp rax, rdx
ja 0x180198a3f
add rax, 5
cmp rdx, rax
jae 0x180198a3f
cmp r12, rdx
cmovae rdx, r12
mov r12, rdx
jmp 0x180198a6a
movzx eax, cl
and al, 0xfc
cmp al, 0xe0
je 0x180198b73
mov eax, ecx
cmp cl, 0xf
jne 0x180198a55
mov eax, esi
and al, 0xf
mov qword [rbp + 7], rdx
xor al, 0x71
lea r10, [rbp - 1]
mov byte [rbp - 1], al
mov r8d, 0x10
mov rsi, qword [rbp - 0x41]
cmp rbx, r12
jae 0x180198a80
movzx eax, byte [rbp - 0x39]
cmp r8d, eax
jne 0x180198b73
movzx r15d, byte [rbp - 0x49]
lea eax, [r8 + r15]
cmp eax, 0x32
ja 0x180198b73
mov eax, dword [r14 + 0x24]
cmp eax, 8
jae 0x180198b73
mov byte [rax + r14 + 0x28], r11b
mov eax, dword [r14 + 0x24]
mov ecx, r8d
mov byte [rax + r14 + 0x30], r15b
add r15b, r8b
mov rdi, qword [r14 + 0x10]
inc dword [r14 + 0x24]
add rdi, rsi
mov rsi, r10
mov byte [rbp - 0x49], r15b
rep movsb byte [rdi], byte [rsi]
add r11b, byte [rbp - 0x39]
mov edi, 0
mov byte [rbp - 0x48], r11b
test r13d, r13d
je 0x180198890
cmp r11b, 5
jae 0x180198b41
mov rdi, qword [r14]
mov edx, 5
movzx esi, r11b
movzx ecx, r11b
sub edx, esi
add rcx, rdi
call fcn.180198bb0
test eax, eax
jne 0x180198b41
cmp r11b, 2
jae 0x180198b17
mov edx, 2
sub edx, esi
call fcn.180198bb0
test eax, eax
je 0x180198b73
lea rcx, [rdi - 5]
call fcn.180198780
test eax, eax
je 0x180198b73
mov rcx, qword [r14]
mov edx, 5
sub rcx, 5
call fcn.180198bb0
test eax, eax
je 0x180198b73
mov dword [r14 + 0x20], 1
mov rcx, qword [r14 + 8]
mov eax, 1
mov qword [rbp - 0xb], rcx
mov ecx, dword [rbp - 9]
movsd xmm0, qword [rbp - 0x11]
movzx edx, r15b
add rdx, qword [r14 + 0x10]
mov qword [r14 + 0x18], rdx
movsd qword [rdx], xmm0
mov dword [rdx + 8], ecx
movzx ecx, word [rbp - 5]
mov word [rdx + 0xc], cx
jmp 0x180198b75
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180199d30
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret