Function at 0x14000f840
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, r8
mov rsi, rdx
mov dword [rbp - 1], r9d
xor r15d, r15d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r12, 0xffffffffffffffff
mov r9d, r12d
mov r8, rdx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1400171b0
mov rdi, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x40], r15
lea rax, [rbp - 9]
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, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000fad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x1c]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x14000f920
lea r8, [rbp + 0x1c]
mov rdx, r9
lea rcx, [rbp - 0x49]
call fcn.140002760
nop
mov r8, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
sub rax, r8
mov r14d, 0x23
lea rsi, str.Error_creating_registry_key._Code:
cmp rax, r14
jb 0x14000f9f3
lea rax, [r8 + 0x23]
mov qword [rbp - 0x39], rax
lea rbx, [rbp - 0x49]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x49]
lea rax, [0x14001cde3]
cmp rax, rbx
jbe 0x14000f9b7
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x14000f9b7
cmp rbx, rsi
ja 0x14000f9af
mov rdi, r15
jmp 0x14000f9ba
mov rdi, rbx
sub rdi, rsi
jmp 0x14000f9ba
mov rdi, r14
lea rcx, [rbx + 0x23]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 0x23]
add rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x49]
jmp 0x14000fa09
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x49]
call fcn.14000b8c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 2
lea rdx, [rbp - 0x69]
call fcn.14000ba70
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14000fa84
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fa7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fa7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x14000fd22
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fd1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fd1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, r12d
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1400171b0
mov rdi, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000fd26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x1c]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x14000fb70
lea r8, [rbp + 0x1c]
mov rdx, r9
lea rcx, [rbp - 0x29]
call fcn.140002760
nop
mov r8, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
sub rax, r8
mov r14d, 0x2a
lea rsi, str.Error_setting_DWORD_registry_value._Code:
cmp rax, r14
jb 0x14000fc43
lea rax, [r8 + 0x2a]
mov qword [rbp - 0x19], rax
lea rbx, [rbp - 0x29]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x29]
lea rax, [0x14001ce12]
cmp rax, rbx
jbe 0x14000fc07
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x14000fc07
cmp rbx, rsi
ja 0x14000fbff
mov rdi, r15
jmp 0x14000fc0a
mov rdi, rbx
sub rdi, rsi
jmp 0x14000fc0a
mov rdi, r14
lea rcx, [rbx + 0x2a]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 0x2a]
add rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x29]
jmp 0x14000fc59
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.14000b8c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 2
lea rdx, [rbp - 0x69]
call fcn.14000ba70
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14000fcd4
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fccf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fccf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000fd22
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fd1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fd1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
xor al, al
jmp 0x14000fd32
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140017120
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret