Function at 0x1401083f0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3c8]
sub rsp, 0x4c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402a6808]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rdi, rcx
mov rdx, qword [str.Notepad_file]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x80], xmm1
xor esi, esi
mov word [rsp + 0x70], si
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x140108460
lea rcx, [rsp + 0x70]
call fcn.140006d60
nop
mov r8d, 0x13
lea rdx, str._shellopencommand
lea rcx, [rsp + 0x70]
call fcn.140006a90
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401085e0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [str.Notepad_file]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [str.Notepad_Document]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [str.Notepad_Document]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rbp - 0x70], 0x22
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp - 0x6c]
call fcn.14019e060
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1401a659c
lea r8, str.____1_
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1401a659c
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [str.Notepad_file]
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1401085f0
mov r8, rbx
lea rcx, [rsp + 0x70]
call fcn.140006d60
mov r8d, InitCommonControls
lea rdx, str.DefaultIcon
lea rcx, [rsp + 0x70]
call fcn.140006a90
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140108707
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rbp - 0x70], 0x22
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp - 0x6c]
call fcn.14019e060
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1401a659c
lea r8, [0x14022b170]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1401a659c
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140108744
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010873f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010877e
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14017f700
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401a10ac
int3