Function at 0x1400f5a20
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 [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rdi, rcx
mov rdx, qword [str.Notepad_file]
xor esi, esi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
or rbx, 0xffffffffffffffff
cmp word [rdx], si
jne 0x1400f5a8b
mov r8d, esi
jmp 0x1400f5a9a
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x1400f5a90
lea rcx, [rsp + 0x70]
call fcn.140006f10
nop
mov r8d, 0x13
lea rdx, str._shellopencommand
lea rcx, [rsp + 0x70]
call fcn.140006a00
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 0x1400f5c10
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.140187ea0
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14018fad0
lea r8, str.____1_
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14018fad0
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]
cmp word [rdx], 0
jne 0x1400f5c22
mov rbx, rsi
jmp 0x1400f5c2c
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400f5c22
mov r8, rbx
lea rcx, [rsp + 0x70]
call fcn.140006f10
mov r8d, InitCommonControls
lea rdx, str.DefaultIcon
lea rcx, [rsp + 0x70]
call fcn.140006a00
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 0x1400f5d39
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.140187ea0
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14018fad0
lea r8, [0x140218a48]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14018fad0
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 r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x1400f5d55
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140168660
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