Function at 0x140053430
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 [0x14014a1c0]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov ecx, 0xeadc
call fcn.14005d220
call fcn.140060ef0
lea rax, [rsp + 0x778]
mov qword [rsp + 0x7a0], rax
lea rdx, str.c:windows_system32_ntdll.dll
mov rcx, qword [rsp + 0x7a0]
call fcn.140055900
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, [0x140117470]
mov rcx, qword [rsp + 0x7d0]
call fcn.1400559f0
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.14005de50
call fcn.14005e2f0
call fcn.140060e20
lea rcx, [rsp + 0x48]
call fcn.14005a5b0
nop
lea rax, [rsp + 0x7d8]
mov qword [rsp + 0x7f8], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x7f8]
call fcn.140055b10
mov qword [rsp + 0x830], rax
mov rdx, qword [rsp + 0x830]
lea rcx, [rsp + 0x88]
call fcn.14005baf0
nop
mov qword [rsp + 0xb8], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1400575a0
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1400575c0
mov qword [rsp + 0xd0], rax
jmp 0x1400535c8
mov rax, qword [rsp + 0xc8]
add rax, 0x28
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0xc8], rax
je 0x140053c2a
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 0x140053639
cmp byte [rsp + 0x838], 2
je 0x1400536d5
cmp byte [rsp + 0x838], 3
je 0x140053727
cmp byte [rsp + 0x838], 4
je 0x140053c07
jmp 0x140053c19
lea rcx, str._info__Load_PE_n
call fcn.1400584a0
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rcx, rax
call fcn.140057c00
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1400585a0
lea rcx, [rsp + 0xe8]
call fcn.140059000
movzx eax, al
test eax, eax
je 0x1400536d0
lea rcx, str._info__Running_PE_n
call fcn.1400584a0
mov r8, qword [rsp + 0x8a8]
mov edx, dword [rsp + 0x8a0]
lea rcx, [rsp + 0xe8]
call fcn.140059030
mov dword [rsp + 0x800], eax
lea rcx, [rsp + 0x88]
call fcn.140056130
nop
lea rcx, [rsp + 0x48]
call fcn.1400560a0
mov eax, dword [rsp + 0x800]
jmp 0x140053c48
jmp 0x140053c25
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rcx, rax
call fcn.1400583d0
mov qword [rsp + 0x840], rax
mov rax, qword [rsp + 0xd8]
add rax, 8
mov rcx, rax
call fcn.140057c00
mov qword [rsp + 0x848], rax
mov rdx, qword [rsp + 0x840]
mov rcx, qword [rsp + 0x848]
call fcn.140059120
jmp 0x140053c25
call fcn.14005b920
call fcn.14005b9d0
lea rcx, [rsp + 0x108]
call fcn.14005b6c0
nop
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.14005b3d0
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x138], rax
lea rdx, [rsp + 0x148]
mov rcx, qword [rsp + 0x138]
call fcn.14005b820
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x138]
call fcn.14005b8f0
jmp 0x140053798
lea rcx, [rsp + 0x148]
call fcn.14005b540
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x148]
call fcn.14005b660
movzx eax, al
test eax, eax
jne 0x1400537e8
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x148]
call fcn.14005b610
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x1a8]
call fcn.14005b400
jmp 0x14005378b
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x128]
call fcn.14005b430
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x1e8]
call fcn.1400532d0
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, [0x140117484]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp qword [rsp + 0xb8], 0
jne 0x1400538c0
lea rcx, str._error__No_CLR_loader_provided__skipping_CLR_payload_n
call fcn.1400584a0
nop
lea rcx, [rsp + 0x1e8]
call fcn.140056000
nop
lea rcx, [rsp + 0x1c8]
call fcn.14005b380
nop
lea rcx, [rsp + 0x128]
call fcn.14005b400
nop
lea rcx, [rsp + 0x108]
call fcn.14005b7f0
jmp 0x140053c25
lea rdx, [rsp + 0x480]
lea rcx, str._info__Saving_loader_DLL_to__ls_n
call fcn.1400584a0
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 0x140053983
mov rax, qword [rsp + 0xb8]
add rax, 8
mov rcx, rax
call fcn.1400583d0
mov dword [rsp + 0x850], eax
mov rax, qword [rsp + 0xb8]
add rax, 8
mov rcx, rax
call fcn.140057c00
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 0x1400539cc
lea rcx, str._error__Failed_to_write_DLL_loader_n
call fcn.1400584a0
nop
lea rcx, [rsp + 0x1e8]
call fcn.140056000
nop
lea rcx, [rsp + 0x1c8]
call fcn.14005b380
nop
lea rcx, [rsp + 0x128]
call fcn.14005b400
nop
lea rcx, [rsp + 0x108]
call fcn.14005b7f0
jmp 0x140053c25
mov rcx, qword [rsp + 0x698]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x6c8]
call fcn.140055a50
nop
mov dword [rsp + 0x6f4], 1
jmp 0x140053a05
mov eax, dword [rsp + 0x6f4]
inc eax
mov dword [rsp + 0x6f4], eax
mov eax, dword [rsp + 0x8a0]
cmp dword [rsp + 0x6f4], eax
jge 0x140053ae0
movsxd rax, dword [rsp + 0x6f4]
mov rcx, qword [rsp + 0x8a8]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x6f8]
call fcn.140055900
nop
lea rdx, [rsp + 0x6f8]
lea rcx, [rsp + 0x720]
call fcn.14005d380
mov qword [rsp + 0x860], rax
mov rax, qword [rsp + 0x860]
mov qword [rsp + 0x868], rax
lea r8, [0x140117534]
mov rdx, qword [rsp + 0x868]
lea rcx, [rsp + 0x748]
call fcn.140053dc0
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.1400563d0
nop
lea rcx, [rsp + 0x748]
call fcn.140056000
nop
lea rcx, [rsp + 0x720]
call fcn.140056000
nop
lea rcx, [rsp + 0x6f8]
call fcn.140055f60
jmp 0x1400539f5
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x6c8]
call fcn.1400563d0
lea rcx, [rsp + 0x6c8]
call fcn.140057ab0
lea rcx, [rsp + 0x224]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x140117538]
lea r8, str.PhotonNET.Loader
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x1c8]
call fcn.14005b300
test eax, eax
je 0x140053b4c
lea rcx, str._error__Failed_to_execute_app_n
call fcn.1400584a0
call fcn.14005d2d0
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140053b71
lea rcx, str._error__Failed_to_delete_loader_library_n
call fcn.1400584a0
call fcn.14005d2d0
jmp 0x140053b7e
lea rcx, str._info__Deleted_loader_library_n
call fcn.1400584a0
nop
lea rcx, [rsp + 0x6c8]
call fcn.140056000
nop
lea rcx, [rsp + 0x1e8]
call fcn.140056000
nop
lea rcx, [rsp + 0x1c8]
call fcn.14005b380
nop
lea rcx, [rsp + 0x128]
call fcn.14005b400
nop
lea rcx, [rsp + 0x108]
call fcn.14005b7f0
jmp 0x140053c25
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xb8], rax
jmp 0x140053c25
lea rcx, str._error__Invalid_payload_type_in_archive_n
call fcn.1400584a0
jmp 0x1400535b4
lea rcx, [rsp + 0x88]
call fcn.140056130
nop
lea rcx, [rsp + 0x48]
call fcn.1400560a0
jmp 0x140053c46
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140117d20]
call fcn.140063fd0
mov rax, rdi
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1400642c0
add rsp, 0x890
pop rdi
ret