Function at 0x1400258f0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov rcx, 0xffffffff80000002
call fcn.1400ba1c0
test al, al
je 0x140025c53
xor r14d, r14d
mov qword [rbp - 0x21], r14
cmp qword [rbx + 0x18], 8
jb 0x140025947
mov rbx, qword [rbx]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025c53
mov rax, qword [rdi + 0x10]
lea ebx, [rax + rax]
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r14
mov word [rbp + 0xf], r14w
mov r8d, 7
lea rdx, str.AppName
lea rcx, [rbp + 0xf]
call fcn.140006900
nop
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rbp - 0x11]
call fcn.140006900
cmp qword [rdi + 0x18], 8
jb 0x1400259ce
mov rdi, qword [rdi]
test rdi, rdi
je 0x140025a37
test ebx, ebx
je 0x140025a37
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025a37
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
lea r9d, [rax + 1]
xor r8d, r8d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 7], 8
jb 0x140025a47
mov rcx, qword [rbp - 0x11]
call fcn.1400bd20c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
cmp qword [rbp + 0x27], 8
jb 0x140025a68
mov rcx, qword [rbp + 0xf]
call fcn.1400bd20c
mov rax, qword [rsi + 0x10]
lea ebx, [rax + rax]
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r14
mov word [rbp + 0xf], r14w
mov r8d, 7
lea rdx, str.AppPath
lea rcx, [rbp + 0xf]
call fcn.140006900
nop
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rbp - 0x11]
call fcn.140006900
cmp qword [rsi + 0x18], 8
jb 0x140025ac5
mov rsi, qword [rsi]
test rsi, rsi
je 0x140025b2e
test ebx, ebx
je 0x140025b2e
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025b2e
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
lea r9d, [rax + 1]
xor r8d, r8d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 7], 8
jb 0x140025b3e
mov rcx, qword [rbp - 0x11]
call fcn.1400bd20c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
cmp qword [rbp + 0x27], 8
jb 0x140025b5f
mov rcx, qword [rbp + 0xf]
call fcn.1400bd20c
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r14
mov word [rbp + 0xf], r14w
mov r8d, 6
lea rdx, str.Policy
lea rcx, [rbp + 0xf]
call fcn.140006900
nop
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rbp - 0x11]
call fcn.140006900
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025c18
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], 4
lea rax, [0x1400f7424]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 7], 8
jb 0x140025c28
mov rcx, qword [rbp - 0x11]
call fcn.1400bd20c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
cmp qword [rbp + 0x27], 8
jb 0x140025c49
mov rcx, qword [rbp + 0xf]
call fcn.1400bd20c
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400bcae0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret