Function at 0x140028ca0
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 [0x1400bf040]
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 0x140028e69
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 0x140028e63
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9, [0x140098018]
xor edx, edx
mov r8d, 1
lea rcx, [0x140098028]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140028e63
mov rax, qword [rbp - 0x59]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.14008ded0
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140028d9b
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 0x1400292dc
jmp 0x140028d9e
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x1400292f2
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 0x140028e18
mov rcx, qword [rbx]
test rcx, rcx
je 0x140028df9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140028e0b
call fcn.14008e420
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008e420
test esi, esi
js 0x140028e59
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 0x140028e93
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.14008deb0
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 0x1400292fd
cmp qword [rdi + 0x18], 7
jbe 0x140028ebc
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.14002c940
nop
mov r8d, 1
lea rdx, [0x1400a81b0]
lea rcx, [rbp + 0xf]
call fcn.14000a620
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 0x140028f67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028f62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028f62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008e420
movdqa xmm0, xmmword [0x1400aceb0]
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.14008ded0
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140028fd2
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 0x140028fd5
test rdi, rdi
jne 0x1400292e7
jmp 0x140028fd5
mov rbx, r12
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x140029303
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.14008ded0
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140029017
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400a81d0]
call fcn.14008fbe0
mov qword [rdi], rax
jmp 0x14002901a
mov rdi, r12
mov qword [rbp - 0x39], rdi
test rdi, rdi
je 0x1400292d1
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 0x14002908a
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002906a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002907c
call fcn.14008e420
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.14008e420
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400290c9
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400290aa
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400290bc
call fcn.14008e420
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.14008e420
test esi, esi
jns 0x1400290ee
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 0x140029286
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x61], r12d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14002926a
lea rdi, [0x1400a8260]
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 0x14002925b
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 0x140029238
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 0x140029238
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 0x140029202
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 0x140029211
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140029220
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14002922f
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 0x140029110
jmp 0x14002926a
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14002926a
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 0x1400292c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400292c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400292c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008e420
movzx eax, bl
jmp 0x140028e6b
mov ecx, 0x8007000e
call fcn.14008fbd0
nop
mov ecx, 0x8007000e
call fcn.14008fbd0
nop
mov ecx, 0x8007000e
call fcn.14008fbd0
nop
mov ecx, 0x8007000e
call fcn.14008fbd0
int3
call fcn.140003d20
nop
mov ecx, 0x8007000e
call fcn.14008fbd0
int3