Function at 0x140077260
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, r9
mov rbx, r8
mov r14d, edx
mov r15, rcx
mov rdi, qword [rbp + 0xa0]
xor r13d, r13d
mov dword [rdi], 2
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400774e6
mov qword [rsp + 0x50], r13
mov r8d, edx
lea rdx, [rbp]
call fcn.140071a68
nop
lea r8d, [r13 + 1]
lea rdx, [0x1400e4788]
mov rcx, rax
call fcn.14000652c
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140006720
nop
or r12, 0xffffffffffffffff
mov r9, r12
xor r8d, r8d
lea rdx, [0x140113ca0]
lea rcx, [rbp - 0x40]
call fcn.14000663c
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140006720
nop
lea r8d, [r13 + 1]
lea rdx, [0x1400e4788]
lea rcx, [rbp - 0x68]
call fcn.14000652c
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140006720
nop
mov r9, r12
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.14000663c
lea r12d, [r13 + 7]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006720
nop
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbx, qword [rsp + 0x58]
mov edx, r14d
mov rcx, r15
call fcn.140071a1c
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov dword [rdi], eax
cmp qword [rsp + 0x70], 8
jb 0x140077403
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rbp - 0x70], 8
jb 0x14007742b
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
cmp qword [rbp - 0x50], 8
jb 0x140077450
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
cmp qword [rbp - 0x28], 8
jb 0x140077474
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
cmp qword [rbp + 0x18], 8
jb 0x140077498
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
cmp dword [rdi], r13d
jne 0x1400774dc
cmp qword [rsi + 0x18], 8
jb 0x1400774a7
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14007750d
mov dword [rsp + 0x28], r13d
lea rax, [0x1400dd700]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov dword [rdi], eax
lea rcx, [rsp + 0x50]
call fcn.14000619c
cmp dword [rdi], r13d
sete al
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400c4a70
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp]
call fcn.14000621c
nop
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.140005ab4
lea rdx, [0x1401096d0]
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll__CxxThrowException
int3