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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rdi, rcx
xor esi, esi
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x41], rsi
call qword [0xbef0e560]
lea rax, [rbp - 0x41]
xor edx, edx
lea r9, [0xbeef1ab0]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rcx, [0xbeef1aa0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0xbef00791
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x51]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rsi
lea rdx, [0xbeef3914]
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov rax, qword [rcx]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [rax + 0x18]
test eax, eax
jne 0xbef00787
mov rcx, qword [rbp - 0x51]
lea r8, [rbp - 0x39]
lea rdx, [0xbeef1ac0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0xbeefffe2
mov rcx, qword [rbp - 0x39]
mov r9d, 0xffffffff
mov rdx, qword [rbp - 0x51]
mov r8d, r9d
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rsi
mov rax, qword [rcx]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], 0xffffffffffffffff
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeef37b4]
mov r9d, 0x30
mov qword [rsp + 0x120], rbx
lea rdx, [0xbeef37a4]
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbef00251
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef00247
nop dword [rax + rax]
cmp dword [rbp + 0x6f], esi
je 0xbef00247
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef33e0]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef00213
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef00213
cmp rcx, qword [0xbef0dab8]
ja 0xbef00213
mov rax, qword [0xbef0e520]
lea rdx, [0xbeef3400]
mov r8d, 6
call rax
test eax, eax
je 0xbef00209
mov rax, qword [0xbef0e520]
lea rdx, [0xbeef3410]
mov rcx, qword [rbp - 0x61]
mov r8d, 0xa
call rax
test eax, eax
je 0xbef00209
mov rax, qword [0xbef0e520]
lea rdx, [0xbeef3428]
mov rcx, qword [rbp - 0x61]
mov r8d, 9
call rax
test eax, eax
je 0xbef00209
mov rax, qword [0xbef0e4c0]
lea rdx, [0xbeef3440]
mov rcx, qword [rbp - 0x61]
call rax
test rax, rax
je 0xbef00209
mov rax, qword [0xbef0e4c0]
lea rdx, [0xbeef3450]
mov rcx, qword [rbp - 0x61]
call rax
test rax, rax
je 0xbef00209
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef3460]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef00213
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef00213
cmp rcx, qword [0xbef0dab8]
ja 0xbef00213
mov r8d, 5
lea rdx, [0xbeef3478]
call qword [0xbef0e520]
mov rcx, qword [rbp - 0x61]
mov ebx, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
je 0xbef00213
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef3488]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef00213
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef00213
cmp rcx, qword [0xbef0dab8]
ja 0xbef00213
mov rbx, qword [0xbef0e538]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x29]
lea r8d, [rax + rax]
call rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0xbef00050
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeef3834]
mov r9d, 0x30
mov qword [rsp + 0x20], rsi
lea rdx, [0xbeef37a4]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbef00350
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef00350
cmp dword [rbp + 0x6f], esi
je 0xbef00350
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef34a0]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0031c
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef0031c
cmp rcx, qword [0xbef0dab8]
ja 0xbef0031c
mov rbx, qword [0xbef0e538]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x29]
lea r8d, [rax + rax]
call rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0xbef002b2
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeef38c4]
mov r9d, 0x30
mov qword [rsp + 0x20], rsi
lea rdx, [0xbeef37a4]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbef0044f
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0044f
cmp dword [rbp + 0x6f], esi
je 0xbef0044f
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef34c0]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0041b
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef0041b
cmp rcx, qword [0xbef0dab8]
ja 0xbef0041b
mov rbx, qword [0xbef0e538]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x29]
lea r8d, [rax + rax]
call rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0xbef003b1
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeef3934]
mov r9d, 0x30
mov qword [rsp + 0x20], rsi
lea rdx, [0xbeef37a4]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbef0054e
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0054e
cmp dword [rbp + 0x6f], esi
je 0xbef0054e
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef34a0]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0051a
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef0051a
cmp rcx, qword [0xbef0dab8]
ja 0xbef0051a
mov rbx, qword [0xbef0e538]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x29]
lea r8d, [rax + rax]
call rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0xbef004b0
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeef3764]
mov r9d, 0x30
mov qword [rsp + 0x20], rsi
lea rdx, [0xbeef37a4]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbef0064e
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0064e
nop
cmp dword [rbp + 0x6f], esi
je 0xbef0064e
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef34d8]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0061a
mov rcx, qword [rbp - 0x61]
cmp rcx, qword [0xbef0dab0]
jb 0xbef0061a
cmp rcx, qword [0xbef0dab8]
ja 0xbef0061a
mov rbx, qword [0xbef0e538]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x29]
lea r8d, [rax + rax]
call rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0xbef005b0
mov rbx, qword [rsp + 0x120]
test rdi, rdi
je 0xbef0077d
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeef3714]
mov r9d, 0x30
mov qword [rsp + 0x20], rsi
lea rdx, [0xbeef37a4]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbef0077d
mov rcx, qword [rbp + 0x7f]
lea r8, [rbp + 0x6f]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 0x77]
mov edx, 0xffffffff
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef0077d
cmp dword [rbp + 0x6f], esi
je 0xbef0077d
mov rcx, qword [rbp + 0x77]
lea r9, [rbp - 0x69]
mov qword [rsp + 0x28], rsi
lea rdx, [0xbeef34f0]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbef00773
lea rax, [rbp - 0x49]
xor edx, edx
lea r9, [0xbeef1a90]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rcx, [0xbeef1a80]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0xbef00769
mov rcx, qword [rbp - 0x49]
mov rdx, qword [rbp - 0x61]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x31]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x168]
test eax, eax
js 0xbef0075f
mov rcx, qword [rbp - 0x31]
lea rdx, [0xbeef3508]
mov r8, rdi
call qword [0xbef0e558]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbp - 0x29]
call qword [0xbef0e498]
mov rax, qword [rbp + 0x2f]
sub rax, qword [rbp + 0x37]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret