Function at 0x140027290
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 [0x1400ba040]
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 0x140027459
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 0x140027453
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9, [0x140094ff8]
xor edx, edx
mov r8d, 1
lea rcx, [0x140095008]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140027453
mov rax, qword [rbp - 0x59]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.14008c680
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14002738b
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400a45b0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400278cc
jmp 0x14002738e
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x1400278e2
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 0x140027408
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400273e9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400273fb
call fcn.14008cbd0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008cbd0
test esi, esi
js 0x140027449
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 0x140027483
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.14008c660
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 0x1400278ed
cmp qword [rdi + 0x18], 7
jbe 0x1400274ac
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.14002af30
nop
mov r8d, 1
lea rdx, [0x1400a464c]
lea rcx, [rbp + 0xf]
call fcn.140008730
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 0x140027557
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027552
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027552
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008cbd0
movdqa xmm0, xmmword [0x1400a9270]
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.14008c680
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x1400275c2
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 0x1400275c5
test rdi, rdi
jne 0x1400278d7
jmp 0x1400275c5
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x1400278f3
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.14008c680
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140027607
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400a4660]
call fcn.14008e390
mov qword [rdi], rax
jmp 0x14002760a
mov rdi, r12
mov qword [rbp - 0x39], rdi
test rdi, rdi
je 0x1400278c1
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 0x14002767a
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002765a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002766c
call fcn.14008cbd0
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.14008cbd0
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400276b9
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002769a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400276ac
call fcn.14008cbd0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008cbd0
test esi, esi
jns 0x1400276de
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 0x140027876
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x61], r12d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14002785a
lea rdi, [0x1400a4678]
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 0x14002784b
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, [0x1400a4650]
call qword [rax + 0x20]
test eax, eax
js 0x140027828
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 0x140027828
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 0x1400277f2
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 0x140027801
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140027810
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14002781f
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 0x140027700
jmp 0x14002785a
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14002785a
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 0x1400278b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400278b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400278b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008cbd0
movzx eax, bl
jmp 0x14002745b
mov ecx, 0x8007000e
call fcn.14008e380
nop
mov ecx, 0x8007000e
call fcn.14008e380
nop
mov ecx, 0x8007000e
call fcn.14008e380
nop
mov ecx, 0x8007000e
call fcn.14008e380
int3
call fcn.140001e30
nop
mov ecx, 0x8007000e
call fcn.14008e380
int3