Function at 0x14015fa40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0xa8
call fcn.14036a3f0
sub rsp, rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0xc0]
call fcn.14015ec60
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0xe0], 0
jne 0x14015fb33
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 0
je 0x14015fac6
mov dword [rsp + 0x34], 0xff
jmp 0x14015face
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
shl eax, 3
cmp eax, dword [rsp + 0x28]
jne 0x14015fb1c
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 0
jne 0x14015fb0a
mov dword [rsp + 0x38], 1
jmp 0x14015fb12
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
jmp 0x14015fb2b
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0xd0], 0xffffffff
jne 0x14015fb55
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xd0], eax
jmp 0x14015fbd5
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0xd0], eax
jge 0x14015fbd5
lea rax, [rsp + 0x80]
mov rdi, rax
mov rsi, qword [rsp + 0xc0]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x80]
call fcn.14015ffa0
lea rcx, [rsp + 0x80]
call fcn.14015ec60
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0xd0], eax
jge 0x14015fbd5
mov eax, 0xffffffff
jmp 0x14015fdbc
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
shl eax, 3
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14015fc22
cmp dword [rsp + 0xd0], 0
je 0x14015fc16
movsxd rax, dword [rsp + 0xd0]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rsp + 0xd0]
jmp 0x14015fdbc
cmp dword [rsp + 0xd8], 1
jne 0x14015fc36
mov dword [rsp + 0x48], 1
jmp 0x14015fc5f
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0xd0]
dec eax
cdqe
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x58]
dec rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
shl eax, 3
cdqe
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
jmp 0x14015fca2
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0xd0]
cmp qword [rsp + 0x60], rax
jae 0x14015fdb5
xor edx, edx
mov rax, qword [rsp + 0x50]
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
shr rax, 0x3f
xor ecx, ecx
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
xor edx, edx
mov rax, qword [rsp + 0x50]
mov ecx, 8
div rcx
mov rax, rdx
shl rax, 3
movzx ecx, al
mov rax, qword [rsp + 0x68]
shr rax, cl
and rax, qword [rsp + 0x70]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
xor eax, dword [rsp + 0x40]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc8]
mov byte [rcx], al
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xc8]
movzx ecx, byte [rcx]
cmp eax, ecx
jle 0x14015fd61
mov dword [rsp + 0x44], 1
jmp 0x14015fd69
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
shr rax, 0x3f
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x14015fc95
mov eax, dword [rsp + 0xd0]
add rsp, 0xa8
pop rdi
pop rsi
ret