Function at 0x1400017c0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x4e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140005020]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
movzx ebx, dl
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x68]
call qword [sym.imp.accelerometerdll.DLL_unsigned_char___cdecl_FindAccelerometerDevice_void____ptr64____ptr64_]
test al, al
jne 0x14000182d
lea edx, [r15 + 1]
lea r8d, [r15 + 0x6d]
call fcn.140001b20
jmp 0x140001aee
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [str.SoftwareHPHP_3D_DriveGuardProtectedDisks]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001ac3
test bl, bl
je 0x140001a6f
mov dword [rsp + 0x80], r15d
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0x84]
call sub.MSVCR110.dll_memset
lea r8, [rsp + 0x80]
mov edx, 0xa
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.accelerometerdll.DLL_unsigned_long_int___cdecl_GetAccelerometerProperty_void____ptr64__enum__ACCELEROMETER_PROPERTY_FLAGS__void____ptr64_]
test eax, eax
jne 0x140001ac3
mov r14d, dword [rsp + 0x88]
mov ebx, r15d
add r14d, dword [rsp + 0x84]
je 0x140001ac3
lea rdi, [rsp + 0x92]
cmp byte [rdi - 1], 0
je 0x140001a5e
cmp byte [rdi], 0
jne 0x140001a5e
mov r9d, ebx
lea r8, str.Disk_d
mov edx, 8
lea rcx, [rsp + 0x480]
call qword [sym.imp.MSVCR110.dll_swprintf_s]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x480]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001a5e
mov qword [rsp + 0x70], r15
mov esi, ebx
imul rsi, rsi, 0x3f
lea r9, [rsp + 0xa7]
add r9, rsi
mov qword [rsp + 0x20], 0x27
lea r8d, [rax + 0x28]
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR110.dll_mbstowcs_s]
lea rcx, [rsp + 0x480]
or rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140001990
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x480]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ModelNumber
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov qword [rsp + 0x70], r15
lea r9, [rsp + 0x93]
add r9, rsi
mov qword [rsp + 0x20], 0x13
mov r8d, 0x28
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR110.dll_mbstowcs_s]
lea rcx, [rsp + 0x480]
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140001a10
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x480]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SerialNumber
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
inc ebx
add rdi, 0x3f
cmp ebx, r14d
jb 0x1400018d6
jmp 0x140001ac3
mov rdx, qword [str.SoftwareHPHP_3D_DriveGuardProtectedDisks]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x140001ac3
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [str.SoftwareHPHP_3D_DriveGuardProtectedDisks]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001ad3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001ae3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140001c10
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret