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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400ac2c0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor r15d, r15d
lea r12, [0x1400afea0]
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400115fd
xorps xmm0, xmm0
movups xmmword [0x1400afea0], xmm0
mov qword [0x1400afeb0], r15
mov qword [0x1400afeb8], r15
mov r8d, 0x19
lea rdx, str.COM_Initialization_Failed
mov rcx, r12
call fcn.140005560
mov rax, r12
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140062690
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x140090508]
xor edx, edx
mov r8d, 1
lea rcx, [0x140090518]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140011656
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1400afea0], xmm0
mov qword [0x1400afeb0], r15
mov qword [0x1400afeb8], r15
mov r8d, 0x1d
lea rdx, str.Failed_to_create_IWbemLocator
jmp 0x1400115c2
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.1400626b8
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400116aa
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140011bf4
jmp 0x1400116ad
mov rbx, r15
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140011bff
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x70]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140011728
mov rcx, qword [rbx]
test rcx, rcx
je 0x140011709
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001171b
call fcn.1400626b0
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.1400626b0
test edi, edi
jns 0x140011766
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1400afea0], xmm0
mov qword [0x1400afeb0], r15
mov qword [0x1400afeb8], r15
mov r8d, 0x18
lea rdx, str.Failed_to_connect_to_WMI
jmp 0x1400115c2
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400117dd
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1400afea0], xmm0
mov qword [0x1400afeb0], r15
mov qword [0x1400afeb8], r15
mov r8d, 0x1b
lea rdx, str.Failed_to_set_proxy_blanket
jmp 0x1400115c2
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.1400626b8
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14001182a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_NetworkAdapterConfiguration_WHERE_IPEnabled__TRUE
call fcn.140062360
mov qword [rbx], rax
jmp 0x14001182d
mov rbx, r15
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140011bff
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.1400626b8
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14001187d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r15
mov dword [rdi + 0x10], 1
lea rcx, [0x14009a4d8]
call fcn.140062360
mov qword [rdi], rax
jmp 0x140011880
mov rdi, r15
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x140011c0a
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, gethostbyname
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x78]
call r14
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400118f1
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400118d1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400118e3
call fcn.1400626b0
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.1400626b0
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140011930
mov rcx, qword [rbx]
test rcx, rcx
je 0x140011911
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140011923
call fcn.1400626b0
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.1400626b0
test esi, esi
jns 0x140011978
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1400afea0], xmm0
mov qword [0x1400afeb0], r15
mov qword [0x1400afeb8], r15
mov r8d, 0x21
lea rdx, str.Query_for_network_adapters_failed
jmp 0x1400115c2
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x40], r15d
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x30]
call fcn.140088570
lea rcx, [rbp - 0x30]
call fcn.140051350
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140011b4f
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x60]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp - 0x40], 0
je 0x140011b4f
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x58]
xor r8d, r8d
lea rdx, str.Description
call qword [rax + 0x20]
test eax, eax
js 0x140011a7d
mov rdx, qword [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140011400
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140011a1b
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14005d490
lea rdx, [0x14009a584]
mov rcx, rax
call fcn.140057bd0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140011a73
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011a6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011c15
call fcn.1400626b0
lea rcx, [rbp - 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x58]
xor r8d, r8d
lea rdx, str.MACAddress
call qword [rax + 0x20]
test eax, eax
js 0x140011b38
lea rdx, str.MAC:
lea rcx, [rbp - 0x30]
call fcn.140057bd0
mov rbx, rax
mov rdx, qword [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140011400
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140011ad7
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14005d490
lea rdx, [0x14009a584]
mov rcx, rax
call fcn.140057bd0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140011b2e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011bee
call fcn.1400626b0
lea rcx, [rbp - 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
jne 0x1400119b0
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.140055890
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.140051110
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rdx, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rdx
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rbp + rdx - 0x34], r8d
lea rcx, vtable.std::ios_base.0
mov qword [rbp + 0x58], rcx
lea rcx, [rbp + 0x58]
call fcn.14006133c
nop
jmp 0x1400115ca
call fcn.14007025c
nop
mov ecx, 0x8007000e
call fcn.140062230
nop
mov ecx, 0x8007000e
call fcn.140062230
nop
mov ecx, 0x8007000e
call fcn.140062230
nop
call fcn.14007025c
int3