Function at 0x140008120
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14002b080]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r15, r9
mov rbx, rdx
mov rsi, rcx
movzx edi, byte [rbp + 0xa0]
mov r14, qword [rbp + 0xa8]
xor r12d, r12d
movzx r9d, dil
lea rcx, [rbp - 8]
call fcn.140008d90
nop
mov r9, rsi
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.140006f30
nop
lea rcx, [rbp - 8]
call fcn.140006b60
mov ebx, edi
xor rbx, 1
mov rdx, rsi
lea rcx, [rbp + 0x18]
call fcn.140008ae0
nop
cmp qword [rax + 0x18], 7
jbe 0x1400081a5
mov rax, qword [rax]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x54], r12d
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rbx - 0x7fffffff]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000852b
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x58], rbx
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x60], eax
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x140008247
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008242
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000855c
call fcn.14000b08c
movdqa xmm0, xmmword [0x14001c5a0]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r12w
mov rdx, r15
lea rcx, [rbp - 8]
call fcn.140004a10
nop
mov r9d, 1
lea r8, [0x14001be7c]
xor edx, edx
lea rcx, [rbp - 8]
call fcn.140007b80
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x1400082e8
lea rax, [rcx + 2]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x70]
cmp rdx, 7
cmova rax, qword [rbp - 0x70]
mov dword [rax + rcx*2], 0x200022
mov word [rax + rcx*2 + 4], r12w
lea rax, [rbp - 0x70]
jmp 0x14000830c
mov qword [rsp + 0x20], 2
lea r9, [0x14001be74]
movzx r8d, byte [rsp + 0x50]
mov edx, 2
lea rcx, [rbp - 0x70]
call fcn.140003000
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x140008348
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.140006cc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rcx, qword [rbp - 0x50]
mov eax, dword [rbp - 0x40]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14001be80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x140008562
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140008406
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008401
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008595
call fcn.14000b08c
movdqa xmm0, xmmword [0x14001c5a0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r12w
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140008460
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008453
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000859b
call fcn.14000b08c
movdqa xmm0, xmmword [0x14001c5a0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r12w
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x1400084b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400084a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400085a1
call fcn.14000b08c
movdqa xmm0, xmmword [0x14001c5a0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x1400084f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400084f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008525
call fcn.14000b08c
nop
test rbx, rbx
je 0x140008507
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14000b400
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140010d04
nop
lea rdx, str.cannot_create_registry_key
lea rcx, [rbp - 8]
call fcn.1400048a0
nop
lea r8, [rbp - 8]
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.140004c80
lea rdx, [0x140029380]
lea rcx, [rbp - 0x30]
call fcn.14000c134
nop
call fcn.140010d04
nop
lea rdx, str.cannot_set_value_of_registry_key
lea rcx, [rbp + 0x18]
call fcn.1400048a0
nop
lea r8, [rbp + 0x18]
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.140004c80
lea rdx, [0x140029380]
lea rcx, [rsp + 0x68]
call fcn.14000c134
nop
call fcn.140010d04
nop
call fcn.140010d04
nop
call fcn.140010d04
int3