Function at 0x14009f9f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x8d8
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rsi, qword [rsp + 0x930]
mov r12, rcx
mov r13, r8
mov rbx, rdx
lea rcx, [rsp + 0x6b2]
mov r8d, 0x206
xor edx, edx
mov rbp, r9
mov word [rsp + 0x6b0], 0
call sub.ntdll.dll_memset
lea rdx, str._sEFIMicrosoftBootBCD
lea rcx, [rsp + 0x6b0]
mov r8, rbx
call fcn.140002b60
xor r14d, r14d
lea rcx, [rsp + 0x6b0]
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14009fa9c
xor eax, eax
jmp 0x1400a0396
mov rcx, rax
mov qword [rsp + 0x8d0], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov rcx, rax
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], 0x12
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov rcx, rax
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], 0x11
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor eax, eax
mov ebx, 1
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
movzx edi, bl
mov word [rsp + 0x60], r14w
nop
lea rdx, str.AomeiReg_d
lea rcx, [rsp + 0x60]
mov r8d, ebx
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r8, [rsp + 0x6b0]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
je 0x14009fbfe
add ebx, 1
xor dil, dil
cmp ebx, 0xa
jle 0x14009fbc0
cmp ebx, 0xa
jne 0x14009fc0f
test dil, dil
jne 0x14009fc0f
xor eax, eax
jmp 0x1400a038e
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa0], r14w
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjects9dea862c_5cdd_4e70_acc1_f32b344d4795Description
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009fc84
mov ebx, r14d
jmp 0x1400a0295
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r14b
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea rdx, str.FirmwareVariable
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009fd35
mov eax, dword [r13]
lea rcx, [rsp + 0x3a4]
lea rdx, str.FirmwareVariable
mov dword [rcx], eax
mov eax, dword [r13 + 4]
mov r9d, 3
mov dword [rcx + 4], eax
mov eax, dword [r13 + 8]
xor r8d, r8d
mov dword [rcx + 8], eax
mov eax, dword [r13 + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r14d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009fd50
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400a0295
lea r8, [rsp + 0x60]
lea rdx, str._sObjects9dea862c_5cdd_4e70_acc1_f32b344d4795Elements11000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009fdaf
mov ebx, r14d
jmp 0x1400a0295
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r14b
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea rdx, str.Element
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009fe7e
mov eax, dword [r13]
lea rcx, [rsp + 0x2d0]
lea rdx, str.Element
mov dword [rcx], eax
mov eax, dword [r13 + 4]
mov r9d, 3
mov dword [rcx + 4], eax
mov eax, dword [r13 + 8]
xor r8d, r8d
mov dword [rcx + 8], eax
mov eax, dword [r13 + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsi]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_744]
mov dword [rcx], eax
mov eax, dword [rsi + 4]
mov dword [rcx + 4], eax
mov eax, dword [rsi + 8]
mov dword [rcx + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r14d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009fe99
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400a0295
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjects890f989a_7d40_11e2_8053_9b1bda41daaaElements11000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009ff0d
mov ebx, r14d
jmp 0x1400a0295
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r14b
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea rdx, str.Element
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009ffd8
mov eax, dword [rbp]
lea rcx, [rsp + 0x2d0]
lea rdx, str.Element
mov dword [rcx], eax
mov eax, dword [rbp + 4]
mov r9d, 3
mov dword [rcx + 4], eax
mov eax, dword [rbp + 8]
xor r8d, r8d
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsi]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_744]
mov dword [rcx], eax
mov eax, dword [rsi + 4]
mov dword [rcx + 4], eax
mov eax, dword [rsi + 8]
mov dword [rcx + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r14d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009fff3
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400a0295
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjects890f989a_7d40_11e2_8053_9b1bda41daaaElements21000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a0067
mov ebx, r14d
jmp 0x1400a0295
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r14b
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea rdx, str.Element
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a0132
mov eax, dword [rbp]
lea rcx, [rsp + 0x2d0]
lea rdx, str.Element
mov dword [rcx], eax
mov eax, dword [rbp + 4]
mov r9d, 3
mov dword [rcx + 4], eax
mov eax, dword [rbp + 8]
xor r8d, r8d
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsi]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_744]
mov dword [rcx], eax
mov eax, dword [rsi + 4]
mov dword [rcx + 4], eax
mov eax, dword [rsi + 8]
mov dword [rcx + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r14d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400a014d
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400a0295
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjectsb2721d73_1db4_4c62_bf78_c548a880142dElements11000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rdx, [rsp + 0xa0]
mov r9, rsi
mov r8, r13
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.14009db40
test eax, eax
mov ebx, eax
je 0x1400a0295
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjects890f989c_7d40_11e2_8053_9b1bda41daaaElements31000003
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rdx, [rsp + 0xa0]
mov r9, rsi
mov r8, rbp
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.14009db40
test eax, eax
mov ebx, eax
je 0x1400a0295
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjects890f9899_7d40_11e2_8053_9b1bda41daaaElements11000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rdx, [rsp + 0xa0]
mov r9, rsi
mov r8, rbp
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.14009db40
test eax, eax
mov ebx, eax
je 0x1400a0295
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjects890f9899_7d40_11e2_8053_9b1bda41daaaElements21000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rdx, [rsp + 0xa0]
mov r9, rsi
mov r8, rbp
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.14009db40
mov ebx, eax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x1400a02ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], 0x12
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov rcx, rax
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], 0x11
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
test eax, eax
je 0x1400a038c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov rdi, qword [rsp + 0x8d0]
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x8d8
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret