Function at 0x14002c040
Capabilities:
Acquire debug privileges
Create process on windows
Persist via run registry key
Set registry value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002c0e4
mov dword [rbp - 0x28], 4
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x30]
mov edx, 0x14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, r14d
test eax, eax
cmovne ebx, dword [rbp - 0x30]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14002c52f
mov dword [rsp + 0x60], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], eax
mov r8d, 0x104
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14002c15c
lea rax, str.runas
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r14
mov dword [rbp - 0x70], 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14002c590
mov r8d, 0x104
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14002c4a3
mov qword [rbp + 8], r14
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8d, 0x2d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rbp + 8]
call fcn.14000c830
nop
mov qword [rbp - 0x20], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
mov r8d, 0xe
lea rdx, str.ElevateProcess
lea rcx, [rbp - 0x20]
call fcn.14000c830
nop
mov qword [rsp + 0x30], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rbp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002c1f0
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000c830
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rdx, qword [rbp + 0x10]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c298
mov eax, dword [rsp + 0x48]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x18]
cmp qword [rbp], 7
cmova rdx, qword [rbp - 0x18]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x30]
test eax, eax
jne 0x14002c292
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x14002c29a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.140003160
lea r15, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
lea r12, [0x1400b9fdc]
mov rax, qword [rsp + 0x50]
cmp rax, 7
jbe 0x14002c32b
mov rsi, qword [rsp + 0x38]
lea rdi, [rax + 1]
test rsi, rsi
jne 0x14002c31f
test rdi, rdi
je 0x14002c31f
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x3b3
lea rdx, [0x1400b9fe0]
mov ecx, 2
call fcn.1400407b0
cmp eax, 1
jne 0x14002c2fa
int3
mov qword [rsp + 0x20], r14
mov r9d, 0x3b3
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.41.34120includexmemory
lea rdx, [0x1400ba114]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.140041260
lea rdx, [rdi + rdi]
mov rcx, rsi
call fcn.14000d2e0
movdqa xmm0, xmmword [0x1400bdfd0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
mov edx, 0x10
call fcn.14000d2e0
test bl, bl
jne 0x14002c598
lea rcx, [rbp - 0x20]
call fcn.140003160
mov rax, qword [rbp]
cmp rax, 7
jbe 0x14002c3db
mov rdi, qword [rbp - 0x18]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x14002c3cf
test rbx, rbx
je 0x14002c3cf
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x3b3
lea rdx, [0x1400b9fe0]
mov ecx, 2
call fcn.1400407b0
cmp eax, 1
jne 0x14002c3aa
int3
mov qword [rsp + 0x20], r14
mov r9d, 0x3b3
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.41.34120includexmemory
lea rdx, [0x1400ba114]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.140041260
lea rdx, [rbx + rbx]
mov rcx, rdi
call fcn.14000d2e0
movdqa xmm0, xmmword [0x1400bdfd0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x20], r14
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rbp + 8]
call fcn.140003160
mov rbx, qword [rbp + 0x28]
cmp rbx, 7
jbe 0x14002c47f
mov rdi, qword [rbp + 0x10]
inc rbx
test rdi, rdi
jne 0x14002c473
test rbx, rbx
je 0x14002c473
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x3b3
lea rdx, [0x1400b9fe0]
mov ecx, 2
call fcn.1400407b0
cmp eax, 1
jne 0x14002c44e
int3
mov qword [rsp + 0x20], r14
mov r9d, 0x3b3
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.41.34120includexmemory
lea rdx, [0x1400ba114]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.140041260
lea rdx, [rbx + rbx]
mov rcx, rdi
call fcn.14000d2e0
movdqa xmm0, xmmword [0x1400bdfd0]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], r14w
mov rcx, qword [rbp + 8]
mov qword [rbp + 8], r14
mov edx, 0x10
call fcn.14000d2e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002c56a
lea r8, [rbp - 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14002c55f
mov dword [rbp + 0x30], 1
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x34], rax
mov dword [rbp + 0x3c], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x10
lea r8, [rbp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14002c55f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002c55f
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140034bd0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Elevation_failed.__Restart_as_an_administrator.
lea rcx, [0x1400cac40]
call fcn.14000bd60
mov rcx, rax
call fcn.140008900
mov ecx, 1
call fcn.140058b50
int3
xor ecx, ecx
call fcn.140058b50
nop
xor ecx, ecx
call fcn.140058b50
int3