Function at 0x140039ce0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov r15, rcx
lea rcx, [0x140204128]
call fcn.14008c210
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140039e9b
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x140039e95
mov qword [rbp - 0x29], r12
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [0x140189ce0]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x140189c30]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140039e95
mov qword [rbp + 0x7f], r12
lea ecx, [r12 + 0x18]
call fcn.14008c3d0
mov rbx, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x140039dca
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTMicrosoftWindowsDeviceGuard
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14003a0ba
jmp 0x140039dcd
mov rbx, r12
mov qword [rbp + 7], rbx
test rbx, rbx
je 0x14003a0c5
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140039e4b
mov rcx, qword [rbx]
test rcx, rcx
je 0x140039e2c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140039e3e
call fcn.14008cc90
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008c420
test edi, edi
js 0x140039e8b
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140039ea5
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x14003a09d
mov qword [rbp - 0x21], r12
mov ecx, 0x18
call fcn.14008c3d0
mov rsi, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x140039edb
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_DeviceGuard
call fcn.14008efd0
mov qword [rsi], rax
jmp 0x140039ede
mov rsi, r12
mov qword [rbp - 0x11], rsi
test rsi, rsi
je 0x14003a0d0
mov ecx, 0x18
call fcn.14008c3d0
mov r14, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x140039f1d
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x140174dc8]
call fcn.14008efd0
mov qword [r14], rax
jmp 0x140039f20
mov r14, r12
mov qword [rbp - 9], r14
test r14, r14
je 0x14003a0af
mov rax, qword [rbp + 0x7f]
mov rdi, qword [rax]
lea rcx, [rbp - 0x11]
call fcn.1400390d0
mov rbx, rax
lea rcx, [rbp - 9]
call fcn.1400390d0
mov rdx, rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [rbp + 0x7f]
call qword [rdi + 0xa0]
mov ebx, eax
mov ecx, 0xffffffff
lock xadd dword [r14 + 0x10], ecx
cmp ecx, 1
jne 0x140039fb0
mov rcx, qword [r14]
test rcx, rcx
je 0x140039f90
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14], r12
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140039fa2
call fcn.14008cc90
mov qword [r14 + 8], r12
mov edx, 0x18
mov rcx, r14
call fcn.14008c420
nop
mov eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x140039fef
mov rcx, qword [rsi]
test rcx, rcx
je 0x140039fd0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r12
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140039fe2
call fcn.14008cc90
mov qword [rsi + 8], r12
mov edx, 0x18
mov rcx, rsi
call fcn.14008c420
test ebx, ebx
js 0x140039e81
mov qword [rbp - 0x19], r12
mov dword [rbp + 0x6f], r12d
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14003a077
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x19]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp + 0x6f], 0
je 0x14003a077
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.VirtualizationBasedSecurityStatus
call qword [rax + 0x20]
mov eax, dword [rbp + 0x17]
mov dword [r15], eax
lea rcx, [rbp + 0xf]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
jne 0x14003a010
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14008ebb0
nop
mov ecx, 0x8007000e
call fcn.14008ebb0
nop
mov ecx, 0x8007000e
call fcn.14008ebb0
int3
mov ecx, 0x8007000e
call fcn.14008ebb0
int3