Function at 0x140013450
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 - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14035f240]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rcx
mov qword [rbp - 0x80], rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140013620
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x140152838]
xor edx, edx
mov r8d, 1
lea rcx, [0x140152848]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14001361a
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_27
call fcn.140122620
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140013548
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 0x140013ab2
jmp 0x14001354b
mov rbx, r12
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140013ac8
lea rax, [rsp + 0x68]
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 [rsp + 0x70]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400135c8
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400135a9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400135bb
call fcn.1401228a4
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1401228a4
test edi, edi
js 0x14001360f
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 [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400136b2
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov r8d, 9
lea rdx, str.NOT_FOUND
mov rcx, rsi
call fcn.140006860
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140013684
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001367f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013aa0
call fcn.1401228a4
mov rax, rsi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1401224e0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r9, [0x140341208]
lea r8, str.SELECT_VolumeSerialNumber_FROM_Win32_LogicalDisk_WHERE_DeviceID_s
mov edx, 0x100
lea rcx, [rbp - 0x30]
call fcn.140011ff0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_27
call fcn.140122620
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140013723
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, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140013abd
jmp 0x140013726
mov rbx, r12
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140013ac8
mov r14, qword [rbx]
mov ecx, Ordinal_27
call fcn.140122620
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140013776
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, [0x1403410c0]
call fcn.1401221b0
mov qword [rdi], rax
jmp 0x140013779
mov rdi, r12
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x140013aa7
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, Ordinal_50
mov r8, r14
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x68]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400137ed
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400137cd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400137df
call fcn.1401228a4
mov qword [rdi + 8], r12
mov edx, Ordinal_27
mov rcx, rdi
call fcn.1401228a4
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14001382c
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001380d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001381f
call fcn.1401228a4
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1401228a4
test r14d, r14d
js 0x140013604
mov qword [rbp - 0x80], r12
mov dword [rbp - 0x58], r12d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001397e
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x80]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp eax, 1
je 0x140013979
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, str.VolumeSerialNumber
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x14001395f
cmp word [rbp - 0x50], 8
jne 0x14001395f
mov r9, qword [rbp - 0x48]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400138c0
mov rax, qword [rbp - 0x60]
cmp rdx, rax
ja 0x1400138fe
lea rdi, [rbp - 0x78]
cmp rax, 7
cmova rdi, qword [rbp - 0x78]
mov qword [rbp - 0x68], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r12w
jmp 0x140013907
lea rcx, [rbp - 0x78]
call fcn.140024040
cmp qword [rbp - 0x68], 8
jne 0x140013955
mov rcx, qword [rbp - 0x60]
lea rax, [rcx - 8]
cmp rax, 1
jb 0x14001394c
mov qword [rbp - 0x68], 9
lea rbx, [rbp - 0x78]
cmp rcx, 7
cmova rbx, qword [rbp - 0x78]
lea rcx, [rbx + 0xa]
mov r8d, 0xa
lea rdx, [rbx + 8]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 8], reloc.WLDAP32.dll_Ordinal_45
jmp 0x140013955
lea rcx, [rbp - 0x78]
call fcn.140023ec0
lea rcx, [rbp - 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x140013850
jmp 0x14001397e
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp qword [rbp - 0x68], 0
jne 0x1400139cc
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
xor r8d, r8d
lea rdx, [0x14033f4c8]
mov rcx, rsi
call fcn.140006860
jmp 0x140013a5d
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova r8, qword [rbp - 0x78]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, dword [rbp - 0x68]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140022ee0
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova r8, qword [rbp - 0x78]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rbp - 0x68]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140013684
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001367f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001367f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x8007000e
call fcn.140122080
nop
mov ecx, 0x8007000e
call fcn.140122080
nop
mov ecx, 0x8007000e
call fcn.140122080
nop
mov ecx, 0x8007000e
call fcn.140122080
int3