Function at 0x140024ea0
Capabilities:
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, reloc.mfc140.dll_Ordinal_896
mov rax, qword [0x1400a45f8]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_265
xor r14b, r14b
xor r15b, r15b
xor r12b, r12b
xor r13b, r13b
xor dil, dil
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea r8, str.SENTINEL.SYS
mov edx, 0x104
mov qword [rbx], rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSENTINEL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
test eax, eax
jne 0x140025061
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140024f92
lea rdx, [0x140087078]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140024fc7
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rbp + 0x160]
mov edx, 0x104
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._sDRIVERS_s
lea rcx, [rsp + 0x40]
call fcn.140025db0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x14002504d
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
lea rcx, [rsp + 0x40]
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rdi
test eax, eax
je 0x140025047
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140087054]
call sub.VERSION.dll_VerQueryValueA
mov rcx, rdi
test eax, eax
je 0x140025047
mov rax, qword [rsp + 0x38]
movzx r14d, byte [rax + 0xa]
movzx r15d, byte [rax + 8]
movzx r12d, byte [rax + 0xe]
movzx r13d, byte [rax + 0xc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx], r14b
mov dil, 1
mov byte [rbx + 1], r15b
xor esi, esi
mov byte [rbx + 2], r12b
mov byte [rbx + 3], r13b
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_265
xor r14b, r14b
xor r15b, r15b
xor r12b, r12b
xor r13b, r13b
call sub.VCRUNTIME140.dll_memset
lea r8, str.SNTNLUSB.SYS
mov edx, 0x104
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSNTNLUSB
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400251dc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002510e
lea rdx, [0x140087078]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140025143
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rbp + 0x160]
mov edx, 0x104
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._sDRIVERS_s
lea rcx, [rsp + 0x40]
call fcn.140025db0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x1400251c9
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
lea rcx, [rsp + 0x40]
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rdi
test eax, eax
je 0x1400251c3
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140087054]
call sub.VERSION.dll_VerQueryValueA
mov rcx, rdi
test eax, eax
je 0x1400251c3
mov rax, qword [rsp + 0x38]
movzx r14d, byte [rax + 0xa]
movzx r15d, byte [rax + 8]
movzx r12d, byte [rax + 0xe]
movzx r13d, byte [rax + 0xc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 4], r14b
mov dil, 1
mov byte [rbx + 5], r15b
mov byte [rbx + 6], r12b
mov byte [rbx + 7], r13b
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_265
xor r14b, r14b
xor r15b, r15b
xor r12b, r12b
xor r13b, r13b
call sub.VCRUNTIME140.dll_memset
lea r8, str.SENTINEL64.SYS
mov edx, 0x104
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSENTINEL64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140025358
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140025289
lea rdx, [0x140087078]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400252be
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rbp + 0x160]
mov edx, 0x104
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._sDRIVERS_s
lea rcx, [rsp + 0x40]
call fcn.140025db0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x140025346
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
lea rcx, [rsp + 0x40]
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rdi
test eax, eax
je 0x140025340
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140087054]
call sub.VERSION.dll_VerQueryValueA
mov rcx, rdi
test eax, eax
je 0x140025340
mov rax, qword [rsp + 0x38]
movzx r14d, byte [rax + 0xa]
movzx r15d, byte [rax + 8]
movzx r12d, byte [rax + 0xe]
movzx r13d, byte [rax + 0xc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx], r14b
mov dil, 1
mov byte [rbx + 1], r15b
mov byte [rbx + 2], r12b
mov byte [rbx + 3], r13b
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_265
xor r14b, r14b
xor r15b, r15b
xor r12b, r12b
xor r13b, r13b
call sub.VCRUNTIME140.dll_memset
lea r8, str.SNTUSB64.SYS
mov edx, 0x104
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSNTUSB64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400254d6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140025405
lea rdx, [0x140087078]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14002543a
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rbp + 0x160]
mov edx, 0x104
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._sDRIVERS_s
lea rcx, [rsp + 0x40]
call fcn.140025db0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x1400254c2
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
lea rcx, [rsp + 0x40]
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rdi
test eax, eax
je 0x1400254bc
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140087054]
call sub.VERSION.dll_VerQueryValueA
mov rcx, rdi
test eax, eax
je 0x1400254bc
mov rax, qword [rsp + 0x38]
movzx r14d, byte [rax + 0xa]
movzx r15d, byte [rax + 8]
movzx r12d, byte [rax + 0xe]
movzx r13d, byte [rax + 0xc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 4], r14b
xor eax, eax
mov byte [rbx + 5], r15b
mov byte [rbx + 6], r12b
mov byte [rbx + 7], r13b
jmp 0x1400254e4
test dil, dil
je 0x1400254df
xor eax, eax
jmp 0x1400254e4
mov eax, recv
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140077b10
lea r11, [rsp + reloc.mfc140.dll_Ordinal_896]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret