Function at 0x140017780
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 [0x140067080]
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.140022af0
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 0x140017a14
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 0x140017860
lea r8, [rbp + 0x1c]
mov rdx, r9
lea rcx, [rbp - 0x49]
call fcn.140002d60
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 0x140017933
lea rax, [r8 + 0x23]
mov qword [rbp - 0x39], rax
lea rbx, [rbp - 0x49]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x49]
lea rax, [0x14005c13b]
cmp rax, rbx
jbe 0x1400178f7
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x1400178f7
cmp rbx, rsi
ja 0x1400178ef
mov rdi, r15
jmp 0x1400178fa
mov rdi, rbx
sub rdi, rsi
jmp 0x1400178fa
mov rdi, r14
lea rcx, [rbx + 0x23]
inc r8
mov rdx, rbx
call fcn.14004a380
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14004a380
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 0x23]
add rdx, rdi
mov r8, r14
call fcn.14004a380
lea rax, [rbp - 0x49]
jmp 0x140017949
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x49]
call fcn.14000fe00
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.140012800
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x1400179c1
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400179bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c92
call fcn.140022abc
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140017c58
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c8c
jmp 0x140017c53
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.140022af0
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 0x140017c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x1c]
nop dword [rax]
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 0x140017ab0
lea r8, [rbp + 0x1c]
mov rdx, r9
lea rcx, [rbp - 0x29]
call fcn.140002d60
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 0x140017b83
lea rax, [r8 + 0x2a]
mov qword [rbp - 0x19], rax
lea rbx, [rbp - 0x29]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x29]
lea rax, [0x14005c16a]
cmp rax, rbx
jbe 0x140017b47
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140017b47
cmp rbx, rsi
ja 0x140017b3f
mov rdi, r15
jmp 0x140017b4a
mov rdi, rbx
sub rdi, rsi
jmp 0x140017b4a
mov rdi, r14
lea rcx, [rbx + 0x2a]
inc r8
mov rdx, rbx
call fcn.14004a380
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14004a380
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 0x2a]
add rdx, rdi
mov r8, r14
call fcn.14004a380
lea rax, [rbp - 0x29]
jmp 0x140017b99
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.14000fe00
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.140012800
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x140017c11
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c98
call fcn.140022abc
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140017c58
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c86
call fcn.140022abc
xor al, al
jmp 0x140017c68
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.140022a60
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002994c
int3
call fcn.14002994c
nop
call fcn.14002994c
nop
call fcn.14002994c
int3