Function at 0x1402657b0
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.140473cc0
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.1402649d0
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 0x1402658a3
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 0
je 0x140265836
mov dword [rsp + 0x34], 0xff
jmp 0x14026583e
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 0x14026588c
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 0
jne 0x14026587a
mov dword [rsp + 0x38], 1
jmp 0x140265882
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
jmp 0x14026589b
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 0x1402658c5
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xd0], eax
jmp 0x140265945
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0xd0], eax
jge 0x140265945
lea rax, [rsp + 0x80]
mov rdi, rax
mov rsi, qword [rsp + 0xc0]
mov ecx, Ordinal_27
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x80]
call fcn.140265d10
lea rcx, [rsp + 0x80]
call fcn.1402649d0
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 0x140265945
mov eax, 0xffffffff
jmp 0x140265b2c
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 0x140265992
cmp dword [rsp + 0xd0], 0
je 0x140265986
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 0x140265b2c
cmp dword [rsp + 0xd8], 1
jne 0x1402659a6
mov dword [rsp + 0x48], 1
jmp 0x1402659cf
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 0x140265a12
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0xd0]
cmp qword [rsp + 0x60], rax
jae 0x140265b25
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 0x140265ad1
mov dword [rsp + 0x44], 1
jmp 0x140265ad9
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 0x140265a05
mov eax, dword [rsp + 0xd0]
add rsp, 0xa8
pop rdi
pop rsi
ret