Function at 0x1400774a0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements
Reference wmi 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 - 0x800]
sub rsp, 0x900
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
mov r12, rcx
xor edx, edx
lea r14, [rdx - 1]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rsi, rax
test rax, rax
je 0x140077978
xor ebx, ebx
cmp dword [0x140267d18], ebx
jne 0x1400776b6
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14007767f
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ecx, eax
mov edx, 0x80000000
add eax, edx
test edx, eax
jne 0x140077555
cmp ecx, 0x80010119
jne 0x14007767f
lea rax, [0x140267d10]
mov qword [rsp + 0x20], rax
lea r9, [0x140245cf0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140245d00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14007767f
mov ecx, Ordinal_27
call fcn.1401d0330
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400775c0
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, str.rootCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
je 0x1400779b1
jmp 0x1400775c3
mov rdi, rbx
mov qword [rsp + 0x70], rdi
test rdi, rdi
je 0x1400779c7
mov rcx, qword [0x140267d10]
mov rax, qword [rcx]
lea rdx, [0x140267d08]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
call qword [rax + Ordinal_26]
mov r15d, eax
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140077646
mov rcx, qword [rdi]
test rcx, rcx
je 0x140077627
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140077639
call fcn.1401d0398
mov qword [rdi + 8], rbx
mov edx, Ordinal_27
mov rcx, rdi
call fcn.1401d0398
mov rcx, qword [0x140267d08]
test r15d, r15d
js 0x140077686
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400776ac
mov rcx, qword [0x140267d08]
mov dword [0x140267d18], ebx
test rcx, rcx
je 0x140077697
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x140267d10]
test rcx, rcx
je 0x140077978
jmp 0x140077972
mov dword [0x140267d18], 1
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsi + 2]
lea r8, str.SELECT__FROM_Win32_Process_WHERE_Name___s
mov edx, 0x800
lea rcx, [rbp - 0x10]
call fcn.1400773d0
mov qword [rsp + 0x68], rbx
mov ecx, Ordinal_27
call fcn.1401d0330
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14007771f
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, [rbp - 0x10]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x1400779bc
jmp 0x140077722
mov rsi, rbx
mov qword [rsp + 0x78], rsi
test rsi, rsi
je 0x1400779c7
mov ecx, Ordinal_27
call fcn.1401d0330
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140077763
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, [0x140245f2c]
call fcn.1401d13c0
mov qword [rdi], rax
jmp 0x140077766
mov rdi, rbx
mov qword [rbp - 0x80], rdi
test rdi, rdi
je 0x1400779a6
mov rcx, qword [0x140267d08]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov r9d, Ordinal_50
mov r8, qword [rsi]
mov rdx, qword [rdi]
call qword [rax + SHCreateDirectory]
mov r15d, eax
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x1400777df
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400777bf
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400777d1
call fcn.1401d0398
mov qword [rdi + 8], rbx
mov edx, Ordinal_27
mov rcx, rdi
call fcn.1401d0398
nop
mov eax, r14d
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x14007781c
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400777fd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14007780f
call fcn.1401d0398
mov qword [rsi + 8], rbx
mov edx, Ordinal_27
mov rcx, rsi
call fcn.1401d0398
test r15d, r15d
jns 0x14007782d
mov rcx, qword [0x140267d08]
jmp 0x14007768c
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140077972
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov r8d, 1
mov edx, r14d
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rsp + 0x58], 0
je 0x14007796d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, [0x140245f30]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x48]
xor r8d, r8d
lea rdx, str.SessionId
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.ProcessId
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.ExecutablePath
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rdx, r12
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140077959
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140077850
jmp 0x140077972
mov r8d, dword [rbp - 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, r14
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0x900]
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 ecx, 0x8007000e
call fcn.1401d13b0
nop
mov ecx, 0x8007000e
call fcn.1401d13b0
nop
mov ecx, 0x8007000e
call fcn.1401d13b0
nop
mov ecx, 0x8007000e
call fcn.1401d13b0
int3