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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1400c4040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx r15d, dl
mov rdi, rcx
xor r12d, r12d
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x69], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14002b3a9
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
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x14002b3a3
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9, [0x14009c018]
xor edx, edx
mov r8d, 1
lea rcx, [0x14009c028]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14002b3a3
mov rax, qword [rbp - 0x59]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.140092900
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14002b2db
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400ac2f0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14002b81c
jmp 0x14002b2de
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x14002b832
lea rax, [rbp - 0x69]
mov qword [rsp + 0x40], rax
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]
mov rcx, qword [rbp - 0x59]
call rsi
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14002b358
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002b339
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002b34b
call fcn.140092e50
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140092e50
test esi, esi
js 0x14002b399
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
mov edx, 0xa
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x14002b3d3
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400928e0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rbp - 0x41], r12
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x3c
jb 0x14002b83d
cmp qword [rdi + 0x18], 7
jbe 0x14002b3fc
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x3c
lea r9, str.SELECT__FROM_Win32_NetworkAdapter_WHERE_NetConnectionID__
lea rcx, [rbp + 0xf]
call fcn.14002ee60
nop
mov r8d, 1
lea rdx, [0x1400ac38c]
lea rcx, [rbp + 0xf]
call fcn.14000a8c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x14002b4a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b4a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b4a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140092e50
movdqa xmm0, xmmword [0x1400b1150]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], r12w
mov rax, qword [rbp - 0x69]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
lea rdi, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rdi, qword [rbp - 0x11]
mov ecx, 0x18
call fcn.140092900
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14002b512
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14002b515
test rdi, rdi
jne 0x14002b827
jmp 0x14002b515
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x14002b843
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.140092900
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14002b557
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400ac3a0]
call fcn.140094610
mov qword [rdi], rax
jmp 0x14002b55a
mov rdi, r12
mov qword [rbp - 0x39], rdi
test rdi, rdi
je 0x14002b811
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x69]
call r14
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14002b5ca
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002b5aa
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002b5bc
call fcn.140092e50
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.140092e50
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14002b609
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002b5ea
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002b5fc
call fcn.140092e50
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140092e50
test esi, esi
jns 0x14002b62e
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor bl, bl
jmp 0x14002b7c6
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x61], r12d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14002b7aa
lea rdi, [0x1400ac3b8]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x31]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp - 0x61], 0
je 0x14002b79b
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x29]
xor r8d, r8d
lea rdx, [0x1400ac390]
call qword [rax + 0x20]
test eax, eax
js 0x14002b778
mov qword [rbp - 0x51], r12
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
lea rdx, [rbp - 0x51]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x21]
call qword [rax + 0x30]
test eax, eax
js 0x14002b778
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x39], r12
lea rcx, str.Disable
test r15b, r15b
cmovne rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov rcx, qword [rbp - 0x51]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x98]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rdx, rax
call r10
test eax, eax
js 0x14002b742
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
lea rdx, [rbp - 0x39]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbx
mov rdx, qword [rbp - 0x21]
call qword [rax + 0xc0]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x14002b751
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14002b760
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14002b76f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rbp - 0x29]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
jne 0x14002b650
jmp 0x14002b7aa
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14002b7aa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov bl, 1
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x14002b809
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b804
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b804
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140092e50
movzx eax, bl
jmp 0x14002b3ab
mov ecx, 0x8007000e
call fcn.140094600
nop
mov ecx, 0x8007000e
call fcn.140094600
nop
mov ecx, 0x8007000e
call fcn.140094600
nop
mov ecx, 0x8007000e
call fcn.140094600
int3
call fcn.140003ee0
nop
mov ecx, 0x8007000e
call fcn.140094600
int3