Function at 0x14005d720
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xb10
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2821], rax
mov r13, rcx
mov r14, r8
mov r15, rdx
xor ebx, ebx
lea rcx, [rsp + 0x102]
xor edx, edx
mov r8d, 0xfe
mov ebp, r9d
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x100], bx
call sub.ntdll.dll_memset
lea r8d, [rbx + 0x7e]
lea rcx, [rsp + 0x82]
xor edx, edx
mov word [rsp + 0x80], bx
call sub.ntdll.dll_memset
call fcn.140049400
mov rdi, rax
call fcn.1400494c0
mov rdx, qword [rax]
mov rcx, rax
mov rsi, rax
mov qword [rsp + 0x50], rax
call qword [rdx + 0x20]
test eax, eax
jne 0x14005d7da
test ebp, ebp
je 0x14005d7da
mov rcx, rbx
lea rdx, [0x1402e2640]
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0xfe], ax
jne 0x14005d7c0
jmp 0x14005db6c
lea rcx, [rsp + 0x202]
xor edx, edx
mov r8d, 0xfe
mov qword [rsp + Ordinal_2923], r12
mov esi, ebx
mov word [rsp + reloc.MFC80U.DLL_Ordinal_512], bx
call sub.ntdll.dll_memset
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_770]
xor edx, edx
mov r8d, 0x206
mov word [rsp + reloc.MFC80U.DLL_Ordinal_768], bx
call sub.ntdll.dll_memset
test ebp, ebp
jne 0x14005d82e
mov rax, qword [r14]
mov ebp, dword [r14 + 0x14]
mov r12, qword [rax]
jmp 0x14005d840
mov rax, qword [r15]
mov ebp, dword [r15 + 0x14]
mov r12, qword [rax]
nop
nop
mov rax, qword [rdi]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_512]
mov r9d, ebp
mov r8d, 0x80
mov rcx, rdi
mov qword [rsp + 0x20], r12
call qword [rax + 0x58]
test eax, eax
jne 0x14005d889
mov rax, qword [rdi]
mov r8, r12
mov edx, ebp
mov rcx, rdi
call qword [rax + 0xa8]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, esi
add esi, 1
cmp edx, 0x64
jl 0x14005d840
cmp esi, 0x64
mov r12, qword [rsp + 0xb68]
jl 0x14005d96e
call fcn.140049470
lea rsi, [0x140433b50]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._reg.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005d953
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x68]
mov r8d, Ordinal_1468
mov byte [rsp + 0x68], bl
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005d910
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x68]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005d940
mov rbx, rsi
mov rax, qword [rbp]
lea rdx, str._s:_Get_sym_failed.
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005deab
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_512]
lea rdx, str._Volume_sWindowsSystem32config_system
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_768]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_768]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005d9d1
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x5bf
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_Not_found_system_file.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005deab
mov edi, ebx
nop
nop
nop
nop
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x80
call sub.ntdll.dll_memset
lea rdx, str.AomeiReg00_d
lea rcx, [rsp + 0x80]
mov r8d, edi
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_768]
lea rdx, [rsp + 0x80]
mov rcx, r13
call fcn.14005b310
test eax, eax
jne 0x14005da33
add edi, 1
cmp edi, 0x64
jl 0x14005d9e0
jmp 0x14005da3c
cmp edi, 0x64
jl 0x14005db0e
call fcn.140049470
lea rsi, [0x140433b50]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._reg.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005daf3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x68]
mov r8d, Ordinal_1491
mov byte [rsp + 0x68], bl
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005dab0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x68]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005dae0
mov rbx, rsi
mov rax, qword [rbp]
lea rdx, str._s:_Load_Hive_file_failed.
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005deab
mov rcx, rbx
movzx eax, word [rsp + rcx + 0x80]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0xfe], ax
jne 0x14005db11
mov rsi, qword [rsp + 0x50]
xor eax, eax
lea rdi, [rsp + 0x100]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.MountedDevices]
mov qword [rdi - 2], rax
mov rax, qword [0x1402e2550]
mov qword [rdi + 6], rax
mov rax, qword [0x1402e2558]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1402e2560]
mov qword [rdi + 0x16], rax
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x100]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005dc6e
call fcn.140049470
lea rsi, [0x140433b50]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._reg.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005dc53
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x68]
mov r8d, 0x5de
mov byte [rsp + 0x68], bl
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005dc10
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x68]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005dc40
mov rbx, rsi
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_UpdateDosDevices.
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005deab
lea rcx, [rsp + 0x702]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + reloc.MFC80U.DLL_Ordinal_1792], bx
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1792]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x48], 0x400
mov edi, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005de73
nop
nop
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_769]
xor edx, edx
mov r8d, 0x3ff
add edi, 1
mov byte [rsp + reloc.MFC80U.DLL_Ordinal_768], bl
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_1792]
mov qword [rsp + 0x28], rax
lea rax, [rsp + reloc.MFC80U.DLL_Ordinal_768]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005de20
cmp dword [rsp + 0x50], 0x18
jb 0x14005de20
mov rax, qword [rsp + reloc.MFC80U.DLL_Ordinal_768]
cmp rax, qword [str.DMIO:ID:]
jne 0x14005de20
lea rdx, [rsp + 0x58]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_776]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rdx, qword [r15]
mov eax, dword [rdx + reloc.MFC80U.DLL_Ordinal_362]
cmp dword [rsp + reloc.MFC80U.DLL_Ordinal_776], eax
jne 0x14005de20
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_776]
mov rax, rcx
shr rax, 0x20
cmp ax, word [rdx + 0x16e]
jne 0x14005de20
shr rcx, 0x30
cmp cx, word [rdx + 0x170]
jne 0x14005de20
mov rax, qword [rsp + 0x60]
cmp rax, qword [rdx + 0x172]
jne 0x14005de20
xor eax, eax
mov byte [rsp + 0x68], bl
mov r9d, 3
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
mov rax, qword [r14 + 8]
xor r8d, r8d
mov dword [rsp + 0x28], 0xc
mov ecx, dword [rax]
mov rax, qword [r14]
mov dword [rsp + 0x68], ecx
mov rdx, qword [rax]
mov ecx, dword [r13]
imul rdx, rcx
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x6c], rdx
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_1792]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005de20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1792]
xor edx, edx
mov r8d, 0x400
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1792]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x48], 0x400
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005dcd0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x20]
test eax, eax
je 0x14005dea6
lea rdx, [rsp + 0x80]
mov rcx, r13
call fcn.14005b510
mov eax, 1
mov rcx, qword [rsp + 0xb00]
xor rcx, rsp
call fcn.140161080
add rsp, 0xb10
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret