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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r13
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c8
mov qword [rax + 0x10], rbx
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
xor esi, esi
mov qword [rax - 0x28], r12
mov rbx, rdx
mov qword [rax - 0x30], r14
lea rcx, [rsp + 0x61]
mov r8d, 0x103
xor edx, edx
mov qword [rax - 0x38], r15
mov dword [rbp + 0x3f0], esi
mov r13d, esi
mov byte [rsp + 0x60], sil
call fcn.180006fc0
lea rcx, [rbp + 0x291]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x290], sil
call fcn.180006fc0
lea rcx, [rbp + 0x181]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x180], sil
call fcn.180006fc0
lea rcx, [rbp + 0x71]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x70], sil
call fcn.180006fc0
mov rax, qword [0x180021ea8]
mov edx, 0x14ee9
mov rcx, rbx
mov dword [rbp + 0x3f8], esi
mov edi, esi
call qword [rax + 0xc8]
mov edx, 0x24eeb
mov rcx, rbx
mov r15, rax
mov rax, qword [0x180021ea8]
call qword [rax + pe_nt_image_headers64]
mov edx, 0x14eea
mov rcx, rbx
mov r14d, eax
mov rax, qword [0x180021ea8]
call qword [rax + 0xc8]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
test r15, r15
je 0x180002b63
test r14d, r14d
je 0x180002b63
test rax, rax
je 0x180002b63
lea rdx, [rbp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1800028c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x3f0], eax
jmp 0x180002b6d
lea rax, [rbp + 0x70]
mov rcx, rbx
nop dword [rax]
cmp byte [rax + rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x1800028d0
lea rax, [rbp + 0x70]
mov edx, 0x104
mov qword [rsp + 0x28], r15
cmp byte [rcx + rax - 1], 0x5c
lea rax, [rbp + 0x70]
mov r8d, edx
lea rcx, [rsp + 0x60]
lea r9, [0x180017da0]
mov qword [rsp + 0x20], rax
je 0x18000290f
lea r9, str._s_s.dll
call fcn.1800071ec
lea rax, [rsp + 0x60]
mov edx, 0x104
lea r9, str.rundll32.exe__s_a__p:_s
lea rcx, [rbp + 0x290]
mov r8d, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.1800071ec
mov edx, 0x104
lea r9, str..pipe_s
lea rcx, [rbp + 0x180]
mov r8d, edx
mov qword [rsp + 0x20], r15
call fcn.1800071ec
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
test rax, rax
jne 0x1800029a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x3f0], eax
jmp 0x180002b6d
test r14d, r14d
je 0x1800029e3
mov rbx, qword [rsp + 0x40]
nop dword [rax]
mov r8d, r14d
mov edx, edi
lea r9, [rbp + 0x3f8]
mov rcx, r12
sub r8d, edi
add rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800029df
add edi, dword [rbp + 0x3f8]
cmp edi, r14d
jb 0x1800029b0
or rbx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800029fe
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, r14d
je 0x180002a12
mov dword [rbp + 0x3f0], 0x18
jmp 0x180002b6d
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
lea r9, [rsp + 0x48]
lea rdx, [rbp + 0x180]
mov r13, rax
lea rax, [0x180002c30]
lea rcx, [0x1800022f0]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x3e0]
mov r8, r13
mov qword [rsp + 0x50], rax
mov rax, qword [0x180021ea8]
call qword [rax + 0x168]
mov rsi, rax
test rax, rax
jne 0x180002a78
mov dword [rbp + 0x3f0], 6
jmp 0x180002b6d
mov rcx, rax
mov rax, qword [0x180021ea8]
call qword [rax + 0x158]
test eax, eax
jne 0x180002a9b
mov dword [rbp + 0x3f0], 5
jmp 0x180002b6d
test r13, r13
je 0x180002ac1
mov edx, 0x1f4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180002acc
mov dword [rbp + 0x3f0], 5
jmp 0x180002b6d
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r15
call fcn.180005970
test eax, eax
je 0x180002b13
lea rdx, [rbp + 0x290]
mov rcx, r15
call fcn.180005b20
test eax, eax
je 0x180002af9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x3f0], eax
jmp 0x180002b6d
mov rcx, r15
call fcn.180005970
test eax, eax
je 0x180002b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x3f0], eax
jmp 0x180002b6d
mov rcx, qword [rsi + 8]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [0x180021ea8]
mov rcx, rsi
call qword [rax + 0x160]
mov rax, qword [0x180021ea8]
mov rcx, rsi
call qword [rax + 0x148]
mov rcx, qword [rsi + 8]
lea rdx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x180002b6d
mov dword [rbp + 0x3f0], 6
jmp 0x180002b6d
mov dword [rbp + 0x3f0], 0xa0
mov r14, qword [rsp + 0x4a8]
mov r12, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4b8]
test r15, r15
je 0x180002b9a
mov rcx, r15
call fcn.180005a20
mov rcx, r15
call fcn.180005c10
mov r15, qword [rsp + 0x4a0]
lea rax, [rsp + 0x60]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180002ba7
test rbx, rbx
je 0x180002be0
mov ebx, 0x14
nop word [rax + rax]
lea rcx, [rsp + 0x60]
dec ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x180002be0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x180002bc0
mov rbx, qword [rsp + 0x4e8]
test rsi, rsi
je 0x180002bfd
mov rax, qword [0x180021ea8]
mov rcx, rsi
call qword [rax + 0x140]
mov rsi, qword [rsp + 0x4c0]
test r13, r13
je 0x180002c13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x3f0]
add rsp, 0x4c8
pop r13
pop rbp
ret