Function at 0x180002bd0
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.1800084f0
lea rcx, [rbp + 0x291]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x290], sil
call fcn.1800084f0
lea rcx, [rbp + 0x181]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x180], sil
call fcn.1800084f0
lea rcx, [rbp + 0x71]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x70], sil
call fcn.1800084f0
mov rax, qword [0x180025ea8]
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 [0x180025ea8]
call qword [rax + pe_nt_image_headers64]
mov edx, 0x14eea
mov rcx, rbx
mov r14d, eax
mov rax, qword [0x180025ea8]
call qword [rax + 0xc8]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
test r15, r15
je 0x18000301b
test r14d, r14d
je 0x18000301b
test rax, rax
je 0x18000301b
lea rdx, [rbp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x180002d12
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._GetTempPath_failed
mov dword [rbp + 0x3f0], eax
mov r9d, eax
mov r8d, eax
jmp 0x180003035
lea rax, [rbp + 0x70]
mov rcx, rbx
nop dword [rax]
cmp byte [rax + rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180002d20
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, [0x180019720]
mov qword [rsp + 0x20], rax
je 0x180002d5f
lea r9, str._s_s.dll
call fcn.180007d44
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.180007d44
mov edx, 0x104
lea r9, str..pipe_s
lea rcx, [rbp + 0x180]
mov r8d, edx
mov qword [rsp + 0x20], r15
call fcn.180007d44
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 0x180002dff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._CreateFile_hServiceFile_failed
mov dword [rbp + 0x3f0], eax
mov r9d, eax
mov r8d, eax
jmp 0x180003035
test r14d, r14d
je 0x180002e43
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 0x180002e3f
add edi, dword [rbp + 0x3f8]
cmp edi, r14d
jb 0x180002e10
or rbx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180002e5e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, r14d
je 0x180002e7f
mov dword [rbp + 0x3f0], 0x18
mov r9d, 0x18
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._WriteFile_hServiceFile_failed
jmp 0x180003032
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, [0x180003100]
lea rcx, [0x180002520]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x3e0]
mov r8, r13
mov qword [rsp + 0x50], rax
mov rax, qword [0x180025ea8]
call qword [rax + 0x168]
mov rsi, rax
test rax, rax
jne 0x180002ef0
mov dword [rbp + 0x3f0], 6
lea r9d, [rax + 6]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._met_api__thread.create_failed
jmp 0x180003032
mov rcx, rax
mov rax, qword [0x180025ea8]
call qword [rax + 0x158]
test eax, eax
jne 0x180002f1e
mov dword [rbp + 0x3f0], 5
lea r9d, [rax + 5]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._met_api__thread.create_failed
jmp 0x180003032
test r13, r13
je 0x180002f51
mov edx, 0x1f4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180002f5c
mov dword [rbp + 0x3f0], 5
mov r9d, 5
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._WaitForSingleObject_failed
jmp 0x180003032
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r15
call fcn.180006860
test eax, eax
je 0x180002fc0
lea rdx, [rbp + 0x290]
mov rcx, r15
call fcn.180006af0
test eax, eax
je 0x180002f99
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._service_create_failed
mov dword [rbp + 0x3f0], eax
mov r9d, eax
mov r8d, eax
jmp 0x180003035
mov rcx, r15
call fcn.180006860
test eax, eax
je 0x180002fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._service_start_failed
mov dword [rbp + 0x3f0], eax
mov r9d, eax
mov r8d, eax
jmp 0x180003035
mov rcx, qword [rsi + 8]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [0x180025ea8]
mov rcx, rsi
call qword [rax + 0x160]
mov rax, qword [0x180025ea8]
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 0x180003041
mov dword [rbp + 0x3f0], 6
lea r9d, [rax + 6]
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._GetExitCodeThread_failed
jmp 0x180003032
mov dword [rbp + 0x3f0], 0xa0
mov r9d, 0xa0
lea rdx, str._ELEVATE__elevate_via_service_namedpipe2._invalid_arguments
mov r8d, r9d
lea rcx, [0x180018d60]
call fcn.180002450
mov r14, qword [rsp + 0x4a8]
mov r12, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4b8]
test r15, r15
je 0x18000306e
mov rcx, r15
call fcn.180006980
mov rcx, r15
call fcn.180006c50
mov r15, qword [rsp + 0x4a0]
lea rax, [rsp + 0x60]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180003080
test rbx, rbx
je 0x1800030b3
mov ebx, 0x14
lea rcx, [rsp + 0x60]
dec ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1800030b3
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x180003093
mov rbx, qword [rsp + 0x4e8]
test rsi, rsi
je 0x1800030d0
mov rax, qword [0x180025ea8]
mov rcx, rsi
call qword [rax + 0x140]
mov rsi, qword [rsp + 0x4c0]
test r13, r13
je 0x1800030e6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x3f0]
add rsp, 0x4c8
pop r13
pop rbp
ret