Function at 0x140007710
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140064718]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rax, qword [rsp + 0x178]
mov qword [rbp + 0x20], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0x80]
call fcn.140004f70
mov rcx, rax
call fcn.1400096a0
mov qword [rbp + 0x28], rax
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0xd0]
call fcn.140005380
mov qword [rbp + 0xc0], 0
lea rcx, [rbp + 0xd0]
call fcn.1400016a0
lea r8, [rbp + 0xc0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 0
je 0x14000781f
mov byte [rbp + 3], 0
lea rcx, [rbp + 0xd0]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x170]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x178]
call fcn.1400012c0
movzx eax, byte [rbp + 3]
jmp 0x140007a22
mov rcx, qword [rsp + 0x170]
call fcn.14000a6a0
mov dword [rbp + 0x18], eax
mov rcx, qword [rsp + 0x170]
call fcn.1400016a0
mov qword [rbp + 0x30], rax
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 4]
movzx r8d, byte [rbp + 5]
movzx edx, byte [rbp + 6]
lea rcx, [rbp + 0x60]
call fcn.1400050d0
mov rcx, rax
call fcn.140009320
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x40], rax
mov eax, dword [rbp + 0x18]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 0
je 0x140007903
mov byte [rbp + 7], 0
lea rcx, [rbp + 0xd0]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x170]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x178]
call fcn.1400012c0
movzx eax, byte [rbp + 7]
jmp 0x140007a22
mov byte [rbp + 0xc8], 1
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xa]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 8]
movzx r8d, byte [rbp + 9]
movzx edx, byte [rbp + 0xa]
lea rcx, [rbp + 0x70]
call fcn.140005120
mov rcx, rax
call fcn.140009320
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x50], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 0
je 0x1400079ce
mov byte [rbp + 0xb], 0
lea rcx, [rbp + 0xd0]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x170]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x178]
call fcn.1400012c0
movzx eax, byte [rbp + 0xb]
jmp 0x140007a22
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1400079e8
mov dword [rbp + 0x14], 1
jmp 0x1400079ef
mov dword [rbp + 0x14], 0
movzx eax, byte [rbp + 0x14]
mov byte [rbp + 0xc], al
lea rcx, [rbp + 0xd0]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x170]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x178]
call fcn.1400012c0
movzx eax, byte [rbp + 0xc]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140021a70
add rsp, 0x158
pop rdi
pop rbp
ret