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

Disassembly:
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
xor r14d, r14d
mov rbx, rdx
mov qword [rbp + 0xf], r14
mov rdi, rcx
mov qword [rbp + 0x1f], r14
test rcx, rcx
jne 0x140061f1f
lea r8, str.nameSpace
lea rdx, str.WMI_ConnectToWMI:__s_failed
mov ecx, 1
call fcn.140061e50
xor al, al
add rsp, 0x88
pop r14
pop rdi
pop rbx
pop rbp
ret
test rbx, rbx
jne 0x140061f2d
lea r8, str.servicesResult
jmp 0x140061eff
mov qword [rdx], r14
lea rax, [rbp + 0xf]
xor edx, edx
mov qword [rsp + 0x80], rsi
lea r9, [0x1400af588]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400af578]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
jns 0x140061f85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, esi
lea rdx, str.WMI_ConnectToWMI:_Could_not_create_namespace_locator:_0x_08x_0x_08x
mov r9d, eax
mov ecx, 1
call fcn.140061e50
xor al, al
jmp 0x140062237
lea rdx, str.WMI_ConnectToWMI:_created_namespace_locator
mov ecx, reloc.WS2_32.dll_recv
call fcn.140061e50
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
jne 0x140061fce
lea rdx, str.WMI_ConnectToWMI:_Failed_to_allocate_string_for_namespace
lea ecx, [rax + 1]
call fcn.140061e50
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007e54.0]
xor al, al
jmp 0x140062237
lea rdx, str.WMI_ConnectToWMI:_Connecting_to_WMI_server
mov ecx, 0x20
call fcn.140061e50
mov rcx, qword [rbp + 0xf]
lea rdx, [rbp + 0x1f]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rsi
mov rax, qword [rcx]
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r14
mov rax, qword [rax + 0x18]
call qword [case.0x140007e54.0]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0xf]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x140007e54.0]
mov qword [rbp + 0xf], r14
test edi, edi
jns 0x140062081
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x8004100e
jne 0x140062063
lea rdx, str.WMI_ConnectToWMI:_Failed_to_connect_since_namespace_doesnt_exist
mov ecx, 4
call fcn.140061e50
xor al, al
jmp 0x140062237
mov r9d, eax
lea rdx, str.WMI_ConnectToWMI:_Failed_to_connect_to_namespace_server:_0x_08x_0x_08x
mov r8d, edi
mov ecx, 1
call fcn.140061e50
xor al, al
jmp 0x140062237
lea rdx, str.WMI_ConnectToWMI:_Connected_to_WMI_server
mov ecx, 0x20
call fcn.140061e50
mov rdi, qword [rbp + 0x1f]
mov dword [rbp + 0xb], r14d
mov dword [rbp + 7], r14d
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x67], r14d
mov dword [rbp + 0x77], r14d
mov dword [rbp + 0x7f], r14d
test rdi, rdi
jne 0x1400620c2
lea rdx, str.AdjustSecurity:_invalid_parameter
lea ecx, [rdi + 1]
jmp 0x140062229
lea rax, [rbp + 0x7f]
mov rcx, rdi
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x17]
lea rax, [rbp + 0x27]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 7]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0xb]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoQueryProxyBlanket]
mov esi, eax
test eax, eax
jns 0x14006212d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, esi
lea rdx, str.AdjustSecurity:_security_query_failed:_0x_08x_0x_08x
mov r9d, eax
mov ecx, 1
call fcn.140061e50
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14006222e
lea rdx, str.AdjustSecurity:_security_query_success
mov ecx, 0x20
call fcn.140061e50
mov r9d, dword [rbp + 7]
lea rdx, str.AdjustSecurity:_authn_0x_08x_authz_0x_08x
mov r8d, dword [rbp + 0xb]
mov ecx, 0x20
call fcn.140061e50
mov rax, qword [rbp + 0x17]
lea r8, str._none_
test rax, rax
lea rdx, str.AdjustSecurity:_servername__S
mov ecx, 0x20
cmovne r8, rax
call fcn.140061e50
mov r9d, dword [rbp + 0x77]
lea rdx, str.AdjustSecurity:_authLev_0x_08x_imp_0x_08x
mov r8d, dword [rbp + 0x67]
mov ecx, 0x20
call fcn.140061e50
mov r9d, dword [rbp + 0x7f]
lea rdx, str.AdjustSecurity:_authInfo_0x_08x_capabilities_0x_08x
mov r8, qword [rbp + 0x27]
mov ecx, 0x20
call fcn.140061e50
mov eax, dword [rbp + 0x7f]
mov rcx, rdi
mov r9, qword [rbp + 0x17]
mov r8d, dword [rbp + 7]
mov edx, dword [rbp + 0xb]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x27]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov dword [rbp + 0x67], 3
mov dword [rbp + 0x77], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov rcx, qword [rbp + 0x17]
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jns 0x14006221d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, edi
lea rdx, str.AdjustSecurity:_security_set_2_failed:_0x_08x_0x_08x
mov r9d, eax
mov ecx, 1
call fcn.140061e50
jmp 0x14006222e
lea rdx, str.AdjustSecurity:_security_set_2_success
mov ecx, reloc.WS2_32.dll_recv
call fcn.140061e50
mov rax, qword [rbp + 0x1f]
mov qword [rbx], rax
mov al, 1
mov rsi, qword [rsp + 0x80]
add rsp, 0x88
pop r14
pop rdi
pop rbx
pop rbp
ret