Function at 0x140039470
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, r9
mov r12, r8
mov r14, rdx
mov qword [rbp - 0x71], rdx
mov qword [rbp - 0x21], rdx
mov qword [rbp - 0x19], r8
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov r8d, 7
lea rdx, str.SELECT
lea rcx, [rbp - 9]
call fcn.140004140
nop
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x1400394e4
mov rdx, qword [r12]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400394f0
lea rcx, [rbp - 9]
call fcn.140004710
mov r8d, 6
lea rdx, str._FROM
mov rcx, rax
call fcn.140004710
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140039526
mov rdx, qword [r14]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140039530
mov rcx, rax
call fcn.140004710
xor r15d, r15d
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x11], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140039701
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1400396fa
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r9, [0x14013de48]
mov r13d, 1
mov r8d, r13d
xor edx, edx
lea rcx, [0x14013de58]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400396fa
mov rax, qword [rbp - 0x51]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.1400eecd0
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140039631
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], r13d
lea rcx, str.ROOTmicrosoftwindows_storage
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140039bea
jmp 0x140039634
mov rbx, r15
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140039c21
lea rax, [rbp - 0x59]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x51]
call rsi
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400396af
mov rcx, qword [rbx]
test rcx, rcx
je 0x140039690
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400396a2
call fcn.1400eef54
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.1400eef54
test esi, esi
js 0x1400396f0
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140039743
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rbp - 9]
call fcn.1400040d0
nop
mov rcx, r14
call fcn.1400040d0
nop
mov rcx, r12
call fcn.1400040d0
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400eecb0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x59]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
lea rsi, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rsi, qword [rbp - 9]
mov ecx, 0x18
call fcn.1400eecd0
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400397a6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], r13d
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400397a8
test rsi, rsi
jne 0x140039bf5
jmp 0x1400397a8
xor ebx, ebx
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140039c21
mov r14, qword [rbx]
mov ecx, 0x18
call fcn.1400eecd0
mov rsi, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x1400397fe
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], r13d
lea rcx, [0x140149cb8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x140039c00
jmp 0x140039800
xor esi, esi
mov qword [rbp - 0x69], rsi
test rsi, rsi
je 0x140039bdf
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x59]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
cmp ecx, 1
jne 0x14003987d
mov rcx, qword [rsi]
test rcx, rcx
je 0x140039859
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], 0
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003986f
call fcn.1400eef54
mov qword [rsi + 8], 0
mov edx, 0x18
mov rcx, rsi
call fcn.1400eef54
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400398c4
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400398a1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400398b7
call fcn.1400eef54
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.1400eef54
test r14d, r14d
jns 0x1400398f7
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rbp - 9]
call fcn.1400040d0
nop
mov rcx, qword [rbp - 0x71]
jmp 0x14003970e
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140039b5d
xor r14d, r14d
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x41]
mov r8d, r13d
mov edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp - 0x11], 0
je 0x140039b5d
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x14003994b
mov rdx, qword [r12]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x39]
xor r8d, r8d
call qword [rax + 0x20]
lea rdx, [0x1401752a8]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x140039b14
lea rdx, [0x140175278]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x140039b14
lea rdx, [0x140175048]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x1400399b8
movsx eax, word [rbp - 0x31]
jmp 0x140039b18
lea rdx, [0x140175290]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x140039b14
lea rdx, [0x1401752d8]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x1400399f5
movzx eax, word [rbp - 0x31]
jmp 0x140039b18
lea rdx, [0x1401752c0]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x140039b14
lea rdx, [0x140175260]
lea rcx, [0x140175290]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x140039b14
mov rsi, qword [rbp - 0x31]
mov ecx, 0x18
call fcn.1400eecd0
mov rbx, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x140039a77
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], r13d
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140039a7a
test rsi, rsi
jne 0x140039c0b
jmp 0x140039a7a
mov rbx, r14
mov qword [rbp - 0x61], rbx
test rbx, rbx
je 0x140039c21
mov rcx, qword [rbx]
test rcx, rcx
je 0x140039aab
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test rax, rax
je 0x140039c16
jmp 0x140039aae
mov rax, r14
mov dword [rsp + 0x50], eax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140039ac5
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x140039ad3
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.14003aef0
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140039b3c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140039af3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140039b05
call fcn.1400eef54
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.1400eef54
jmp 0x140039b3c
mov rax, qword [rbp - 0x31]
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
mov dword [rsp + 0x50], eax
je 0x140039b2f
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x140039b3c
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.14003aef0
lea rcx, [rbp - 0x39]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
jne 0x140039910
mov r9, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r9
sub rcx, rdx
sar rcx, 2
test rcx, rcx
jne 0x140039bc2
cmp rcx, 1
jbe 0x140039b83
lea rax, [rdx + 4]
mov qword [rdi + 8], rax
jmp 0x140039bc2
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 2
cmp rax, 1
jae 0x140039ba5
lea r8, [rbp - 0x79]
mov rdx, r13
mov rcx, rdi
call fcn.14003b8f0
jmp 0x140039bc2
sub r13, rcx
lea r8, [r13*4]
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call sub.VCRUNTIME140.dll_memset
mov qword [rdi + 8], rbx
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
jmp 0x1400398d7
mov ecx, 0x8007000e
call fcn.1400efd90
nop
mov ecx, 0x8007000e
call fcn.1400efd90
nop
mov ecx, 0x8007000e
call fcn.1400efd90
nop
mov ecx, 0x8007000e
call fcn.1400efd90
nop
mov ecx, 0x8007000e
call fcn.1400efd90
nop
mov ecx, 0x8007000e
call fcn.1400efd90
nop
mov ecx, 0x8007000e
call fcn.1400efd90
int3