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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rsi, rdx
mov r14, rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r12w
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x80], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14005a061
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x14016aa68]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x14016aa78]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140059f40
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], r12b
jmp 0x14005a095
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_27
call fcn.140139918
mov rbx, rax
mov qword [rbp + 0x298], rax
test rax, rax
je 0x140059f8b
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14005a58a
jmp 0x140059f8e
mov rbx, r12
mov qword [rbp - 0x50], rbx
test rbx, rbx
je 0x14005a5ab
lea rax, [rsp + 0x50]
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 + 0x58]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14005a00a
mov rcx, qword [rbx]
test rcx, rcx
je 0x140059feb
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140059ffd
call fcn.140139b94
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.140139b94
test edi, edi
js 0x14005a050
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
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x14005a0f6
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 9
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.NOT_FOUND]
movsd qword [r14], xmm0
movzx eax, byte [0x14017a750]
mov byte [r14 + 8], al
mov byte [r14 + 9], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14005a0d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a0d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a2ec
call fcn.140139b94
mov rax, r14
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8, rsi
lea rdx, str.SELECT_VolumeSerialNumber_FROM_Win32_LogicalDisk_WHERE_DeviceID_s
lea rcx, [rbp + 0x50]
call fcn.1400478d0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_27
call fcn.140139918
mov rbx, rax
mov qword [rbp + 0x298], rax
test rax, rax
je 0x14005a154
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [rbp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14005a595
jmp 0x14005a157
mov rbx, r12
mov qword [rbp - 0x48], rbx
test rbx, rbx
je 0x14005a5ab
mov rsi, qword [rbx]
mov ecx, Ordinal_27
call fcn.140139918
mov rdi, rax
mov qword [rbp + 0x298], rax
test rax, rax
je 0x14005a19c
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x14017a600]
call fcn.14013aae0
mov qword [rdi], rax
jmp 0x14005a19f
mov rdi, r12
mov qword [rbp - 0x40], rdi
test rdi, rdi
je 0x14005a5b6
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, Ordinal_50
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x50]
call r15
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14005a210
mov rcx, qword [rdi]
test rcx, rcx
je 0x14005a1f0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14005a202
call fcn.140139b94
mov qword [rdi + 8], r12
mov edx, Ordinal_27
mov rcx, rdi
call fcn.140139b94
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14005a24f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a230
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005a242
call fcn.140139b94
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.140139b94
test esi, esi
jns 0x14005a2f3
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 9
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.NOT_FOUND]
movsd qword [r14], xmm0
movzx eax, byte [0x14017a750]
mov byte [r14 + 8], al
mov byte [r14 + 9], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14005a0d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a0d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a0d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp - 0x78], r12
mov dword [rbp + 0x290], r12d
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14005a4d7
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x290]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x78]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp eax, 1
je 0x14005a4d3
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.VolumeSerialNumber
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x14005a4ba
cmp word [rbp - 0x68], 8
jne 0x14005a4ba
mov rbx, qword [rbp - 0x60]
mov ecx, Ordinal_27
call fcn.140139918
mov rsi, rax
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14005a3ae
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
jne 0x14005a3b1
test rbx, rbx
jne 0x14005a5a0
jmp 0x14005a3b1
mov rsi, r12
mov qword [rbp - 0x30], rsi
test rsi, rsi
je 0x14005a57f
mov r9, qword [rsi]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x14005a3d0
mov rax, qword [rsp + 0x78]
cmp rdx, rax
ja 0x14005a412
lea rdi, [rsp + 0x60]
cmp rax, 7
cmova rdi, qword [rsp + 0x60]
mov qword [rsp + 0x70], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rbx], r12w
jmp 0x14005a41d
lea rcx, [rsp + 0x60]
call fcn.14006b650
nop
mov eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x14005a45c
mov rcx, qword [rsi]
test rcx, rcx
je 0x14005a43d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r12
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14005a44f
call fcn.140139b94
mov qword [rsi + 8], r12
mov edx, Ordinal_27
mov rcx, rsi
call fcn.140139b94
cmp qword [rsp + 0x70], 8
jne 0x14005a4b0
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 8]
cmp rax, 1
jb 0x14005a4a6
mov qword [rsp + 0x70], 9
lea rbx, [rsp + 0x60]
cmp rcx, 7
cmova rbx, qword [rsp + 0x60]
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 0x14005a4b0
lea rcx, [rsp + 0x60]
call fcn.14006b4b0
lea rcx, [rbp - 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x14005a310
jmp 0x14005a4d7
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rbp - 0x28]
call fcn.140068870
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
lea r9, [r8 + rcx*2]
mov rdx, r14
mov rcx, rax
call fcn.140069d50
nop
lea rcx, [rbp - 0x28]
call fcn.140068780
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14005a0d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a0d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a0d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x8007000e
call fcn.14013a9b0
nop
mov ecx, 0x8007000e
call fcn.14013a9b0
nop
mov ecx, 0x8007000e
call fcn.14013a9b0
nop
mov ecx, 0x8007000e
call fcn.14013a9b0
nop
mov ecx, 0x8007000e
call fcn.14013a9b0
nop
mov ecx, 0x8007000e
call fcn.14013a9b0
int3