Function at 0x1400f4880
Capabilities:
Create process on windows
Get common file path
Log keystrokes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8c8]
sub rsp, 0x9c8
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rbx, rcx
test rcx, rcx
je 0x1400f4d1f
lea r8, [rsp + 0x70]
lea rdx, [0x14014bab8]
call fcn.140100f50
cmp eax, 0xffffffff
je 0x1400f4d1f
mov edx, 2
mov ecx, 0x104
call fcn.140105400
mov rdi, rax
mov qword [rsp + 0x68], 7
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rbx], r15w
jne 0x1400f490b
mov r8d, r15d
jmp 0x1400f491a
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], r15w
jne 0x1400f4910
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000b9c0
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
mov r8d, 4
lea rdx, str.__t_n_r
lea rcx, [rbp - 0x68]
call fcn.14000b9c0
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400f6a50
nop
cmp qword [rsp + 0x68], 8
jb 0x1400f4975
mov rcx, qword [rsp + 0x50]
call fcn.1400fa318
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
test rdi, rdi
je 0x1400f4d07
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
lea r9, [0x140161a50]
mov edx, 0x104
mov rcx, rdi
call fcn.1400f44f0
mov rcx, rdi
test eax, eax
je 0x1400f4d02
lea r12, [rbp + 0xa0]
mov ebx, 1
mov dword [rbp + 0x910], ebx
mov r13d, r15d
lea edx, [rbx + 0x2d]
call fcn.1400fd464
test rax, rax
je 0x1400f4a41
lea rdx, str..lnk
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400f4a41
mov dword [rsp + 0x40], ebx
lea rax, [rbp + 0x910]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x104
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0xa0]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rdi
call fcn.1400f0340
test eax, eax
cmovne r13d, ebx
mov rsi, r15
mov edx, SafeArrayAllocDescriptor
mov rcx, rdi
call fcn.1400fd464
mov r14, rax
lea r8, [rbp + 0x4c0]
test rax, rax
je 0x1400f4ac0
mov edx, r15d
mov rcx, rdi
cmp word [rdi], dx
je 0x1400f4a96
test bl, dl
jne 0x1400f4a75
cmp word [rcx], 0x20
je 0x1400f4a93
movzx eax, word [rcx]
cmp ax, 0x22
jne 0x1400f4a82
inc edx
jmp 0x1400f4a8a
mov word [r8], ax
add r8, 2
add rcx, 2
cmp word [rcx], si
jmp 0x1400f4a69
mov rsi, rcx
mov word [r8], r15w
lea r15, [rbp + 0x4c0]
test rsi, rsi
je 0x1400f4ac3
xor ebx, ebx
mov word [rsi], bx
lea edx, [rbx + 0x5c]
mov rcx, rdi
call fcn.1400fd258
mov ecx, SafeArrayAllocDescriptor
mov word [rsi], cx
jmp 0x1400f4ad2
mov r15, rdi
mov edx, 0x5c
mov rcx, rdi
call fcn.1400fd258
xor ebx, ebx
test rax, rax
je 0x1400f4b16
test r14, r14
je 0x1400f4aee
cmp r14, rax
jae 0x1400f4aee
sub rax, r14
sub rax, 2
lea rdx, [r14 + 2]
jmp 0x1400f4af4
sub rax, rdi
mov rdx, rdi
sar rax, 1
mov r8d, eax
mov ebx, eax
lea rcx, [rbp + 0xa0]
call fcn.1400fd41c
xor eax, eax
mov word [rbp + rbx*2 + 0xa0], ax
xor ebx, ebx
jmp 0x1400f4b38
lea rdx, [rbp + 0xa0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400f4b35
mov word [rbp + 0xa6], bx
jmp 0x1400f4b38
mov r12, rbx
mov r14, rbx
test rsi, rsi
je 0x1400f4b46
add rsi, 2
jmp 0x1400f4b49
mov rsi, rbx
cmp qword [rbp + 0x920], 0
je 0x1400f4ba1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov r8d, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, qword [rbp + 0x920]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor ebx, ebx
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rbp - 0x40]
call fcn.1400fa4e0
mov dword [rbp - 0x40], 0x70
mov dword [rbp - 0x3c], 0x440
mov qword [rbp - 0x38], rbx
lea rax, str.open
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r15
mov rax, qword [rbp + 0x928]
test rax, rax
cmovne rsi, rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov dword [rbp - 0x10], 1
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
je 0x1400f4c07
mov rsi, qword [rbp + 0x28]
jmp 0x1400f4cbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x1400f4ce9
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x30]
call fcn.1400fa4e0
mov dword [rbp + 0x30], 0x68
test r13d, r13d
je 0x1400f4c42
or dword [rbp + 0x6c], 1
movzx eax, word [rbp + 0x910]
mov word [rbp + 0x70], ax
lea rdx, [rbp + 0xa0]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400f4c63
xor eax, eax
mov word [rbp + 0xa6], ax
jmp 0x1400f4c68
xor eax, eax
mov r12d, eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rsi, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x1400f4cbc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400f4ce5
cmp dword [rbp + 0x918], 0
je 0x1400f4cdc
test ebx, ebx
je 0x1400f4cdc
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400f4cf8
test r14, r14
je 0x1400f4cf8
xor edx, edx
mov rcx, r14
call fcn.1400f0e20
mov rcx, rdi
call fcn.1400fc1ec
jmp 0x1400f4d0a
call fcn.1400fc1ec
mov ebx, r15d
cmp qword [rbp - 0x70], 8
jb 0x1400f4d1b
mov rcx, qword [rsp + 0x78]
call fcn.1400fa318
mov eax, ebx
jmp 0x1400f4d21
xor eax, eax
add rsp, 0x9c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret