Function at 0x1400036a2
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x140071560
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x850
lea rdi, [rsp + 0x30]
mov ecx, 0x208
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x860]
mov rax, qword [0x1401a8240]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov ecx, 0xeadc
call fcn.14000438b
call fcn.1400020a9
lea rax, [rsp + 0x748]
mov qword [rsp + 0x770], rax
lea rdx, str.c:windows_system32_ntdll.dll
mov rcx, qword [rsp + 0x770]
call fcn.140002a68
mov qword [rsp + 0x7d8], rax
mov rax, qword [rsp + 0x7d8]
mov qword [rsp + 0x7e0], rax
mov rax, qword [rsp + 0x7e0]
mov qword [rsp + 0x7e8], rax
lea rax, [rsp + 0x778]
mov qword [rsp + 0x7a0], rax
lea rdx, [0x14016c180]
mov rcx, qword [rsp + 0x7a0]
call fcn.1400023e7
mov qword [rsp + 0x7f0], rax
mov rax, qword [rsp + 0x7f0]
mov qword [rsp + 0x7f8], rax
mov rdx, qword [rsp + 0x7e8]
mov rcx, qword [rsp + 0x7f8]
call fcn.140001226
call fcn.140001064
call fcn.140001a64
lea rcx, [rsp + 0x38]
call fcn.14000304e
nop
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x7c8], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x7c8]
call fcn.1400037ab
mov qword [rsp + 0x800], rax
mov rdx, qword [rsp + 0x800]
lea rcx, [rsp + 0x78]
call fcn.140001d7f
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140002419
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140001906
mov qword [rsp + 0xb8], rax
jmp 0x1400716e6
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0xb0], rax
je 0x140071bdf
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
mov byte [rsp + 0x808], al
cmp byte [rsp + 0x808], 1
je 0x140071749
cmp byte [rsp + 0x808], 2
je 0x1400717e2
cmp byte [rsp + 0x808], 3
je 0x140071834
jmp 0x140071bcc
lea rcx, str._info__Load_PE_n
call fcn.140002b6c
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.1400010eb
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140003855
lea rcx, [rsp + 0xd8]
call fcn.140001a19
movzx eax, al
test eax, eax
je 0x1400717dd
lea rcx, str._info__Running_PE_n
call fcn.140002b6c
mov r8, qword [rsp + 0x868]
mov edx, dword [rsp + 0x860]
lea rcx, [rsp + 0xd8]
call fcn.140003fc6
mov dword [rsp + 0x7d0], eax
lea rcx, [rsp + 0x78]
call fcn.140001ff0
nop
lea rcx, [rsp + 0x38]
call fcn.1400021b7
mov eax, dword [rsp + 0x7d0]
jmp 0x140071bfa
jmp 0x140071bd8
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.1400028bf
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.1400010eb
mov qword [rsp + 0x818], rax
mov rdx, qword [rsp + 0x810]
mov rcx, qword [rsp + 0x818]
call fcn.1400042e1
jmp 0x140071bd8
call fcn.140001cda
call fcn.140002ef5
lea rcx, [rsp + 0xf8]
call fcn.140004520
nop
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.140003639
nop
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x128]
call fcn.14000370b
lea rdx, [rsp + 0x168]
mov rcx, qword [rsp + 0x128]
call fcn.1400045de
jmp 0x1400718a5
lea rcx, [rsp + 0x138]
call fcn.1400026d0
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x138]
call fcn.140003cf6
movzx eax, al
test eax, eax
jne 0x1400718f5
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x138]
call fcn.1400042eb
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x198]
call fcn.140002360
jmp 0x140071898
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x118]
call fcn.140002018
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x1d8]
call fcn.14000218a
nop
lea rax, [rsp + 0x240]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x240]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x470]
xor r8d, r8d
lea rdx, [0x14016c194]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x470]
lea rcx, str._info__Saving_loader_DLL_to__ls_n
call fcn.140002b6c
lea rdx, [rsp + 0x470]
mov ecx, 0x3e8
call fcn.1400029ff
lea rcx, [rsp + 0x698]
call fcn.140003c47
nop
mov dword [rsp + 0x6c4], 1
jmp 0x1400719ca
mov eax, dword [rsp + 0x6c4]
inc eax
mov dword [rsp + 0x6c4], eax
mov eax, dword [rsp + 0x860]
cmp dword [rsp + 0x6c4], eax
jge 0x140071aa5
movsxd rax, dword [rsp + 0x6c4]
mov rcx, qword [rsp + 0x868]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x6c8]
call fcn.140002a68
nop
lea rdx, [rsp + 0x6c8]
lea rcx, [rsp + 0x6f0]
call fcn.140003085
mov qword [rsp + 0x820], rax
mov rax, qword [rsp + 0x820]
mov qword [rsp + 0x828], rax
lea r8, [0x14016c1e4]
mov rdx, qword [rsp + 0x828]
lea rcx, [rsp + 0x718]
call fcn.1400031de
mov qword [rsp + 0x830], rax
mov rax, qword [rsp + 0x830]
mov qword [rsp + 0x838], rax
mov rdx, qword [rsp + 0x838]
lea rcx, [rsp + 0x698]
call fcn.1400042b9
nop
lea rcx, [rsp + 0x718]
call fcn.1400040f2
nop
lea rcx, [rsp + 0x6f0]
call fcn.1400040f2
nop
lea rcx, [rsp + 0x6c8]
call fcn.140001a73
jmp 0x1400719ba
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0x698]
call fcn.1400042b9
lea rcx, [rsp + 0x698]
call fcn.140002423
lea rcx, [rsp + 0x214]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x14016c1e8]
lea r8, str.PhotonNET.Loader
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x1b8]
call fcn.140002676
test eax, eax
je 0x140071b11
lea rcx, str._error__Failed_to_execute_app_n
call fcn.140002b6c
call fcn.1400018de
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140071b36
lea rcx, str._error__Failed_to_delete_loader_library_n
call fcn.140002b6c
call fcn.1400018de
jmp 0x140071b43
lea rcx, str._info__Deleted_loader_library_n
call fcn.140002b6c
nop
lea rcx, [rsp + 0x698]
call fcn.1400040f2
nop
lea rcx, [rsp + 0x1d8]
call fcn.1400040f2
nop
lea rcx, [rsp + 0x1b8]
call fcn.140004d5e
nop
lea rcx, [rsp + 0x118]
call fcn.140002360
nop
lea rcx, [rsp + 0xf8]
call fcn.140003198
jmp 0x140071bd8
lea rcx, str._error__Invalid_payload_type_in_archive_n
call fcn.140002b6c
jmp 0x140071bdf
lea rcx, [rsp + 0x78]
call fcn.140001ff0
nop
lea rcx, [rsp + 0x38]
call fcn.1400021b7
jmp 0x140071bf8
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14016c980]
call fcn.140003f7b
mov rax, rdi
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140002c02
add rsp, 0x850
pop rdi
ret