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

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x1400201b0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rcx, qword [0x140021be8]
xor ebx, ebx
test rcx, rcx
je 0x140008f06
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140021be8], rbx
mov rcx, qword [0x140021be0]
test rcx, rcx
je 0x140008f1f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140021be0], rbx
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]
test eax, eax
jns 0x140008f5c
cmp eax, 0x80010119
je 0x140008f5c
xor eax, eax
jmp 0x14000942b
xor edx, edx
lea rax, [0x140021be0]
lea r9, [0x14001a018]
lea rcx, [0x14001a0e8]
lea r8d, [rdx + 1]
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140008fa4
mov rdi, qword [0x140021be8]
mov rcx, rbx
mov qword [0x140021be0], rbx
jmp 0x1400093f3
mov rcx, qword [0x140021be0]
lea rdx, [0x140021be8]
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.ROOTWMI
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [rax + 0x18]
test eax, eax
jns 0x140008ffa
mov rcx, qword [0x140021be0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140021be8], rbx
jmp 0x14000941a
mov rcx, qword [0x140021be8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140009078
mov rdi, qword [0x140021be8]
test rdi, rdi
je 0x14000904c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rdi, rbx
mov qword [0x140021be8], rbx
mov rcx, qword [0x140021be0]
test rcx, rcx
je 0x1400093f3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [0x140021be8]
mov rcx, rbx
mov qword [0x140021be0], rbx
jmp 0x1400093f3
mov rcx, qword [0x140021be8]
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea r8d, [r9 + 0x31]
lea rdx, str.MyWMIARGClass1
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400090dd
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400093e5
mov rax, qword [rcx]
mov qword [rsp + 0x1b0], rbp
mov qword [rsp + 0x1b8], rsi
mov qword [rsp + 0x1c8], r12
lea r9, [rsp + 0x68]
lea rdx, str.InstanceName
xor r8d, r8d
mov qword [rsp + 0x198], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x190], r14
mov qword [rsp + 0x20], rbx
call qword [rax + 0x20]
mov r8, qword [rsp + 0x70]
lea r13, [0x140021b60]
mov edx, 0x40
mov rcx, r13
call fcn.140009e60
lea rcx, [rsp + 0x68]
call qword [0x1400193c8]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
mov esi, ebx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1400091e4
lea r12d, [rax + 0x3f]
mov rbp, r13
cmp word [rbp], 0x5c
jne 0x1400091c2
movsxd rdi, esi
lea rcx, [rsp + 0x80]
mov edx, 0x80
lea r8, [r13 + rdi*2]
call fcn.140009e60
lea rcx, [r13 + rdi*2 + 2]
lea r8, [rsp + 0x80]
movsxd rdx, r12d
call fcn.140009e60
add esi, 1
sub r12d, 1
add rbp, 2
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
add esi, 1
sub r12d, 1
not rcx
add rbp, 2
sub rcx, 1
cmp esi, ecx
jl 0x140009181
mov edi, 1
lea rsi, [0x140021a10]
lea rbp, [0x140021af0]
lea r12d, [rdi + 6]
lea r14, [0x140002000]
nop
nop
nop
nop
lea r8, str.MyWMIARGClass_d.InstanceName__s_
lea rcx, [rsp + 0x80]
mov r9d, edi
mov edx, 0x80
mov qword [rsp + 0x20], r13
call fcn.14000b190
lea rcx, [rsp + 0x80]
call qword [0x1400193a8]
lea r8, str.MyWMIPayloadClass_d.InstanceName__s_
lea rcx, [rsp + 0x80]
mov r9d, edi
mov edx, 0x80
mov qword [rsp + 0x20], r13
mov qword [rbx + r14 + 0x1f9d8], rax
call fcn.14000b190
lea rcx, [rsp + 0x80]
call qword [0x1400193a8]
lea r8, str.WAG_d
mov r9d, edi
mov edx, 8
mov rcx, rbp
mov qword [rbx + r14 + 0x1f9a0], rax
call fcn.14000b190
lea r8, str.WPD_d
mov r9d, edi
mov edx, 0x10
mov rcx, rsi
call fcn.14000b190
add edi, 1
add rbp, 0x10
add rsi, 0x20
add rbx, 8
sub r12, 1
jne 0x140009210
lea r8, str.MyWMIEventCodeClass.InstanceName__s_
lea rcx, [rsp + 0x80]
mov r9, r13
mov edx, 0x80
call fcn.14000b190
lea rcx, [rsp + 0x80]
call qword [0x1400193a8]
lea r8, str.MyWMIMethodClass.InstanceName__s_
lea rcx, [rsp + 0x80]
mov r9, r13
mov edx, 0x80
mov qword [0x140021980], rax
call fcn.14000b190
lea rcx, [rsp + 0x80]
call qword [0x1400193a8]
lea rcx, str.MyWMIMethodClass
mov qword [0x140021998], rax
call qword [0x1400193a8]
lea rcx, str.MyFn1
mov qword [0x140021990], rax
call qword [0x1400193a8]
lea r8, str.MyWMIInitClass.InstanceName__s_
lea rcx, [rsp + 0x80]
mov r9, r13
mov edx, 0x80
mov qword [0x140021988], rax
call fcn.14000b190
lea rcx, [rsp + 0x80]
call qword [0x1400193a8]
lea r8, str.MyWMIWatchDogClass.InstanceName__s_
lea rcx, [rsp + 0x80]
mov r9, r13
mov edx, 0x80
mov qword [0x140021978], rax
call fcn.14000b190
lea rcx, [rsp + 0x80]
call qword [0x1400193a8]
mov qword [0x140021970], rax
call fcn.140008d80
mov r14, qword [rsp + 0x190]
mov r13, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x1b8]
mov rbp, qword [rsp + 0x1b0]
lea ebx, [r12 + 1]
mov r12, qword [rsp + 0x1c8]
jmp 0x140009421
mov rdi, qword [0x140021be8]
mov rcx, qword [0x140021be0]
test rdi, rdi
je 0x14000940f
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
mov rcx, qword [0x140021be0]
mov qword [0x140021be8], rbx
test rcx, rcx
je 0x140009421
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [0x140021be0], rbx
mov rdi, qword [rsp + 0x1c0]
mov eax, ebx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140009d20
add rsp, 0x1a0
pop rbx
ret