Function at 0x140001700
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x158], rax
xor r12d, r12d
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMHardwareConfigCurrent
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021aa
lea rcx, [rbp + 0x130]
call fcn.140001250
mov r15, rax
lea rcx, [rbp + 0x110]
call fcn.140001250
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov ebx, 4
mov r8d, ebx
cmp qword [rax + 0x10], rbx
cmovb r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400017be
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140003eb0
nop
lea rcx, [rbp + 0xf0]
call fcn.140001250
mov rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8, rbx
cmp qword [rax + 0x10], rbx
cmovb r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400017ff
mov rdx, qword [rax]
lea rcx, [rbp - 0x10]
call fcn.140003eb0
nop
lea rcx, [rbp + 0xd0]
call fcn.140001250
mov rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
cmp qword [rax + 0x10], 4
cmovb rbx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000183b
mov rdx, qword [rax]
mov r8, rbx
lea rcx, [rbp - 0x30]
call fcn.140003eb0
nop
lea rcx, [rbp + 0xb0]
call fcn.140001250
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400018e8
lea r8, [rcx + 1]
mov qword [rbx + 0x10], r8
mov rdi, rbx
cmp rdx, 0xf
jbe 0x14000187f
mov rdi, qword [rbx]
lea rax, [0x1400064b9]
lea rsi, [0x1400064b8]
cmp rax, rdi
jbe 0x1400018ad
lea rax, [rdi + rcx]
cmp rsi, rax
ja 0x1400018ad
cmp rdi, rsi
ja 0x1400018a5
mov r14, r12
jmp 0x1400018b3
mov r14, rdi
sub r14, rsi
jmp 0x1400018b3
mov r14d, 1
lea rcx, [rdi + 1]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
sub r8, r14
lea rdx, [rsi + 1]
add rdx, r14
lea rcx, [rdi + r14]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000190d
mov qword [rsp + 0x28], 1
lea rsi, [0x1400064b8]
mov qword [rsp + 0x20], rsi
mov edx, 1
mov rcx, rbx
call fcn.140004330
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001979
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x2d
lea rax, [rsp + 0x30]
jmp 0x140001998
mov qword [rsp + 0x20], 1
lea r9, [0x1400064b4]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140003fb0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rbp - 0x30]
lea r8, [rbp + 0x90]
lea rcx, [rbp - 0x50]
call fcn.140004140
nop
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001a06
lea rax, [rcx + 1]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x50]
mov word [rax + rcx], 0x2d
lea rax, [rbp - 0x50]
jmp 0x140001a24
mov qword [rsp + 0x20], 1
lea r9, [0x1400064b4]
mov edx, 1
lea rcx, [rbp - 0x50]
call fcn.140003fb0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x80], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rbp - 0x10]
lea r8, [rbp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140004140
nop
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001a8c
lea rax, [rcx + 1]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x70]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x70]
mov word [rax + rcx], 0x2d
lea rax, [rbp - 0x70]
jmp 0x140001aaa
mov qword [rsp + 0x20], 1
lea r9, [0x1400064b4]
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140003fb0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140004140
nop
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001b13
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x70]
mov word [rax + rcx], 0x2d
lea rax, [rsp + 0x70]
jmp 0x140001b32
mov qword [rsp + 0x20], 1
lea r9, [0x1400064b4]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140003fb0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, r15
lea r8, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140004140
nop
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001b9d
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x50]
mov word [rax + rcx], 0x7d
lea rax, [rsp + 0x50]
jmp 0x140001bbc
mov qword [rsp + 0x20], 1
lea r9, [0x1400064b0]
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140003fb0
movups xmm7, xmmword [rax]
movups xmm8, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140001c13
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqa xmm6, xmmword [0x140006b70]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140001c65
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001ca4
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp - 0x80], xmm6
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140001ced
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ce7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ce7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140001d2b
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp - 0x60], xmm6
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140001d76
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140001db4
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001daf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001daf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp - 0x40], xmm6
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x140001e02
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dfc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001e42
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0xf
jbe 0x140001e91
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp + 0xc0], xmm6
mov byte [rbp + 0xb0], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140001edf
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ed9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ed9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0xf
jbe 0x140001f23
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp + 0xe0], xmm6
mov byte [rbp + 0xd0], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140001f71
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 0xf
jbe 0x140001fb5
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp + 0x100], xmm6
mov byte [rbp + 0xf0], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140002003
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ffd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ffd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x140002047
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002042
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002042
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
movdqu xmmword [rbp + 0x120], xmm6
mov byte [rbp + 0x110], 0
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x14000209a
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002095
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002095
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
mov dword [rsp + 0x28], 7
lea rbx, [0x1400064bc]
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.BaseBoardManufacturer
mov rcx, qword [rbp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 0x12
lea rax, str.B550_Phantom_Gaming
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.BaseBoardProduct
mov rcx, qword [rbp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 7
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.SystemManufacturer
mov rcx, qword [rbp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 0x18
lea rax, str.American_Megatrends_Inc.
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.BIOSVendor
mov rcx, qword [rbp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
psrldq xmm8, 8
movq rdx, xmm8
cmp rdx, 0xf
jbe 0x1400021aa
inc rdx
movq rcx, xmm7
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
mov rcx, qword [rbp + 0x158]
xor rcx, rsp
call fcn.140004510
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret