Function at 0x14000a570
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 [0x140086070]
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 0x14000a89a
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a612
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 0x14000a8a0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a66e
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 0x14000a8a6
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000a6ca
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 0x14000a6e7
call fcn.140025178
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.140003f90
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140004610
nop
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.1400044d0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14000a770
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a76b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a8ac
call fcn.140026a10
movdqa xmm0, xmmword [0x14007d250]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000a7c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a7bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a8b2
call fcn.140026a10
movdqa xmm0, xmmword [0x14007d250]
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 0x14000a8b8
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14000a851
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a84c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a894
call fcn.140026a10
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a870
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400269f0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.1400317c4
nop
call fcn.14002d168
int3
call fcn.14002d168
int3
call fcn.14002d168
nop
call fcn.1400317c4
nop
call fcn.1400317c4
int3
lea rdx, str.unable_to_init_registry__are_we_really_elevated_
lea rcx, [rbp - 0x70]
call fcn.140002e20
lea rdx, [0x140084d20]
lea rcx, [rbp - 0x70]
call fcn.1400287c8
int3