Function at 0x140038f40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x18a0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x18e0], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x1890], rax
mov r12, r9
mov rbx, r8
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0xa0], rcx
lea rcx, [rsp + 0x130]
call fcn.140024aa0
nop
mov byte [rsp + reloc.MFC80U.DLL_Ordinal_2192], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x891]
call sub.ntdll.dll_memset
mov dword [rsp + 0x58], 0x1000
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
mov rdx, r13
lea rcx, [rsp + 0xf0]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea rdx, str.Objects_
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.Elements11000001
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rbx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rbx, qword [rsp + 0xf8]
xor r15d, r15d
mov qword [rsp + 0x138], r15
lea r8, [rsp + 0x138]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14003906c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400390d0
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_320], 0xffffffff80000002
mov rdx, rbx
lea rcx, [rsp + 0x350]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea rcx, [rsp + 0x130]
call fcn.140027ed0
mov byte [rsp + 0x348], al
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x138]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400390f4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x140039861
mov dword [rsp + 0x40], 3
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + reloc.MFC80U.DLL_Ordinal_2192]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Element
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400391be
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x348], r15b
je 0x140039171
lea r8, [rsp + 0x148]
mov edx, 4
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x140039171
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14003919a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x140039861
cmp byte [rsp + 0x348], r15b
je 0x1400391ef
lea r8, [rsp + 0x148]
mov edx, 4
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x1400391ef
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140039217
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, fcn.140001470
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r15
mov word [rsp + reloc.MFC80U.DLL_Ordinal_1040], r15w
xor edx, edx
lea r8d, [rdx + 0x7e]
lea rcx, [rsp + 0x412]
call sub.ntdll.dll_memset
xor r11d, r11d
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], r11
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x98], r11
cmp dword [rsp + 0x8f8], 1
jne 0x140039318
mov dword [rsp + 0x80], r15d
mov eax, dword [rsp + 0x8fc]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x8e4]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov r9d, 0x80
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1040]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa8]
call fcn.14002a790
test al, al
jne 0x1400396be
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x140039861
mov rsi, r15
mov ebp, r15d
mov dword [rsp + 0xe0], r15d
xor eax, eax
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0xe8], eax
mov dword [rsp + 0xec], eax
mov rdi, r15
lea r14, fcn.140001470
nop
nop
nop
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov word [rsp + Ordinal_1173], r15w
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
lea rcx, [rsp + 0x492]
call sub.ntdll.dll_memset
mov r9d, edi
lea r8, str..PhysicalDrive_d
mov edx, 0x400
lea rcx, [rsp + 0x490]
call fcn.140013b00
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 7]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x1400395fb
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x8e4]
mov eax, dword [rcx]
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
mov byte [rsp + Ordinal_1173], r15b
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x491]
call sub.ntdll.dll_memset
mov ebx, 2
nop
nop
mov r9, rbx
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x10]
test al, al
je 0x1400395e7
lea rcx, [rsp + 0x490]
mov r9d, r15d
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_280]
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 8], rax
lea rax, [rsp + 0xd0]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_280]
mov r8, qword [rax]
cmp r8, qword [rdx]
jne 0x14003948f
mov r8, qword [rax + 8]
cmp r8, qword [rdx + 8]
jne 0x14003948f
mov eax, r15d
jmp 0x140039494
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1400394b9
sub rcx, 0xffffffffffffff80
cmp qword [rcx], r15
je 0x1400394bd
add r9d, 1
cmp r9d, 4
jb 0x140039451
add rbx, 1
cmp qword [rcx], r15
je 0x1400394bd
jmp 0x140039420
mov rsi, qword [rcx + 0x20]
mov byte [rsp + Ordinal_1173], r15b
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x491]
call sub.ntdll.dll_memset
mov r9d, 1
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x10]
test al, al
je 0x1400395d1
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x4c8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x60], r15d
xor eax, eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebp, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
cmovne ebp, dword [rsp + 0x74]
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0x8fc]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x1400395ab
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x1400395ab
mov eax, r15d
jmp 0x1400395b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14003960c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmovne rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x1400395fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400395fb
mov qword [rsp + 0x50], r15
jmp 0x1400395fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400395fb
mov qword [rsp + 0x50], r15
add rdi, 1
cmp rdi, 0x100
jb 0x140039350
mov ecx, ebp
imul rcx, rsi
mov dword [rsp + 0x80], 1
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xe0]
mov rax, qword [rdx]
mov qword [r8], rax
mov rax, qword [rdx + 8]
mov qword [r8 + 8], rax
mov qword [rsp + 0x88], rcx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov r9d, 0x80
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1040]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa8]
call fcn.14002a790
test al, al
mov r14, qword [rsp + 0xa0]
jne 0x1400396be
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x140039861
lea r9, [rsp + reloc.MFC80U.DLL_Ordinal_1040]
lea r8, [0x1403b5c74]
mov edx, 0x80
mov rcx, r12
call fcn.140013b00
lea rcx, [r12 + 0x80]
lea r9, [rsp + 0x91c]
lea r8, [0x1403b5c74]
mov edx, 0x400
call fcn.140013b00
xor edx, edx
mov r8d, 0x8c
lea rcx, [rsp + 0x384]
call sub.ntdll.dll_memset
lea r11, [rsp + 0x380]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_2192]
mov rax, qword [rcx]
mov qword [r11], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 8], rax
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140039842
lea rdx, str.RtlStringFromGUID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140039842
lea rdx, str.RtlFreeUnicodeString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140039842
mov word [rsp + 0xe0], r15w
xor eax, eax
mov qword [rsp + 0xe2], rax
mov dword [rsp + 0xea], eax
mov word [rsp + 0xee], ax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x380]
call rdi
test eax, eax
jne 0x140039842
mov r9, qword [rsp + 0xe8]
lea r8, [0x1403b5c74]
mov edx, 0x80
lea rcx, [rsp + 0x390]
call fcn.140013b00
lea rcx, [rsp + 0xe0]
call rbx
mov r9, r12
lea r8, [rsp + 0x390]
mov rdx, r13
mov rcx, r14
call fcn.1400398d0
test al, al
jne 0x140039821
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x140039861
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
jmp 0x140039861
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
mov rcx, qword [rsp + 0x1890]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x18e0]
add rsp, 0x18a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret