Function at 0x140028d20
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 [0x1400c0040]
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 0x140028ee9
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 0x140028ee3
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9, [0x140099018]
xor edx, edx
mov r8d, 1
lea rcx, [0x140099028]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140028ee3
mov rax, qword [rbp - 0x59]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.14008f660
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140028e1b
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14002935c
jmp 0x140028e1e
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x140029372
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 0x140028e98
mov rcx, qword [rbx]
test rcx, rcx
je 0x140028e79
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140028e8b
call fcn.14008fbb0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008fbb0
test esi, esi
js 0x140028ed9
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 0x140028f13
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.14008f640
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 0x14002937d
cmp qword [rdi + 0x18], 7
jbe 0x140028f3c
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.14002c9c0
nop
mov r8d, 1
lea rdx, [0x1400a9320]
lea rcx, [rbp + 0xf]
call fcn.14000a7d0
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 0x140028fe7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028fe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028fe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008fbb0
movdqa xmm0, xmmword [0x1400ae0d0]
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.14008f660
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140029052
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 0x140029055
test rdi, rdi
jne 0x140029367
jmp 0x140029055
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x140029383
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.14008f660
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140029097
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400a9340]
call fcn.140091370
mov qword [rdi], rax
jmp 0x14002909a
mov rdi, r12
mov qword [rbp - 0x39], rdi
test rdi, rdi
je 0x140029351
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 0x14002910a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400290ea
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400290fc
call fcn.14008fbb0
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.14008fbb0
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140029149
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002912a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002913c
call fcn.14008fbb0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008fbb0
test esi, esi
jns 0x14002916e
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 0x140029306
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x61], r12d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400292ea
lea rdi, [0x1400a93d0]
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 0x1400292db
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, str.__PATH
call qword [rax + 0x20]
test eax, eax
js 0x1400292b8
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 0x1400292b8
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 0x140029282
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 0x140029291
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1400292a0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1400292af
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 0x140029190
jmp 0x1400292ea
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400292ea
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 0x140029349
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029344
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029344
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008fbb0
movzx eax, bl
jmp 0x140028eeb
mov ecx, 0x8007000e
call fcn.140091360
nop
mov ecx, 0x8007000e
call fcn.140091360
nop
mov ecx, 0x8007000e
call fcn.140091360
nop
mov ecx, 0x8007000e
call fcn.140091360
int3
call fcn.140003df0
nop
mov ecx, 0x8007000e
call fcn.140091360
int3