Function at 0x1400e8f60
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x890
lea rdi, [rsp + 0x40]
mov ecx, 0x214
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x8a0]
mov rax, qword [0x1401df240]
xor rax, rsp
mov qword [rsp + 0x880], rax
call fcn.1400f6680
lea rax, [rsp + 0x778]
mov qword [rsp + 0x7a0], rax
lea rdx, str.C:windows_system32_ntdll.dll
mov rcx, qword [rsp + 0x7a0]
call fcn.1400eb3f0
mov qword [rsp + 0x808], rax
mov rax, qword [rsp + 0x808]
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0x810]
mov qword [rsp + 0x818], rax
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x7d0], rax
lea rdx, [0x1401df080]
mov rcx, qword [rsp + 0x7d0]
call fcn.1400eb4e0
mov qword [rsp + 0x820], rax
mov rax, qword [rsp + 0x820]
mov qword [rsp + 0x828], rax
mov rdx, qword [rsp + 0x818]
mov rcx, qword [rsp + 0x828]
call fcn.1400f35d0
call fcn.1400f3a70
call fcn.1400f65b0
lea rcx, [rsp + 0x48]
call fcn.1400f0070
nop
lea rax, [rsp + 0x7d8]
mov qword [rsp + 0x7f8], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x7f8]
call fcn.1400eb5b0
mov qword [rsp + 0x830], rax
mov rdx, qword [rsp + 0x830]
lea rcx, [rsp + 0x88]
call fcn.1400f15b0
nop
mov qword [rsp + 0xb8], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1400ed030
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1400ed070
mov qword [rsp + 0xd0], rax
jmp 0x1400e90ee
mov rax, qword [rsp + 0xc8]
add rax, 0x28
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0xc8], rax
je 0x1400e975a
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
movzx eax, byte [rax]
mov byte [rsp + 0x838], al
cmp byte [rsp + 0x838], 1
je 0x1400e915f
cmp byte [rsp + 0x838], 2
je 0x1400e91fb
cmp byte [rsp + 0x838], 3
je 0x1400e924d
cmp byte [rsp + 0x838], 4
je 0x1400e9737
jmp 0x1400e9749
lea rcx, str._info__Load_PE_n
call fcn.1400edf20
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rcx, rax
call fcn.1400ed5a0
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1400edfc0
lea rcx, [rsp + 0xe8]
call fcn.1400eea20
movzx eax, al
test eax, eax
je 0x1400e91f6
lea rcx, str._info__Running_PE_n
call fcn.1400edf20
mov r8, qword [rsp + 0x8a8]
mov edx, dword [rsp + 0x8a0]
lea rcx, [rsp + 0xe8]
call fcn.1400eea50
mov dword [rsp + 0x800], eax
lea rcx, [rsp + 0x88]
call fcn.1400ebbd0
nop
lea rcx, [rsp + 0x48]
call fcn.1400ebb40
mov eax, dword [rsp + 0x800]
jmp 0x1400e9778
jmp 0x1400e9755
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rcx, rax
call fcn.1400ede50
mov qword [rsp + 0x840], rax
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rcx, rax
call fcn.1400ed5a0
mov qword [rsp + 0x848], rax
mov rdx, qword [rsp + 0x840]
mov rcx, qword [rsp + 0x848]
call fcn.1400eeb50
jmp 0x1400e9755
call fcn.1400f13e0
call fcn.1400f1490
lea rcx, [rsp + 0x108]
call fcn.1400f1180
nop
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.1400f0e90
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x138], rax
lea rdx, [rsp + 0x148]
mov rcx, qword [rsp + 0x138]
call fcn.1400f12e0
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x138]
call fcn.1400f13b0
jmp 0x1400e92be
lea rcx, [rsp + 0x148]
call fcn.1400f1000
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x148]
call fcn.1400f1120
movzx eax, al
test eax, eax
jne 0x1400e930e
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x148]
call fcn.1400f10d0
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x1a8]
call fcn.1400f0ec0
jmp 0x1400e92b1
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x128]
call fcn.1400f0ef0
nop
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x1e8]
call fcn.1400e8da0
nop
lea rax, [rsp + 0x250]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rax, [rsp + 0x480]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x250]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x480]
xor r8d, r8d
lea rdx, [0x1401ac464]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp qword [rsp + 0xb8], 0
jne 0x1400e93f0
lea rcx, str._error__No_CLR_loader_provided__skipping_CLR_payload_n
call fcn.1400edf20
nop
lea rcx, [rsp + 0x1e8]
call fcn.1400ebaa0
nop
lea rcx, [rsp + 0x1c8]
call fcn.1400f0e40
nop
lea rcx, [rsp + 0x128]
call fcn.1400f0ec0
nop
lea rcx, [rsp + 0x108]
call fcn.1400f12b0
jmp 0x1400e9755
lea rdx, [rsp + 0x480]
lea rcx, str._info__Saving_loader_DLL_to__ls_n
call fcn.1400edf20
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x698], rax
cmp qword [rsp + 0x698], 0
je 0x1400e94b3
mov rax, qword [rsp + 0xb8]
add rax, 8
mov rcx, rax
call fcn.1400ede50
mov dword [rsp + 0x850], eax
mov rax, qword [rsp + 0xb8]
add rax, 8
mov rcx, rax
call fcn.1400ed5a0
mov qword [rsp + 0x858], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6a4]
mov r8d, dword [rsp + 0x850]
mov rdx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x698]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400e94fc
lea rcx, str._error__Failed_to_write_DLL_loader_n
call fcn.1400edf20
nop
lea rcx, [rsp + 0x1e8]
call fcn.1400ebaa0
nop
lea rcx, [rsp + 0x1c8]
call fcn.1400f0e40
nop
lea rcx, [rsp + 0x128]
call fcn.1400f0ec0
nop
lea rcx, [rsp + 0x108]
call fcn.1400f12b0
jmp 0x1400e9755
mov rcx, qword [rsp + 0x698]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x6c8]
call fcn.1400eb540
nop
mov dword [rsp + 0x6f4], 1
jmp 0x1400e9535
mov eax, dword [rsp + 0x6f4]
inc eax
mov dword [rsp + 0x6f4], eax
mov eax, dword [rsp + 0x8a0]
cmp dword [rsp + 0x6f4], eax
jge 0x1400e9610
movsxd rax, dword [rsp + 0x6f4]
mov rcx, qword [rsp + 0x8a8]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x6f8]
call fcn.1400eb3f0
nop
lea rdx, [rsp + 0x6f8]
lea rcx, [rsp + 0x720]
call fcn.1400f2e40
mov qword [rsp + 0x860], rax
mov rax, qword [rsp + 0x860]
mov qword [rsp + 0x868], rax
lea r8, [0x1401ac4ec]
mov rdx, qword [rsp + 0x868]
lea rcx, [rsp + 0x748]
call fcn.1400e98f0
mov qword [rsp + 0x870], rax
mov rax, qword [rsp + 0x870]
mov qword [rsp + 0x878], rax
mov rdx, qword [rsp + 0x878]
lea rcx, [rsp + 0x6c8]
call fcn.1400ebe40
nop
lea rcx, [rsp + 0x748]
call fcn.1400ebaa0
nop
lea rcx, [rsp + 0x720]
call fcn.1400ebaa0
nop
lea rcx, [rsp + 0x6f8]
call fcn.1400eba00
jmp 0x1400e9525
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x6c8]
call fcn.1400ebe40
lea rcx, [rsp + 0x6c8]
call fcn.1400ed450
lea rcx, [rsp + 0x224]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x1401ac4f0]
lea r8, str.PhotonNET.Loader
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x1c8]
call fcn.1400f0dc0
test eax, eax
je 0x1400e967c
lea rcx, str._error__Failed_to_execute_app_n
call fcn.1400edf20
call fcn.1400f2d90
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e96a1
lea rcx, str._error__Failed_to_delete_loader_library_n
call fcn.1400edf20
call fcn.1400f2d90
jmp 0x1400e96ae
lea rcx, str._info__Deleted_loader_library_n
call fcn.1400edf20
nop
lea rcx, [rsp + 0x6c8]
call fcn.1400ebaa0
nop
lea rcx, [rsp + 0x1e8]
call fcn.1400ebaa0
nop
lea rcx, [rsp + 0x1c8]
call fcn.1400f0e40
nop
lea rcx, [rsp + 0x128]
call fcn.1400f0ec0
nop
lea rcx, [rsp + 0x108]
call fcn.1400f12b0
jmp 0x1400e9755
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xb8], rax
jmp 0x1400e9755
lea rcx, str._error__Invalid_payload_type_in_archive_n
call fcn.1400edf20
jmp 0x1400e90da
lea rcx, [rsp + 0x88]
call fcn.1400ebbd0
nop
lea rcx, [rsp + 0x48]
call fcn.1400ebb40
jmp 0x1400e9776
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401acc70]
call fcn.1400f9750
mov rax, rdi
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1400f9a40
add rsp, 0x890
pop rdi
ret