Function at 0x14006edf0
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.0x14006ee2a.6
lea rdx, [0x140000000]
mov r8d, dword [rdx + rcx*4 + 0x6f1d8]
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 0x14006ee90
mov rdx, qword [rbx + 8]
test bpl, bpl
je 0x14006ee6f
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.1400a1750
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 0x14006f1c6
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 0x14006f1c3
mov dword [rdi + 0x10], 2
mov rax, qword [rbx + 8]
jmp 0x14006f1c3
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.0x14006ee2a.9
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [0x1400e0178]
call qword [rax]
test eax, eax
js 0x14006eff3
test bpl, bpl
jne 0x14006ef4c
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov ecx, 0x48
call fcn.1400b9c34
mov rsi, rax
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140031cd0
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, [0x140107df0]
mov rcx, rbx
call qword [rax]
test eax, eax
js 0x14006efd9
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r9, [rsp + 0x88]
lea r8, [0x140107dd0]
lea rdx, [0x1400eb138]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
js 0x14006efcd
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.0x14006ee2a.9
test bpl, bpl
jne 0x14006f01b
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov ecx, 0x28
call fcn.1400b9c34
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
mov dword [rax + 0x20], 9
jmp 0x14006f1a7
mov rcx, qword [rbx + 8]
test rcx, rcx
je case.0x14006ee2a.0
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x1400eb138]
call qword [rax]
test eax, eax
js 0x14006f08f
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
mov dword [rdi + 0x10], 5
test bpl, bpl
jne 0x14006f1c6
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 0x14006f09e
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov ecx, 0x28
call fcn.1400b9c34
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 0x14006f1a3
mov dword [rdi + 0x10], esi
lea rax, [0x1400fbbd0]
mov qword [rdi + 8], rsi
jmp 0x14006f1c3
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 0x14006f1c3
cmp dword [rbx + 8], 0x80020004
jne case.0x14006ee2a.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 0x14006f17d
mov r9d, 8
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x14006f17d
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14006edf0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x28
call fcn.1400b9c34
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