Function at 0x140004030
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push rdi
lea rbp, [r11 - 0x488]
sub rsp, 0x588
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov qword [r11 + 0x18], r13
mov r13, rcx
mov qword [r11 + 0x20], r14
xor r14d, r14d
mov qword [rbp - 0x38], rcx
lea rcx, [0x140021668]
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x28], rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [0x140021680]
mov qword [rbp - 0x68], rax
mov rbx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_Volume
mov qword [rbp - 0x60], rax
mov rdi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
mov qword [rbp], r14
xor ecx, ecx
mov qword [rbp - 0x58], rax
mov rsi, rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jne 0x140004463
mov qword [rsp + 0x40], r14
lea edx, [rax - 1]
mov dword [rsp + 0x38], r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jne 0x140004463
lea rax, [rbp - 0x40]
xor edx, edx
lea r9, [0x140026290]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 1]
lea rcx, [0x140026280]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140004463
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rbx
mov rax, qword [rcx]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov rax, qword [rax + 0x18]
call qword [0x140020448]
test eax, eax
jne 0x140004463
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x140020448]
test eax, eax
jne 0x140004463
cmp qword [rbp - 0x70], r14
je 0x140004479
movzx ecx, byte [r13 + 0x33]
movzx edx, byte [r13 + 0x32]
movzx r8d, byte [r13 + 0x31]
movzx r9d, byte [r13 + 0x30]
movzx ebx, byte [r13 + 0x2d]
movzx eax, byte [r13 + 0x34]
movzx r10d, byte [r13 + 0x2f]
movzx r11d, byte [r13 + 0x2e]
movzx edi, byte [r13 + 0x2b]
movzx esi, byte [r13 + 0x2c]
movzx r14d, byte [r13 + 0x29]
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x90], ecx
lea rcx, [rbp + 0x30]
mov dword [rsp + 0x88], edx
mov edx, 0x104
mov dword [rsp + 0x80], r8d
mov r8d, edx
mov dword [rsp + 0x78], r9d
lea r9, str._Volume_02x_02x_02x_02x__02x_02x__02x_02x__02x_02x__02x_02x_02x_02x_02x_02x_
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], ebx
mov rbx, qword [rbp - 0x38]
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], r14d
movzx eax, byte [rbx + 0x27]
mov qword [rsp + 0x5b8], r12
movzx r12d, byte [r13 + 0x25]
mov qword [rsp + 0x580], r15
movzx r15d, byte [r13 + 0x2a]
movzx r13d, byte [r13 + 0x26]
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
movzx eax, byte [rbx + 0x28]
mov dword [rsp + 0x20], eax
call fcn.140001740
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x78]
xor edi, edi
mov qword [rsp + 0x20], rdx
mov qword [rbp - 0x80], rdi
lea r9, [rbp - 0x80]
mov dword [rbp - 0x78], edi
mov rax, qword [rcx]
lea edx, [rdi - 1]
lea r8d, [rdi + 1]
mov rax, qword [rax + 0x20]
call qword [0x140020448]
mov r15, qword [rsp + 0x580]
mov r12, qword [rsp + 0x5b8]
test eax, eax
jne 0x140004457
nop
mov rcx, qword [rbp - 0x80]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x28], rdi
lea rdx, str.DeviceID
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140020448]
test eax, eax
jne 0x1400043d7
cmp qword [rbp - 0x18], rdi
je 0x1400043d7
mov rcx, qword [rbp - 0x80]
lea r9, [rbp - 8]
mov qword [rsp + 0x28], rdi
lea rdx, str.Label
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140020448]
test eax, eax
jne 0x1400043d7
mov rcx, qword [rbp - 0x80]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], rdi
lea rdx, str.DriveLetter
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140020448]
test eax, eax
jne 0x1400043d7
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140020448]
mov r8, qword [rbp - 0x18]
lea rax, [rbp + 0x30]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140004394
add rax, 2
test ecx, ecx
jne 0x140004380
test edx, edx
jne 0x1400043d7
mov rax, qword [rbp + 0x18]
lea r9, str._sWindows_system32_ntdll.dll
mov edx, 0x104
mov qword [rsp + 0x20], rax
mov r8d, edx
lea rcx, [rbp + 0x240]
call fcn.140001740
lea r8, [0x140021228]
lea rdx, [rbp + 0x240]
lea rcx, [rbp - 0x38]
call fcn.14000b104
test eax, eax
je 0x140004408
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x80]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
mov rax, qword [rax + 0x20]
call qword [0x140020448]
test eax, eax
je 0x1400042c0
jmp 0x140004457
mov rcx, qword [rbp - 0x38]
call fcn.14000afd4
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400031a0
test eax, eax
jne 0x140004457
mov rcx, qword [rbp - 0x30]
mov edx, 0x105
mov rax, qword [rbp - 0x28]
mov dword [rcx + 8], 2
mov dword [rcx + 0x220], 1
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx + 0x224], xmm0
mov r8, qword [rbp]
add rcx, 0xc
call fcn.14000aee8
mov rsi, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x60]
mov rbx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140004479
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140020448]
mov rcx, qword [rbp - 0x48]
mov r14, qword [rsp + 0x5c8]
mov r13, qword [rsp + 0x5c0]
test rcx, rcx
je 0x14000449f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140020448]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400044b5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140020448]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140007800
add rsp, 0x588
pop rdi
pop rsi
pop rbx
pop rbp
ret