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

Disassembly:
jmp 0x140004290
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 [0x140030240]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov ecx, 0xeadc
call fcn.140001b04
call fcn.14000137f
lea rax, [rsp + 0x748]
mov qword [rsp + 0x770], rax
lea rdx, str.c:windows_system32_ntdll.dll
mov rcx, qword [rsp + 0x770]
call fcn.1400015b4
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, [0x140023d00]
mov rcx, qword [rsp + 0x7a0]
call fcn.140001424
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.140001055
call fcn.14000100f
call fcn.14000120d
lea rcx, [rsp + 0x38]
call fcn.140001703
nop
lea rax, [rsp + 0x7a8]
mov qword [rsp + 0x7c8], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x7c8]
call fcn.14000189d
mov qword [rsp + 0x800], rax
mov rdx, qword [rsp + 0x800]
lea rcx, [rsp + 0x78]
call fcn.1400012c1
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140001429
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400011b3
mov qword [rsp + 0xb8], rax
jmp 0x140004416
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0xb0], rax
je 0x14000490f
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 0x140004479
cmp byte [rsp + 0x808], 2
je 0x140004512
cmp byte [rsp + 0x808], 3
je 0x140004564
jmp 0x1400048fc
lea rcx, str._info__Load_PE_n
call fcn.1400015f5
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001019
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1400018b6
lea rcx, [rsp + 0xd8]
call fcn.1400011f4
movzx eax, al
test eax, eax
je 0x14000450d
lea rcx, str._info__Running_PE_n
call fcn.1400015f5
mov r8, qword [rsp + 0x868]
mov edx, dword [rsp + 0x860]
lea rcx, [rsp + 0xd8]
call fcn.140001a4b
mov dword [rsp + 0x7d0], eax
lea rcx, [rsp + 0x78]
call fcn.14000135c
nop
lea rcx, [rsp + 0x38]
call fcn.1400013c5
mov eax, dword [rsp + 0x7d0]
jmp 0x14000492a
jmp 0x140004908
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001550
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140001019
mov qword [rsp + 0x818], rax
mov rdx, qword [rsp + 0x810]
mov rcx, qword [rsp + 0x818]
call fcn.140001ae1
jmp 0x140004908
call fcn.140001299
call fcn.1400016b8
lea rcx, [rsp + 0xf8]
call fcn.140001b2c
nop
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.14000185c
nop
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x128]
call fcn.140001884
lea rdx, [rsp + 0x168]
mov rcx, qword [rsp + 0x128]
call fcn.140001b59
jmp 0x1400045d5
lea rcx, [rsp + 0x138]
call fcn.1400014d8
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x138]
call fcn.1400019ba
movzx eax, al
test eax, eax
jne 0x140004625
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x138]
call fcn.140001aeb
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x198]
call fcn.140001406
jmp 0x1400045c8
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x118]
call fcn.140001366
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x1d8]
call fcn.1400013b6
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, [0x140023d14]
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.1400015f5
lea rdx, [rsp + 0x470]
mov ecx, 0x3e8
call fcn.1400015a0
lea rcx, [rsp + 0x698]
call fcn.14000198d
nop
mov dword [rsp + 0x6c4], 1
jmp 0x1400046fa
mov eax, dword [rsp + 0x6c4]
inc eax
mov dword [rsp + 0x6c4], eax
mov eax, dword [rsp + 0x860]
cmp dword [rsp + 0x6c4], eax
jge 0x1400047d5
movsxd rax, dword [rsp + 0x6c4]
mov rcx, qword [rsp + 0x868]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x6c8]
call fcn.1400015b4
nop
lea rdx, [rsp + 0x6c8]
lea rcx, [rsp + 0x6f0]
call fcn.140001712
mov qword [rsp + 0x820], rax
mov rax, qword [rsp + 0x820]
mov qword [rsp + 0x828], rax
lea r8, [0x140023d64]
mov rdx, qword [rsp + 0x828]
lea rcx, [rsp + 0x718]
call fcn.14000174e
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.140001ad2
nop
lea rcx, [rsp + 0x718]
call fcn.140001a87
nop
lea rcx, [rsp + 0x6f0]
call fcn.140001a87
nop
lea rcx, [rsp + 0x6c8]
call fcn.140001212
jmp 0x1400046ea
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0x698]
call fcn.140001ad2
lea rcx, [rsp + 0x698]
call fcn.140001433
lea rcx, [rsp + 0x214]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x140023d68]
lea r8, str.PhotonNET.Loader
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x1b8]
call fcn.1400014c9
test eax, eax
je 0x140004841
lea rcx, str._error__Failed_to_execute_app_n
call fcn.1400015f5
call fcn.1400011a4
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140004866
lea rcx, str._error__Failed_to_delete_loader_library_n
call fcn.1400015f5
call fcn.1400011a4
jmp 0x140004873
lea rcx, str._info__Deleted_loader_library_n
call fcn.1400015f5
nop
lea rcx, [rsp + 0x698]
call fcn.140001a87
nop
lea rcx, [rsp + 0x1d8]
call fcn.140001a87
nop
lea rcx, [rsp + 0x1b8]
call fcn.140001cda
nop
lea rcx, [rsp + 0x118]
call fcn.140001406
nop
lea rcx, [rsp + 0xf8]
call fcn.14000173f
jmp 0x140004908
lea rcx, str._error__Invalid_payload_type_in_archive_n
call fcn.1400015f5
jmp 0x14000490f
lea rcx, [rsp + 0x78]
call fcn.14000135c
nop
lea rcx, [rsp + 0x38]
call fcn.1400013c5
jmp 0x140004928
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140024500]
call fcn.140001a3c
mov rax, rdi
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140001622
add rsp, 0x850
pop rdi
ret