Function at 0x1401a7950
Capabilities:
Enumerate device drivers on windows
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3190]
mov eax, 0x3290
call fcn.140203440
sub rsp, rax
mov rax, qword [0x14049bcb8]
xor rax, rsp
mov qword [rbp + 0x3180], rax
xor r14d, r14d
lea rsi, [rsp + 0x70]
mov edx, 0x104
mov qword [rsp + 0x58], rsi
lea rcx, [rbp + 0x1f70]
mov ebx, r14d
mov r15d, r14d
lea r12, [rbp + 0x1f70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test eax, eax
jne 0x1401a7a67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x1401a79ce
mov ebx, eax
jmp 0x1401a79d7
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401a7a27
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x190b
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
mov r8d, 0x145
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7f43
mov dword [rsp + 0x30], edi
lea r9, str.GetWindowsDirectory_failed__hr_Rhrc__0x_x__err_u_n
mov dword [rsp + 0x28], ebx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x1401a7f43
cmp edi, 0x104
jbe 0x1401a7bd6
mov rcx, rdi
lea rdx, [0x14030eea8]
add rcx, rcx
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov r12, rax
test rax, rax
jne 0x1401a7b1a
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401a7ae2
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x1914
lea edx, [r12 + 0x10]
mov qword [rsp + 0x20], rax
mov r8d, 0x145
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7f2e
lea r9, str.RTMemTmpAlloc_failed_to_allocate__d_bytes_n
mov dword [rsp + 0x20], edi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x1401a7f2e
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1401a7bd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x1401a7b3d
mov ebx, eax
jmp 0x1401a7b46
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401a7b96
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x191c
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
mov r8d, 0x145
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7f2e
mov dword [rsp + 0x30], edi
lea r9, str.GetWindowsDirectory_failed__hr_Rhrc__0x_x__err_u_n
mov dword [rsp + 0x28], ebx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x1401a7f2e
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov edx, 0x2000
lea rcx, [rsp + 0x70]
call sub.PSAPI.DLL_EnumDeviceDrivers
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x1401a7c03
cmp ecx, 0x2000
jbe 0x1401a7cda
lea rdx, [0x14030eea8]
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
jne 0x1401a7cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x1401a7c41
mov ebx, eax
jmp 0x1401a7c4a
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401a7c9a
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x192a
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
mov r8d, 0x145
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7f19
mov dword [rsp + 0x30], edi
lea r9, str.EnumDeviceDrivers_failed__hr_Rhrc__0x_x__err_u_n
mov dword [rsp + 0x28], ebx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x1401a7f19
mov ecx, 0x1450010
mov qword [rsp + 0x32c0], r13
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7d0d
lea r9, str.Installed_Drivers:_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov r13d, dword [rsp + 0x50]
shr r13, 3
test r13, r13
je 0x1401a7f11
nop
mov rcx, qword [rsi + r14*8]
lea rdx, [rbp + 0x2180]
mov r8d, 0x400
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x1401a7ef7
mov r8d, 4
lea rdx, [rbp + 0x2180]
lea rcx, [0x1403588c8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a7ef7
mov rcx, qword [rsi + r14*8]
lea rdx, [rbp + 0x2180]
mov r8d, 0x400
call sub.PSAPI.DLL_GetDeviceDriverFileNameW
test eax, eax
je 0x1401a7ef7
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, [rbp + 0x2180]
lea rcx, str.SystemRoot
lea rdi, [rbp + 0x2180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x1401a7ddf
mov r8, r12
lea rcx, [rbp + 0x2980]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r9d, 0x3ff
lea r8, [rbp + 0x2196]
lea rcx, [rbp + 0x2980]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rsi, [rbp + 0x2980]
jmp 0x1401a7e06
mov r8d, 4
lea rdx, [rbp + 0x2180]
lea rcx, [0x1403588f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
lea rsi, [rbp + 0x2188]
cmovne rsi, rdi
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp eax, r15d
jbe 0x1401a7e44
test rbx, rbx
je 0x1401a7e25
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov rcx, rdi
lea rdx, [0x14030eea8]
mov r15d, edi
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov rbx, rax
test rax, rax
je 0x1401a7f6e
mov r9, rbx
mov r8d, r15d
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401a7ef2
xor eax, eax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x60], eax
lea rdx, [0x1403588fc]
mov qword [rsp + 0x68], rax
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401a7ef2
cmp dword [rsp + 0x60], 0
je 0x1401a7ef2
mov rdi, qword [rsp + 0x68]
cmp dword [rdi], 0xfeef04bd
jne 0x1401a7ef2
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7ef2
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 0xc]
movzx edx, r8w
mov dword [rsp + 0x40], edx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
movzx ecx, r9w
shr r8d, 0x10
mov dword [rsp + 0x38], r8d
mov r8d, 0x145
mov dword [rsp + 0x30], ecx
mov rcx, rax
shr r9d, 0x10
mov dword [rsp + 0x28], r9d
lea r9, str.___ls__Version:__d._d._d._d__n
mov qword [rsp + 0x20], rsi
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov rsi, qword [rsp + 0x58]
inc r14
cmp r14, r13
jl 0x1401a7d20
test rbx, rbx
je 0x1401a7f11
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov r13, qword [rsp + 0x32c0]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x70]
cmp rcx, rax
je 0x1401a7f2e
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
lea rax, [rbp + 0x1f70]
cmp r12, rax
je 0x1401a7f43
mov rcx, r12
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov rcx, qword [rbp + 0x3180]
xor rcx, rsp
call fcn.140202f70
lea r11, [rsp + 0x3290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401a7fc2
mov qword [rsp + 0x38], 0
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x1953
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
mov r8d, 0x145
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a7f11
lea r9, str.RTMemTmpAlloc_failed_to_allocate__d_bytes_n
mov dword [rsp + 0x20], edi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x1401a7f11