Function at 0x180012548
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 0x1800125a1
mov rbx, qword [r14]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1800125ae
mov rdx, qword [rsi]
or r12, 0xffffffffffffffff
mov r8, r12
xor r13d, r13d
inc r8
cmp word [rdx + r8*2], r13w
jne 0x1800125b8
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 0x1800125e3
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 0x1800129fe
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 0x18001266f
cmp eax, 0x80010119
jne 0x1800129f7
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 0x1800129f7
mov rdx, r15
lea rcx, [rbp - 0x79]
call fcn.1800026ac
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x1800126b9
mov rdx, qword [rcx]
jmp 0x1800126bc
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 - 0x79]
call fcn.18000273c
test ebx, ebx
jns 0x180012701
mov rcx, qword [rbp - 0x61]
jmp 0x1800129f1
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 0x18001273b
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1800126f8
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x71]
call fcn.1800026ac
mov rbx, rax
lea rdx, [0x1800178b8]
lea rcx, [rbp - 0x79]
call fcn.1800026ac
nop
mov r8, qword [rbx]
test r8, r8
je 0x180012773
mov r8, qword [r8]
jmp 0x180012776
mov r8, r13
mov rax, qword [rax]
test rax, rax
je 0x180012783
mov rdx, qword [rax]
jmp 0x180012786
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 - 0x79]
call fcn.18000273c
nop
lea rcx, [rbp - 0x71]
call fcn.18000273c
test ebx, ebx
js 0x18001272f
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x18001297b
lea r15, [0x18020b4b0]
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 0x18001297b
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x180012808
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 0x180012934
mov rdx, r15
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x180012934
lea rdx, [0x18020b610]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x18001286c
movsx eax, word [rbp - 0x41]
jmp 0x180012938
lea rdx, [0x18020b4c8]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x180012934
lea rdx, [0x18020b590]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x1800128a1
movzx eax, word [rbp - 0x41]
jmp 0x180012938
lea rdx, [0x18020b520]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x180012934
lea rdx, [0x18020b470]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x180012934
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x71]
call fcn.1800026ac
nop
mov rbx, qword [rax]
test rbx, rbx
je 0x180012903
mov rcx, qword [rbx]
test rcx, rcx
je 0x180012903
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 0x180012a39
jmp 0x180012906
mov rax, r13
mov dword [rbp - 0x79], eax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x18001291c
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x180012929
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.1800144c4
nop
lea rcx, [rbp - 0x71]
call fcn.18000273c
jmp 0x18001295a
mov rax, qword [rbp - 0x41]
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
mov dword [rbp - 0x79], eax
je 0x18001294e
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x18001295a
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.1800144c4
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 0x1800127d8
mov r15, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r15
sub rcx, rdx
cmp rcx, 4
jae 0x1800129d9
sar rcx, 2
cmp rcx, r12
jbe 0x18001299d
lea rax, [rdx + 4]
jmp 0x1800129d5
jae 0x1800129d9
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 2
cmp rax, r12
jae 0x1800129b9
mov rcx, rdi
call fcn.180014378
jmp 0x1800129d9
sub r12, rcx
lea rbx, [r12*4]
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