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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov rax, qword [0x18001c010]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], rdx
lea rdx, str.SELECT
lea rcx, [rbp - 0x19]
call fcn.18000fa44
nop
mov rbx, r14
cmp qword [r14 + 0x18], 8
jb 0x18001208d
mov rbx, qword [r14]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x18001209a
mov rdx, qword [rsi]
or r12, 0xffffffffffffffff
mov r8, r12
xor r13d, r13d
inc r8
cmp word [rdx + r8*2], r13w
jne 0x1800120a4
lea rcx, [rbp - 0x19]
call fcn.180010748
mov r8d, 6
lea rdx, str._FROM
mov rcx, rax
call fcn.180010748
mov r8, r12
inc r8
cmp word [rbx + r8*2], r13w
jne 0x1800120cf
mov rdx, rbx
mov rcx, rax
call fcn.180010748
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], r13
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x21], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x180012500
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x18001215b
cmp eax, 0x80010119
jne 0x1800124f9
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
lea r9, [0x180017610]
mov r12d, 1
mov r8d, r12d
xor edx, edx
lea rcx, [0x180017620]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1800124f9
mov rdx, r15
lea rcx, [rbp - 0x71]
call fcn.1800026ac
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x1800121a5
mov rdx, qword [rcx]
jmp 0x1800121a8
mov rdx, r13
mov rcx, qword [rbp - 0x61]
mov rax, qword [rcx]
lea r8, [rbp - 0x69]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x18]
mov ebx, eax
lea rcx, [rbp - 0x71]
call fcn.18000273c
test ebx, ebx
jns 0x1800121ed
mov rcx, qword [rbp - 0x61]
jmp 0x1800124f3
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 7]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x180012227
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1800121e4
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x79]
call fcn.1800026ac
mov rbx, rax
lea rdx, [0x1800178b8]
lea rcx, [rbp - 0x71]
call fcn.1800026ac
nop
mov r8, qword [rbx]
test r8, r8
je 0x18001225f
mov r8, qword [r8]
jmp 0x180012262
mov r8, r13
mov rax, qword [rax]
test rax, rax
je 0x18001226f
mov rdx, qword [rax]
jmp 0x180012272
mov rdx, r13
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
lea r9, [rbp - 0x59]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r13
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebx, eax
lea rcx, [rbp - 0x71]
call fcn.18000273c
nop
lea rcx, [rbp - 0x79]
call fcn.18000273c
test ebx, ebx
js 0x18001221b
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x18001247d
lea r15, [0x18020b5d0]
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x51]
mov r8d, r12d
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp - 0x21], r13d
je 0x18001247d
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1800122f4
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x49]
xor r8d, r8d
call qword [rax + 0x20]
lea rdx, [0x18020b508]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x180012434
lea rdx, [0x18020b4b0]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x180012434
lea rdx, [0x18020b610]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x18001235d
movsx rax, word [rbp - 0x41]
jmp 0x180012438
lea rdx, [0x18020b4c8]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x180012379
mov eax, dword [rbp - 0x41]
jmp 0x180012438
lea rdx, [0x18020b590]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x180012396
movzx eax, word [rbp - 0x41]
jmp 0x180012438
lea rdx, [0x18020b520]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x1800123b3
mov rax, qword [rbp - 0x41]
jmp 0x180012438
lea rdx, [0x18020b470]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x1800123aa
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x71]
call fcn.1800026ac
nop
mov rbx, qword [rax]
test rbx, rbx
je 0x180012401
mov rcx, qword [rbx]
test rcx, rcx
je 0x180012401
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test rax, rax
je 0x18001253b
jmp 0x180012404
mov rax, r13
mov qword [rbp - 0x79], rax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x18001241c
mov qword [rdx], rax
add qword [rdi + 8], 8
jmp 0x180012429
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.180014790
nop
lea rcx, [rbp - 0x71]
call fcn.18000273c
jmp 0x18001245c
movsxd rax, dword [rbp - 0x41]
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
mov qword [rbp - 0x79], rax
je 0x180012450
mov qword [rdx], rax
add qword [rdi + 8], 8
jmp 0x18001245c
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.180014790
lea rcx, [rbp - 0x49]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
jne 0x1800122c4
mov r15, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r15
sub rcx, rdx
cmp rcx, 8
jae 0x1800124db
sar rcx, 3
cmp rcx, r12
jbe 0x18001249f
lea rax, [rdx + 8]
jmp 0x1800124d7
jae 0x1800124db
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 3
cmp rax, r12
jae 0x1800124bb
mov rcx, rdi
call fcn.180014644
jmp 0x1800124db
sub r12, rcx
lea rbx, [r12*8]
mov r8, rbx
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + rbx]
mov qword [rdi + 8], rax
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x61]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rbp - 0x19]
call fcn.18000f9e0
nop
mov rcx, r14
call fcn.18000f9e0
nop
mov rcx, rsi
call fcn.18000f9e0
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.180014930
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1800157c0
int3