Function at 0x14001d560
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, rcx
mov rdi, rdx
mov rcx, qword [0x1402b63f0]
mov word [rsp + 0x50], cx
lea eax, [rcx + 2]
mov word [rsp + 0x52], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit]
mov qword [rsp + 0x58], rax
cmp rcx, 0xfffe
jbe 0x14001d5ce
mov ebx, 0xc0000106
lfence
mov ecx, ebx
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x14001d692
xor r8d, r8d
lea rax, [rsp + 0x48]
lea r9, [rbp + 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
lea rcx, [r8 - 9]
call fcn.1401608a0
mov ebx, eax
test eax, eax
js 0x14001d638
xor r13d, r13d
lea r8, [rbp + 0x78]
mov qword [rsp + 0x30], r13
lea rcx, [rbp + 0xa8]
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov edx, 0x20006
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x14001d630
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x14001d705
nop dword [rax + rax]
cmp ebx, 0xc0000022
je 0x14001d66d
cmp ebx, 0xc0000005
je 0x14001d66d
mov eax, ebx
shr eax, 0x10
and eax, 0xfff
cmp eax, 7
jne 0x14001d664
movzx eax, bx
jmp 0x14001d678
cmp eax, 0xb
jne 0x14001d67c
mov eax, ebx
jmp 0x14001d678
lfence
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x14001d688
lfence
mov ecx, ebx
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x14001d692
lfence
mov ecx, eax
call sym.SystemInformer.exe_PhGetWin32Message
lea r8, [0x140232c58]
mov rbx, rax
lea r9, str.Unable_to_execute_the_program.
mov rcx, r14
test rax, rax
je 0x14001d6f1
lfence
lfence
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r8d, 0xfffe
call sym.SystemInformer.exe_PhShowMessage2
lea rcx, ds:[rbx - 0x10]
mov esi, 0xffffffff
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x14001d977
lfence
jmp 0x14001d972
mov edx, 0x10
call sym.SystemInformer.exe_PhShowMessage
nop dword [rax + rax]
jmp 0x14001d977
mov rcx, rdi
mov qword [rsp + 0x210], r12
call fcn.140137e00
mov rbx, rax
mov dword [rsp + 0x60], 0x10000e
mov r15d, 0x10
xor r8d, r8d
mov edx, dword [rax]
mov rcx, qword [rax + 8]
add edx, 2
mov dword [rsp + 0x28], edx
lea rax, str.LastKey
mov qword [rsp + 0x20], rcx
lea r9d, [r15 - 0xf]
mov rcx, qword [rbp + 0xa8]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
mov esi, 0xffffffff
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001d785
nop
call fcn.14013d2a0
lea rcx, [rsp + 0x70]
call sym.SystemInformer.exe_PhGetSystemRoot
mov rdi, qword [rsp + 0x70]
mov rdx, qword [0x1402bfcf8]
lea rbx, [rdi + 0x18]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdx, qword [rsp + 0x78]
mov r8, rdi
mov r12, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r13w
mov rcx, qword [rax + 8]
call fcn.1401e3aa0
mov rcx, qword [r12 + 8]
movups xmm0, xmmword [str._regedit.exe]
movups xmmword [rcx + rdi], xmm0
movsd xmm0, qword [0x140236858]
movsd qword [rcx + rdi + 0x10], xmm0
lea rcx, [rbp + 0x60]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
xorps xmm0, xmm0
test dword [rax + 8], 1
mov rax, qword [r12 + 8]
je 0x14001d874
xor ecx, ecx
mov dword [rbp - 0x10], 0x70
movups xmmword [rbp - 0xc], xmm0
mov qword [rbp + 0x54], rcx
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x5c], ecx
lea rcx, [rbp - 0x10]
movups xmmword [rbp + 0x14], xmm0
mov qword [rbp + 8], rax
movups xmmword [rbp + 0x24], xmm0
mov dword [rbp - 0xc], 0x800540
movups xmmword [rbp + 0x34], xmm0
mov dword [rbp + 0x20], 5
movups xmmword [rbp + 0x44], xmm0
mov qword [rbp - 8], r14
movdqa xmmword [rbp + 0x10], xmm0
call fcn.1401372c0
test al, al
je 0x14001d8eb
mov rcx, qword ds:[rbp + 0x58]
test rcx, rcx
je 0x14001d95b
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14001d95b
xor ecx, ecx
mov dword [rbp - 0x80], 0x70
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x68], rax
lea rax, str.runas
movups xmmword [rbp - 0x7c], xmm0
mov qword [rbp - 0x1c], rcx
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x14], ecx
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x4c], xmm0
mov dword [rbp - 0x7c], 0x800540
movups xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x50], 5
movups xmmword [rbp - 0x2c], xmm0
mov qword [rbp - 0x78], r14
movdqa xmmword [rbp - 0x60], xmm0
call fcn.1401372c0
test al, al
je 0x14001d8eb
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001d95b
nop dword [rax]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14001d95b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001d8fe
xor ecx, ecx
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x14001d905
mov ecx, eax
call sym.SystemInformer.exe_PhGetWin32Message
lea r8, [0x140232c58]
mov rbx, rax
lea r9, str.Unable_to_execute_the_program.
mov rcx, r14
test rax, rax
je 0x14001d953
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r8d, 0xfffe
call sym.SystemInformer.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001d95b
call fcn.14013d2a0
jmp 0x14001d95b
mov edx, r15d
call sym.SystemInformer.exe_PhShowMessage
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], esi
mov r12, qword [rsp + 0x210]
cmp esi, 1
jne 0x14001d977
call fcn.14013d2a0
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret