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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x140499908]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd r13, ecx
xor esi, esi
mov r12d, r8d
mov r14, rdx
mov edi, esi
mov r15, r13
cmp r13, 7
jae 0x1400a4f31
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x1400a4bac
call qword [sym.imp.ole32.dll_CoUninitialize]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor edx, edx
mov qword [rbp - 0x21], rsi
lea rax, [rbp - 0x21]
lea r9, [0x1404317a8]
mov qword [rsp + 0x20], rax
lea rcx, [0x140431798]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400a4be7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x1400a4d01
mov ecx, 0x18
mov qword [rsp + 0x100], rbx
mov qword [rbp - 0x29], rsi
call fcn.1400a5060
mov rbx, rax
test rax, rax
je 0x1400a4f4f
xor eax, eax
lea rcx, str.ROOTCIMV2
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400a4f39
mov rcx, qword [rbp - 0x21]
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov rdx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov rax, qword [rcx]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [rax + 0x18]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400a4ca4
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a4c85
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400a4c97
call fcn.1400a50bc
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.140082650
test esi, esi
js 0x1400a4ce4
mov rcx, qword [rbp - 0x29]
xor ebx, ebx
mov dword [rsp + 0x38], ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 3
lea edx, [rbx + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400a4d20
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14025d560
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
mov qword [rbp - 0x19], rbx
add r15, r15
lea rcx, [rbp - 0x31]
mov rdx, qword [rax + r15*8]
call fcn.1400a4f60
mov rcx, qword [rax]
test rcx, rcx
je 0x1400a4d48
mov rsi, qword [rcx]
jmp 0x1400a4d4b
mov rsi, rbx
mov ecx, 0x18
call fcn.1400a5060
mov rbx, rax
test rax, rax
je 0x1400a4d82
xor eax, eax
lea rcx, [0x140444a58]
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
call fcn.14025e8c0
mov qword [rbx], rax
jmp 0x1400a4d84
xor ebx, ebx
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x1400a4f44
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x28], rdx
mov r9d, gethostbyname
mov rdx, qword [rbx]
mov r8, rsi
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
call qword [rax + LoadRegTypeLib]
lea rcx, [rbp - 0x39]
mov ebx, eax
call fcn.1400a4fe0
lea rcx, [rbp - 0x31]
call fcn.1400a4fe0
test ebx, ebx
jns 0x1400a4df4
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
jmp 0x1400a4cf9
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400a4f0a
mov rbx, r14
xor esi, esi
nop word [rax + rax]
mov qword [rbp - 0x11], rsi
mov dword [rbp + 0xf], esi
test r14, r14
je 0x1400a4e25
cmp edi, r12d
jge 0x1400a4f0a
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x11]
or edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0xf], esi
je 0x1400a4f06
test r14, r14
je 0x1400a4ee4
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x11]
lea rdx, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
mov rdx, qword [rdx + r15*8 + 8]
lea r9, [rbp - 9]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r8, qword [rbp - 1]
mov edx, 0x80
sub r8, rbx
mov rax, rbx
lea rcx, [rdx + 0x7fffff7e]
test rcx, rcx
je 0x1400a4eb8
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1400a4eb8
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400a4e93
jmp 0x1400a4ebd
test rdx, rdx
jne 0x1400a4ec1
sub rax, 2
lea rcx, [rbp - 9]
mov word [rax], si
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
movsxd rdx, edi
mov ecx, r13d
shl rdx, 8
add rdx, r14
call fcn.1400a4a10
test eax, eax
je 0x1400a4eed
inc edi
add rbx, 0x100
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x1400a4e10
jmp 0x1400a4f0a
mov rcx, qword [rbp - 0x19]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x21]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x1400a4cf9
or eax, 0xffffffff
jmp 0x1400a4d01
mov ecx, 0x8007000e
call fcn.14025e890
int3
mov ecx, 0x8007000e
call fcn.14025e890
int3
mov ecx, 0x8007000e
call fcn.14025e890
int3