Function at 0x18001e1d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor ebx, ebx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov qword [rbp + 7], rbx
mov qword [rbp + 0x6f], rbx
mov qword [rbp + 0x7f], rbx
mov qword [rbp - 9], rbx
mov qword [rbp + 0x77], rbx
mov qword [rbp - 1], rbx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test eax, eax
js 0x18001e43a
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edi, eax
test eax, eax
js 0x18001e43a
lea rax, [rbp + 7]
lea r9, [0x18002c930]
lea r8d, [rbx + 1]
lea rcx, [0x18002ca00]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp + 7]
lea rdx, [rbp + 0x6f]
xor r9d, r9d
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rdx, str.ROOTCIMV2
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [rax + reloc.ODBC32.dll_SQLAllocHandle]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp + 0x6f]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
lea edx, [rbx + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp + 0x6f]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x28], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, str.Win32_Process
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x30]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp + 0x7f]
lea r9, [rbp - 9]
lea rdx, str.Create
mov rax, qword [rcx]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [rax + SQLDataSourcesW]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp - 9]
lea r8, [rbp + 0x77]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x78]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp + 0x77]
mov eax, 8
mov qword [rbp + 0x17], rsi
mov word [rbp + 0xf], ax
mov rax, qword [rcx]
lea r9, [rbp + 0xf]
lea rdx, str.CommandLine
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [rax + 0x28]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp + 0x6f]
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 1]
mov r10, qword [rcx]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea r8, str.Create
lea rdx, str.Win32_Process
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [r10 + 0xc0]
mov edi, eax
test eax, eax
js 0x18001e43a
mov rcx, qword [rbp - 1]
lea r9, [rbp + 0x27]
lea rdx, str.ProcessId
mov rax, qword [rcx]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [rax + 0x20]
mov edi, eax
test eax, eax
js 0x18001e43a
mov r8d, dword [rbp + 0x2f]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18001e42e
mov edi, 0x5b4
mov ecx, 0x54f
cmp eax, 0x102
cmovne edi, ecx
jmp 0x18001e430
mov edi, ebx
lea rcx, [rbp + 0x27]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x18001e449
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18001e458
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x18001e467
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x18001e476
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x18001e485
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x18001e494
mov rdx, qword [rcx]
call qword [rdx + SQLNumResultCols]
call qword [sym.imp.ole32.dll_CoUninitialize]
test edi, edi
cmovs ebx, edi
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret