Function at 0x1400249e0
Capabilities:
Create process on windows
Set registry value

Disassembly:
push rbx
push rbp
sub rsp, 0x118
mov rbx, rdx
mov rbp, rcx
lea r8, [rsp + 0x148]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140024cf9
lea r8d, [rax + 4]
lea rdx, str.HKCU
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x110], rdi
call fcn.1400a6cd0
test eax, eax
jne 0x140024a4c
lea rdx, [rbx + 0x18]
lea rcx, str.HKEY_CURRENT_USER
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
jmp 0x140024ade
lea rdx, [0x1400ab1c0]
lea rcx, [rbx + 0x10]
mov r8d, 3
call fcn.1400a6cd0
test eax, eax
jne 0x140024a7b
lea rdx, [rbx + 0x16]
lea rcx, str.HKEY_USERS
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
jmp 0x140024ade
lea rdx, str.HKCR
lea rcx, [rbx + 0x10]
mov r8d, 4
call fcn.1400a6cd0
test eax, eax
jne 0x140024aaa
lea rdx, [rbx + 0x18]
lea rcx, str.HKEY_CLASSES_ROOT
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
jmp 0x140024ade
lea rdx, str.HKLM
lea rcx, [rbx + 0x10]
mov r8d, 4
call fcn.1400a6cd0
test eax, eax
jne 0x140024ad9
lea rdx, [rbx + 0x18]
lea rcx, str.HKEY_LOCAL_MACHINE
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
jmp 0x140024ade
lock add dword [rbx - 0x20], 1
or edi, 0xffffffff
cmp dword [0x1400d8fc0], 0x3c
jb 0x140024b23
lea rdx, [rbx + 0x10]
lea rcx, str.Computer_
mov qword [rsp + 0x130], rsi
call sym.ProcessHacker.exe_PhConcatStrings2
lea rcx, [rbx - 0x20]
mov edx, edi
mov rsi, rax
lock xadd dword [rcx], edx
add edx, edi
jne 0x140024b18
call fcn.14001fcd0
mov rbx, rsi
mov rsi, qword [rsp + 0x130]
movzx ecx, word [rbx]
lea rax, [rbx + 0x10]
lea rdx, str.LastKey
add ecx, 2
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rbx - 0x20]
mov eax, edi
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x140024b68
call fcn.14001fcd0
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str._regedit.exe
mov ecx, 0x24
call sym.ProcessHacker.exe_PhGetKnownLocation
mov rbx, rax
test rax, rax
jne 0x140024c02
mov rbx, qword [0x1400d91a8]
lea edx, [rax + 0x28]
xor r8d, r8d
mov rcx, rbx
call fcn.14001fbe0
lock add dword [rbx + 0x18], 1
mov qword [rax + 0x10], rbx
mov dword [rax], 1
mov qword [rax + 8], 0x28
lea rbx, [rax + 0x20]
mov eax, 0x16
mov word [rbx], ax
mov word [rbx + 2], ax
lea rcx, [rbx + 0x10]
mov qword [rbx + 8], rcx
xor eax, eax
mov word [rbx + 0x26], ax
mov rax, qword [str.regedit.exe]
mov qword [rcx], rax
mov rax, qword [0x1400ade98]
mov qword [rcx + 8], rax
mov eax, dword [0x1400adea0]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1400adea4]
mov word [rcx + 0x14], ax
cmp byte [0x1400d8fb8], 0
jne 0x140024c85
xor edx, edx
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x30], 0x70
lea r8d, [rdx + 0x6c]
call fcn.14009e740
cmp dword [0x1400d8fc0], 0x3c
lea rax, [0x1400aa7c0]
mov qword [rsp + 0x50], rax
lea r11, [rbx + 0x10]
lea rax, str.runas
cmovb rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140024cdf
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140024cdf
xor edx, edx
lea rcx, [rsp + 0xa4]
mov dword [rsp + 0xa0], 0x70
lea r8d, [rdx + 0x6c]
call fcn.14009e740
lea r11, [rbx + 0x10]
lea rax, [0x1400aa7c0]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xd0], 5
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea rcx, [rbx - 0x20]
lock xadd dword [rcx], edi
add edi, 0xffffffff
mov rdi, qword [rsp + 0x110]
jne 0x140024cf9
call fcn.14001fcd0
add rsp, 0x118
pop rbp
pop rbx
ret