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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x14019f0c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
mov qword [rbp - 0x29], rcx
xor r12d, r12d
mov dword [rbp - 0x71], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 7], r12b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14003a24e
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
mov r8d, 3
lea rdx, [0x140146244]
mov rcx, r14
call fcn.140044700
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14003a223
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a21e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a791
call fcn.1401159d4
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401152a0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
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]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea r9, [0x1401458c8]
xor edx, edx
mov r8d, 1
lea rcx, [0x1401458d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rax, qword [rbp - 0x31]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_26
call fcn.140115680
mov rbx, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x14003a2f5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14003a79e
jmp 0x14003a2f8
mov rbx, r12
mov qword [rbp - 0x79], rbx
test rbx, rbx
je 0x14003a7af
lea rax, [rbp - 0x39]
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 - 0x31]
call rdi
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14003a371
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003a352
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003a364
call fcn.1401159d4
mov qword [rbx + 8], r12
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1401159d4
mov rax, qword [rbp - 0x39]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_26
call fcn.140115680
mov rbx, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x14003a3bd
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT_MACAddress_FROM_Win32_NetworkAdapterConfiguration_WHERE_IPEnabled__TRUE
call fcn.1401166f0
mov qword [rbx], rax
jmp 0x14003a3c0
mov rbx, r12
mov qword [rbp - 0x79], rbx
test rbx, rbx
je 0x14003a7af
mov rsi, qword [rbx]
mov ecx, Ordinal_26
call fcn.140115680
mov rdi, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14003a40e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, [0x140184e64]
call fcn.1401166f0
mov qword [rdi], rax
jmp 0x14003a411
mov rdi, r12
mov qword [rbp - 0x69], rdi
test rdi, rdi
je 0x14003a7ba
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x39]
call r15
nop
mov eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x14003a480
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003a460
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003a472
call fcn.1401159d4
mov qword [rdi + 8], r12
mov edx, Ordinal_26
mov rcx, rdi
call fcn.1401159d4
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14003a4bf
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003a4a0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003a4b2
call fcn.1401159d4
mov qword [rbx + 8], r12
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1401159d4
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14003a56d
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp - 1]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x29]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp - 1], 0
je 0x14003a569
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x21]
xor r8d, r8d
lea rdx, str.MACAddress
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp word [rbp - 0x21], 8
jne 0x14003a546
mov rcx, qword [rbp - 0x19]
call fcn.1401165d0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14003a530
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400436c0
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
jne 0x14003a4d0
jmp 0x14003a56d
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rdi, qword [rbp + 0x17]
xorps xmm0, xmm0
test rdi, rdi
jne 0x14003a5c9
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
mov r8d, 3
lea rdx, [0x140146244]
lea rcx, [rbp - 0x61]
call fcn.140044700
lea rax, [rbp - 0x61]
mov ebx, 2
jmp 0x14003a6a6
movups xmmword [rbp - 0x21], xmm0
lea rsi, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rsi, qword [rbp + 7]
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x14003a798
cmp rdi, 0xf
ja 0x14003a60c
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x21], xmm0
jmp 0x14003a69d
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x14003a648
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140115680
mov rcx, rax
test rax, rax
je 0x14003a746
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14003a682
mov rbx, rax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x14003a665
mov rax, r12
jmp 0x14003a682
cmp rcx, 0x1000
jb 0x14003a67d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a7a9
jmp 0x14003a626
call fcn.140115680
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x21]
mov ebx, 4
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 1
test bl, 4
je 0x14003a70f
and ebx, 0xfffffffb
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14003a70f
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a709
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a709
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401159d4
nop
test bl, 2
je 0x14003a753
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x14003a753
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a74d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a74d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401159d4
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14003a223
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a21e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a21e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140037170
nop
mov ecx, 0x8007000e
call fcn.1401165c0
nop
call fcn.140002d50
int3
mov ecx, 0x8007000e
call fcn.1401165c0
nop
mov ecx, 0x8007000e
call fcn.1401165c0
int3