Function at 0x140005f80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov r14, rcx
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x11], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x1000
or eax, ecx
jge 0x140005fe7
mov edx, 0x1000
lea rcx, [rbp - 0x11]
call fcn.140003900
mov rbx, qword [rbp - 0x11]
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140034b74
test eax, eax
js 0x140006323
cmp eax, dword [rbx - 0xc]
jg 0x140006323
mov dword [rbx - 0x10], eax
cdqe
xor r15d, r15d
mov word [rbx + rax*2], r15w
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rbp + 0x77], rsi
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x19], rdi
lea edx, [r15 + 0x5c]
mov rcx, rbx
call fcn.140034604
mov r13, rax
or r12d, 0xffffffff
test rax, rax
je 0x1400061a1
sub r13, rbx
sar r13, 1
test r13d, r13d
js 0x1400061a1
lea r8d, [r13 + 1]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x11]
call fcn.140004cd0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400060ea
cmp dword [rdi + 0x10], r15d
jl 0x1400060dc
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400060dc
call fcn.1400026f0
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400060d2
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x19], rax
jmp 0x1400060ea
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x19]
call fcn.140005390
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140006109
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, r13d
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x11]
call fcn.140004950
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x77]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14000617a
cmp dword [rbx + 0x10], 0
jl 0x14000616c
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000616c
call fcn.1400026f0
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140006162
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x77], rax
jmp 0x14000617a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x77]
call fcn.140005390
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140006199
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp - 0x19]
mov rsi, qword [rbp + 0x77]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicy_
lea rcx, [rbp - 9]
call fcn.140005790
mov qword [rbp + 0x7f], r15
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rbp + 0x6f], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Policy
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rsi - 0x10]
lea r11d, [r11 + r11 + 2]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.AppPath
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rdi - 0x10]
add r11d, r11d
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.AppName
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400062a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400062c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400062e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140006303
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14000632e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14000632e
mov ecx, 0x80070057
call fcn.140001050
nop
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret