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

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x8e0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rbp, rcx
mov r12d, r8d
mov rbx, rdx
lea rcx, [rsp + 0x6b2]
xor edx, edx
mov r8d, 0x206
mov rsi, r9
mov word [rsp + 0x6b0], 0
call sub.ntdll.dll_memset
lea rdx, str._s_boot_bcd
lea rcx, [rsp + 0x6b0]
mov r8, rbx
call fcn.140002b60
xor r13d, r13d
lea rcx, [rsp + 0x6b0]
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 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 0x14009f182
xor eax, eax
jmp 0x14009f9cf
mov rcx, rax
mov qword [rsp + Ordinal_2267], 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], r13d
mov dword [rsp + 0x40], 0x12
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r13
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], r13d
mov dword [rsp + 0x40], 0x11
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r13
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], r13w
nop
nop
nop
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 0x14009f2ee
add ebx, 1
xor dil, dil
cmp ebx, 0xa
jle 0x14009f2b0
cmp ebx, 0xa
jne 0x14009f2ff
test dil, dil
jne 0x14009f2ff
xor eax, eax
jmp 0x14009f9c7
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa0], r13w
call sub.ntdll.dll_memset
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], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009f374
mov ebx, r13d
jmp 0x14009f8ce
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r13b
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 0x14009f42e
test rsi, rsi
mov qword [rsp + 0x2d0], r13
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_744], r13
je 0x14009f3f0
mov eax, dword [rbp]
imul rax, rsi
mov qword [rsp + 0x2d0], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Element
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + reloc.MFC80U.DLL_Ordinal_744], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009f449
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14009f8ce
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 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], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009f4bd
mov ebx, r13d
jmp 0x14009f8ce
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r13b
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 0x14009f577
test rsi, rsi
mov qword [rsp + 0x2d0], r13
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_744], r13
je 0x14009f539
mov eax, dword [rbp]
imul rax, rsi
mov qword [rsp + 0x2d0], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Element
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + reloc.MFC80U.DLL_Ordinal_744], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009f592
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14009f8ce
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjectsf7492313_139b_11e3_af14_ce9d489bae23Elements11000001
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], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009f606
mov ebx, r13d
jmp 0x14009f8ce
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r13b
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 0x14009f6c0
test rsi, rsi
mov qword [rsp + 0x2d0], r13
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_744], r13
je 0x14009f682
mov eax, dword [rbp]
imul rax, rsi
mov qword [rsp + 0x2d0], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Element
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + reloc.MFC80U.DLL_Ordinal_744], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009f6db
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14009f8ce
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjectsf7492313_139b_11e3_af14_ce9d489bae23Elements21000001
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], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009f74f
mov ebx, r13d
jmp 0x14009f8ce
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_689]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x2b0], r13b
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 0x14009f809
test rsi, rsi
mov qword [rsp + 0x2d0], r13
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_744], r13
je 0x14009f7cb
mov eax, dword [rbp]
imul rax, rsi
mov qword [rsp + 0x2d0], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Element
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x2b0]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + reloc.MFC80U.DLL_Ordinal_744], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009f824
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14009f8ce
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjectsf7492314_139b_11e3_af14_ce9d489bae23Elements11000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
mov rdi, qword [rsp + 0x930]
lea rdx, [rsp + 0xa0]
xor r9d, r9d
mov r8d, r12d
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call fcn.14009d9e0
test eax, eax
mov ebx, eax
je 0x14009f8ce
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r8, [rsp + 0x60]
lea rdx, str._sObjectsf7492314_139b_11e3_af14_ce9d489bae23Elements21000001
lea rcx, [rsp + 0xa0]
call fcn.140002b60
lea rdx, [rsp + 0xa0]
xor r9d, r9d
mov r8d, r12d
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call fcn.14009d9e0
mov ebx, eax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x14009f8e5
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], r13d
mov dword [rsp + 0x40], 0x12
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r13
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], r13d
mov dword [rsp + 0x40], 0x11
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r13
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 0x14009f9c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov rdi, qword [rsp + 0x8d8]
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x8e0
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret