Function at 0x1400ba7b8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov r12, rcx
lea r14, [0x140106190]
mov rcx, qword [0x140106190]
cmp rcx, r14
je 0x1400ba82a
test byte [rcx + 0x1c], 1
je 0x1400ba82a
cmp byte [rcx + 0x19], 5
jb 0x1400ba82a
mov edx, 0x60
mov qword [rax - 0x60], r9
mov qword [rax - 0x68], r8
mov r9, rbx
lea r8, [0x1400e7210]
mov rcx, qword [rcx + 0x10]
call fcn.1400239c0
xor r13d, r13d
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140004a80
nop
lea rcx, [rbp - 0x30]
call fcn.1400336f0
mov r8, qword [rbp - 0x30]
lea rdx, [rbp - 0x18]
mov rcx, r12
call fcn.1400baf24
mov esi, eax
mov bl, 4
mov r10, qword [0x140106190]
cmp r10, r14
je 0x1400ba89a
test byte [r10 + 0x1c], 2
je 0x1400ba89a
cmp byte [r10 + 0x19], bl
jb 0x1400ba89a
lea edx, [r13 + 0x61]
mov r9d, eax
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.1400035ec
mov r10, qword [0x140106190]
test esi, esi
jne 0x1400baa3c
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.1400b442c
mov r14d, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400ba909
test byte [rcx + 0x1c], 2
je 0x1400ba909
cmp byte [rcx + 0x19], bl
jb 0x1400ba909
lea edx, [rsi + 0x62]
mov r9d, r14d
lea r8, [0x1400e7210]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
mov rbx, qword [rbp - 0x28]
test r14d, r14d
jne 0x1400ba937
mov rax, rbx
mov r8, rdi
sub r8, rbx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400ba92f
add rax, 2
test edx, edx
jne 0x1400ba91b
test ecx, ecx
je 0x1400baa12
test rdi, rdi
je 0x1400bab03
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1400ba944
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400ba9ad
test byte [rcx + 0x1c], 2
je 0x1400ba9ad
cmp byte [rcx + 0x19], 4
jb 0x1400ba9ad
mov edx, 0x63
mov r9d, esi
lea r8, [0x1400e7210]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
test r14d, r14d
jne 0x1400baa12
mov rdi, qword [rbp - 0x30]
mov rax, qword [r12]
mov edx, 0x3ec
mov rcx, r12
mov rax, qword [rax + 0x48]
call qword [case.0x14006d218.0]
mov ecx, eax
xor r9d, r9d
mov r8, r15
mov rdx, rdi
call fcn.1400bd430
mov rcx, qword [0x140106190]
lea r14, [0x140106190]
cmp rcx, r14
je 0x1400baa19
test byte [rcx + 0x1c], 2
je 0x1400baa19
cmp byte [rcx + 0x19], 4
jb 0x1400baa19
mov edx, 0x64
lea r8, [0x1400e7210]
mov rcx, qword [rcx + 0x10]
call fcn.140003538
jmp 0x1400baa19
lea r14, [0x140106190]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400baa6d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
jmp 0x1400baa6d
cmp esi, 2
jne 0x1400baa74
mov esi, 0x490
cmp r10, r14
je 0x1400baaae
test byte [r10 + 0x1c], 2
je 0x1400baa74
cmp byte [r10 + 0x19], bl
jb 0x1400baa74
mov edx, 0x65
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.140003538
mov r10, qword [0x140106190]
cmp r10, r14
je 0x1400baaae
test byte [r10 + 0x1c], 1
je 0x1400baaae
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x1400baaae
mov edx, 0x66
mov r9d, esi
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.1400035ec
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400baad4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400baae3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004f64
int3