Function at 0x14000779c
Capabilities:
Delete registry key
Delete registry value
Set registry value
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf38]
mov eax, 0x1000
call fcn.1400143c0
sub rsp, rax
xor eax, eax
mov dword [rbp - 0x38], 0x240022
mov r14d, eax
mov qword [rbp - 0x68], rax
mov r12b, al
mov qword [rsp + 0x78], rax
mov ebx, eax
mov qword [rsp + 0x58], rax
lea rax, str.SymbolicLinkValue
xor ecx, ecx
lea edx, [r14 + 2]
mov qword [rbp - 0x30], rax
mov rsi, r9
mov r13, r8
mov r15d, 0xc0000022
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x70], eax
lea rdi, [rbp + 0x4d0]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
js 0x140007bc5
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x48]
call fcn.14000f378
xor ecx, ecx
test eax, eax
js 0x140007bc0
mov qword [rsp + 0x50], rcx
mov edi, r15d
lea rcx, [rbp - 0x60]
mov dword [rbp + 0x4d0], 0x5c
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov rbx, qword [rsp + 0x78]
test eax, eax
jne 0x1400078cd
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x1400078cd
mov r8, qword [rsp + 0x50]
lea rcx, [rbp + 0x4d2]
mov eax, 0x104
mov r9d, eax
mov edx, eax
call fcn.140001bb0
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400078cd
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140007700
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
test edi, edi
js 0x140007bc5
lea r12d, [rsi + 1]
lea rcx, [rbp + 0x4d0]
cmp word [rbp + 0x4d0], si
je 0x1400078ff
add rcx, 2
cmp word [rcx], si
jne 0x1400078f6
lea rax, [rbp + 0x4d0]
mov edx, 8
sub rcx, rax
movzx eax, word [rbp - 0x46]
sar rcx, 1
add rax, 0x104
lea rdi, [rax + rcx*2]
mov rcx, qword [0x140025290]
mov r8, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x140007bc5
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x78]
mov word [rbp - 0x78], si
mov word [rbp - 0x76], di
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
xor edi, edi
test eax, eax
js 0x140007bc5
lea rdx, str.SoftwareClasses
mov dword [rbp + 0x8e0], 0x5c
lea rcx, [rbp + 0x8e2]
call fcn.140001b70
lea rdx, [rbp + 0x8e0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x140007bc5
lea rdx, [rbp + 0x4d0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov rsi, qword [rbp + 0xf48]
test eax, eax
js 0x140007bcc
mov eax, 0x104
lea rcx, [rbp + 0xc0]
mov r9d, eax
mov edx, eax
mov r8, rsi
call fcn.140001bb0
lea rdx, str._shellopen
lea rcx, [rbp + 0xc0]
call fcn.140001ac8
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0xc0]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007bcc
lea rdx, str.command
lea rcx, [rbp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp - 0x68]
lea r8, [rbp - 0x28]
mov qword [rbp - 0x20], rax
lea rcx, [rsp + 0x58]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x28], 0x30
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x50]
mov dword [rbp - 0x10], 0x40
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov edx, 0xf003f
mov qword [rsp + 0x20], rdi
movdqu xmmword [rbp - 8], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
cmp eax, 0xc0000035
jne 0x140007aa6
bts dword [rbp - 0x10], 8
lea r8, [rbp - 0x28]
mov edx, 0xf003f
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x140007bcc
movzx eax, word [rbp - 0x78]
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x58]
mov r9d, 6
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
js 0x140007bcc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rbp + 0xf40]
add eax, 0xffffffcb
mov qword [rsp + 0x58], rdi
test eax, 0xfffffff7
je 0x140007b27
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.14000da10
test eax, eax
je 0x140007bcc
jmp 0x140007bbb
mov rdx, qword [0x140025290]
lea rcx, [rbp + 0xaf0]
add rdx, 0x272
call fcn.140001b70
mov rdx, r13
lea rcx, [rbp + 0xaf0]
call fcn.140001ac8
xor eax, eax
lea rdi, [rbp + 0x50]
lea edx, [rax + 0x70]
mov ecx, edx
rep stosb byte [rdi], al
lea rax, str.runas
mov dword [rbp + 0x50], edx
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
lea rax, [rbp + 0xaf0]
mov dword [rbp + 0x80], r12d
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x54], 0x40
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor edi, edi
test eax, eax
je 0x140007bcc
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0xb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, edi
jmp 0x140007bcc
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rbp + 0xf48]
mov rcx, qword [rsp + 0x58]
xor r13d, r13d
test rcx, rcx
je 0x140007bdf
call qword [sym.imp.ntdll.dll_NtClose]
test r14, r14
je 0x140007bfa
mov rcx, qword [0x140025290]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r12b, r12b
je 0x140007c14
test rbx, rbx
je 0x140007c22
lea rdx, [rbp + 0x4d2]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x140007c22
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x70], r13d
jl 0x140007c2f
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.SoftwareClasses
mov dword [rbp + 0xc0], 0x5c
lea rcx, [rbp + 0xc2]
call fcn.140001b70
lea rdx, [0x14001da80]
lea rcx, [rbp + 0xc0]
call fcn.140001ac8
mov rdx, rsi
lea rcx, [rbp + 0xc0]
call fcn.140001ac8
lea rdx, str._shellopen
lea rcx, [rbp + 0xc0]
call fcn.140001ac8
lea rdx, [0x14001da80]
lea rcx, [rbp + 0xc0]
call fcn.140001ac8
lea rdx, str.command
lea rcx, [rbp + 0xc0]
call fcn.140001ac8
lea rax, str.SymbolicLinkValue
mov dword [rsp + 0x78], 0x240022
lea rdi, [rbp + 0xc0]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x50], r13
cmp word [rbp + 0xc0], r13w
je 0x140007cda
add rdi, 2
cmp word [rdi], r13w
jne 0x140007cd0
lea rax, [rbp + 0xc0]
mov dword [rbp + 8], 0x30
sub rdi, rax
mov qword [rbp + 0x10], r13
lea rax, [rsp + 0x60]
sar rdi, 1
xorps xmm0, xmm0
mov qword [rbp + 0x18], rax
lea rcx, [rbp - 0x60]
mov dword [rbp + 0x20], 0x40
movdqu xmmword [rbp + 0x28], xmm0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
js 0x140007df1
movzx ebx, word [rbp - 0x5e]
lea ecx, [rdi + rdi]
add rbx, 2
mov edx, 8
add rbx, rcx
mov rcx, qword [0x140025290]
mov r8, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140007de7
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
mov word [rsp + 0x60], r13w
mov word [rsp + 0x62], bx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
test eax, eax
js 0x140007dd1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x140007dd1
lea r8, [rbp + 8]
mov dword [rbp + 0x20], 0x140
mov edx, 0xf003f
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x140007dd1
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
test eax, eax
js 0x140007dc6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x140025290]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov rbx, qword [rsp + 0x1050]
mov eax, r15d
add rsp, 0x1000
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret