Function at 0x140024d80
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1400be080]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r12d, r12d
lea rax, str.vboxvideo
mov qword [rbp - 0x39], rax
lea r8, [0x1400aa750]
lea rax, str.VBoxVideoW8
mov qword [rbp - 0x11], r12
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 9]
lea rax, str.VBoxWddm
mov qword [rbp - 9], r12
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], r12
mov r15d, r12d
call fcn.14002c580
test eax, eax
je 0x1400250ac
mov qword [rsp + 0xd0], rbx
lea rcx, [0x1400aed20]
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_NTEventlogFile
mov rdi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea esi, [r12 + 1]
mov rbx, rax
test rdi, rdi
je 0x140024e96
test rax, rax
je 0x140024e8d
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], r12
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rdi
call r10
test eax, eax
jns 0x140024e8d
lea rcx, str.ExecQuery
mov esi, r12d
call fcn.140029bc0
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x140024ea4
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x140025078
mov rcx, qword [rbp - 0x19]
mov qword [rbp - 0x21], r12
mov dword [rbp + 0x2b], r12d
test rcx, rcx
je 0x140025058
mov qword [rsp + 0xe8], r14
nop dword [rax]
test r15d, r15d
jne 0x140025050
mov rax, qword [rcx]
lea rdx, [rbp + 0x2b]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x21]
lea edx, [r15 - 1]
lea r8d, [r15 + 1]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp + 0x2b], r12d
je 0x14002504c
mov rcx, qword [rbp - 0x21]
lea r9, [rbp - 1]
mov qword [rsp + 0x28], r12
lea rdx, str.FileName
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x140025033
movzx eax, word [rbp - 1]
cmp ax, 1
je 0x140025033
test al, 8
je 0x140025029
mov rcx, qword [rbp + 7]
lea rdx, str.System
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x140025029
lea rcx, [rbp - 1]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x21]
lea r9, [rbp - 1]
mov qword [rsp + 0x28], r12
lea rdx, str.Sources
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov r14, qword [rbp + 7]
lea rdx, [rbp + 0x1f]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
js 0x140025029
lea r8, [rbp + 0x33]
mov rcx, r14
lea edx, [r15 + 1]
call qword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea r8, [rbp + 0x2f]
mov rcx, r14
lea edx, [r15 + 1]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov esi, dword [rbp + 0x2f]
sub esi, dword [rbp + 0x33]
inc esi
mov dword [rbp + 0x27], r12d
test esi, esi
jle 0x140025020
nop
lea r8, [rbp + 0x17]
mov rcx, r14
lea rdx, [rbp + 0x27]
call qword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov ebx, r12d
lea rdi, [rbp - 0x39]
nop dword [rax + rax]
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14002501a
inc ebx
add rdi, 8
cmp ebx, 3
jb 0x140024ff0
mov eax, dword [rbp + 0x27]
inc eax
mov dword [rbp + 0x27], eax
cmp eax, esi
jl 0x140024fd0
jmp 0x140025020
mov r15d, 1
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea rcx, [rbp - 1]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x140024ed0
jmp 0x140025050
mov rcx, qword [rbp - 0x19]
mov r14, qword [rsp + 0xe8]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 9]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rsi, qword [rsp + 0xd8]
mov eax, r15d
mov rbx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14008f700
add rsp, 0xb0
pop r15
pop r12
pop rbp
ret
mov eax, r15d
jmp 0x140025093