Function at 0x14006f3f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
movzx ebp, r8b
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rdx + 0x20], rsi
movzx ecx, word [rcx]
cmp ecx, 0x15
ja case.0x14006f42a.6
lea rdx, [0x140000000]
mov r8d, dword [rdx + rcx*4 + 0x6f7d8]
add r8, rdx
jmp r8
mov dword [rdi + 0x10], esi
lea rax, [0x1400fbbd0]
mov qword [rdi], rax
mov qword [rdi + 8], rsi
mov rcx, qword [rbx + 8]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r8d, eax
test eax, eax
je 0x14006f490
mov rdx, qword [rbx + 8]
test bpl, bpl
je 0x14006f46f
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.1400a1c90
mov rcx, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.OLEAUT32.dll_VariantCopy]
test bpl, bpl
jne 0x14006f7c6
mov rcx, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [rdi + 0x10], 1
movsxd rax, dword [rbx + 8]
jmp 0x14006f7c3
mov dword [rdi + 0x10], 2
mov rax, qword [rbx + 8]
jmp 0x14006f7c3
mov dword [rdi + 0x10], 2
movss xmm0, dword [rbx + 8]
cvtps2pd xmm0, xmm0
movsd qword [rdi], xmm0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov dword [rdi + 0x10], 1
cmp word [rbx + 8], si
setne sil
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je case.0x14006f42a.9
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [0x1400e0178]
call qword [rax]
test eax, eax
js 0x14006f5f3
test bpl, bpl
jne 0x14006f54c
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov ecx, 0x48
call fcn.1400ba174
mov rsi, rax
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140031cc0
nop
lea rax, vtable.ComEnum.0
mov qword [rsi], rax
mov qword [rsi + 0x38], rbx
mov byte [rsi + 0x40], 0
mov rax, qword [rbx]
lea r8, [rsp + 0x70]
lea rdx, [0x140107e30]
mov rcx, rbx
call qword [rax]
test eax, eax
js 0x14006f5d9
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r9, [rsp + 0x88]
lea r8, [0x140107e10]
lea rdx, [0x1400eb138]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
js 0x14006f5cd
mov byte [rsi + 0x40], 1
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
nop
mov dword [rdi + 0x10], 5
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [0x1400eb148]
call qword [rax]
test eax, eax
js case.0x14006f42a.9
test bpl, bpl
jne 0x14006f61b
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov ecx, 0x28
call fcn.1400ba174
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
mov dword [rax + 0x20], 9
jmp 0x14006f7a7
mov rcx, qword [rbx + 8]
test rcx, rcx
je case.0x14006f42a.0
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x1400eb138]
call qword [rax]
test eax, eax
js 0x14006f68f
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
mov dword [rdi + 0x10], 5
test bpl, bpl
jne 0x14006f7c6
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
test bpl, bpl
je 0x14006f69e
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov ecx, 0x28
call fcn.1400ba174
mov qword [rsp + 0x78], rax
movzx edx, word [rbx]
mov rcx, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov word [rax + 0x22], si
jmp 0x14006f7a3
mov dword [rdi + 0x10], esi
lea rax, [0x1400fbbd0]
mov qword [rdi + 8], rsi
jmp 0x14006f7c3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
lea r9d, [rax + 0x14]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rdi + 0x10], 1
mov rax, qword [rsp + 0x38]
jmp 0x14006f7c3
cmp dword [rbx + 8], 0x80020004
jne case.0x14006f42a.6
mov dword [rdi + 0x10], 3
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov eax, 0x2000
cmp cx, ax
jae 0x14006f77d
mov r9d, 8
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x14006f77d
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14006f3f0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x28
call fcn.1400ba174
mov qword [rsp + 0x70], rax
movzx edx, word [rbx]
mov rcx, qword [rbx + 8]
mov qword [rax + 0x10], rcx
xor bpl, 1
movzx ecx, bpl
mov word [rax + 0x22], cx
mov word [rax + 0x20], dx
mov dword [rax + 8], 1
lea r8, vtable.ComObject.0
mov qword [rax], r8
mov qword [rax + 0x18], rsi
mov dword [rdi + 0x10], 5
mov qword [rdi], rax
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret