Function at 0x140008460
Capabilities:
Check if file exists
Create process on windows
Self delete

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x190], rax
lea rsi, [0x140102478]
mov qword [rbp], rsi
lea r14, [0x1401025f8]
mov qword [rbp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x48], eax
xor edi, edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], rdi
mov word [rbp + 8], di
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rdi
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov r8d, 0x400
lea rdx, [rsp + 0x78]
lea rcx, [rbp]
call fcn.1400030b0
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov r8d, 0x400
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
sete bl
lea rcx, [rsp + 0x78]
call fcn.1400038a0
test bl, bl
jne 0x140008719
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140008719
xor r8d, r8d
lea rdx, [rbp + 0x140]
lea rcx, [rbp]
call fcn.1400087d0
nop
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x90], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x98], eax
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x70], 7
mov qword [rbp + 0x68], rdi
mov word [rbp + 0x58], di
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rdi
mov qword [rbp + 0x88], rdi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x90]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov qword [rsp + 0x58], rdi
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400b52d0
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], di
xor edx, edx
lea rcx, [rbp + 0xa0]
call fcn.14000a280
nop
lea rax, [0x140102478]
mov qword [rbp + 0xf0], rax
lea rax, [0x1401025f8]
mov qword [rbp + 0x130], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, str.cmd.exe
lea rcx, [rbp + 0xf0]
call fcn.140003cb0
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xa0]
call fcn.140008a00
nop
lea rcx, [rbp + 0xf0]
call fcn.1400048d0
lea r9, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae r9, qword [rbp + 8]
lea r8, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 8
cmovae r8, qword [rbp + 0xa8]
lea rdx, str.__s___c_del___s_
lea rcx, [rbp + 0x50]
call fcn.1400087a0
lea rcx, [rbp + 0x50]
call fcn.140002ef0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400086f4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea rcx, [rbp + 0xa0]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x50]
call fcn.140004280
nop
lea rcx, [rbp + 0x140]
call fcn.140004280
jmp 0x14000871b
xor bl, bl
lea rcx, [rbp]
call fcn.140004280
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret