Function at 0x14000a4c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140082090]
xor rax, rsp
mov qword [rbp + 0xf0], rax
xor edi, edi
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x48]
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x50], edi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Avast_Software
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000a7ea
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a562
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x50], edi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Avast
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000a7f0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a5be
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x50], edi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.properties
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000a7f6
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000a61a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp - 0x20]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000a637
call fcn.140025668
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rbx
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140003f50
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400046c0
nop
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.140004590
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14000a6c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a6bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a7fc
call fcn.140026f60
movdqa xmm0, xmmword [0x140078980]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000a714
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a70f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a802
call fcn.140026f60
movdqa xmm0, xmmword [0x140078980]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], di
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
mov eax, dword [rbp - 0x30]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ProgramFolder
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000a808
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14000a7a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a79c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a7e4
call fcn.140026f60
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a7c0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140026f40
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140031cf4
nop
call fcn.14002d69c
int3
call fcn.14002d69c
int3
call fcn.14002d69c
nop
call fcn.140031cf4
nop
call fcn.140031cf4
int3
lea rdx, str.unable_to_init_registry__are_we_really_elevated_
lea rcx, [rbp - 0x70]
call fcn.140002e10
lea rdx, [0x140080490]
lea rcx, [rbp - 0x70]
call fcn.140028d28
int3