Function at 0x14002bfe0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2630]
mov eax, 0x2730
call fcn.140168340
sub rsp, rax
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0x2620], rax
cmp byte [0x1401f2b2f], 0
mov r15, qword [rbp + 0x26b8]
mov qword [rsp + 0x60], r8
mov dword [rsp + 0x40], ecx
jne 0x14002c214
mov r12, 0xffffffffffffffff
lea rdi, [0x1401f2db0]
mov rbx, r12
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14002c044
xor esi, esi
lea r14d, [rsi + 1]
test ebx, ebx
je 0x14002c0a7
cmp ebx, 0xfe
jg 0x14002c0a7
movsxd r8, ebx
lea rcx, [rbp + 0x2210]
xor edx, edx
call fcn.140135010
lea rax, [rbp + 0x2210]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, rdi
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002c09d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002c0a7
cdqe
mov word [rbp + rax*2 + 0x2210], si
xor eax, eax
lea rcx, [rbp + 0x2002]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
mov eax, 5
xor edx, edx
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x30], ax
mov r8d, 0x206
lea rax, str.Winsta0Winlogon
mov r13d, esi
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], rax
movzx eax, word [0x1401c5558]
movups xmmword [rbp - 0x70], xmm0
mov word [rbp + 0x2000], ax
mov dword [rbp - 0x70], 0x68
call fcn.140135010
lea rax, [rbp + 0xf0]
mov edx, 0x104
lea rcx, [rbp + 0x2410]
mov qword [rsp + 0x48], rax
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.winsta.dll
lea rcx, [rbp + 0x2410]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x2410]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14002c19c
lea rdx, str.WinStationQueryInformationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002c185
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x2000]
xor ecx, ecx
mov dword [rsp + 0x20], 0x208
mov r8d, 0x21
call rax
movzx r13d, al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13d, r13d
je 0x14002c19c
cmp word [rbp + 0x2000], si
jne 0x14002c1c0
mov r9d, dword [rsp + 0x40]
lea r8, str..PipeTerminalServerSystemExecSrvr_d
mov edx, 0x104
lea rcx, [rbp + 0x2000]
call fcn.140029eb0
nop dword [rax]
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x2000]
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, r12
jne 0x14002c240
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14002c214
mov edx, 0x7530
lea rcx, [rbp + 0x2000]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14002c1c0
xor eax, eax
mov rcx, qword [rbp + 0x2620]
xor rcx, rsp
call fcn.140132620
mov rbx, qword [rsp + 0x2778]
add rsp, 0x2730
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0xf0
lea rcx, [rbp]
mov r8d, ebx
xor edx, edx
call fcn.140135010
mov eax, dword [rbp + 0x26b0]
mov dword [rbp + 0x5c], eax
mov dword [rbp + 8], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov qword [rbp + 0x18], rsi
lea rcx, [rbp + 0x2210]
mov dword [rbp + 4], eax
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x10], rax
mov rax, r12
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14002c280
lea ecx, [rax*2 + 2]
lea r14d, [rcx + 0xf0]
cmp r14d, 0x2000
jbe 0x14002c2fb
movaps xmm0, xmmword [rbp - 0x70]
lea rcx, [rbp + 0xf0]
movaps xmm1, xmmword [rbp - 0x60]
xorps xmm2, xmm2
movaps xmmword [rbp + 0x70], xmm0
mov r14d, 0x112
movaps xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xb0], xmm0
movsd xmm0, qword [rbp - 0x10]
movsd qword [rbp + 0xd0], xmm0
mov qword [rbp + 0x20], rsi
movaps xmmword [rbp + 0x80], xmm1
movaps xmmword [rbp + 0x90], xmm2
movaps xmmword [rbp + 0xa0], xmm2
movaps xmmword [rbp + 0xc0], xmm2
jmp 0x14002c382
mov ebx, ecx
lea rdx, [rbp + 0x2210]
mov r8d, ecx
lea rcx, [rbp + 0xf0]
call fcn.140134960
movaps xmm0, xmmword [rbp - 0x70]
lea rcx, [rbp + 0xf0]
movaps xmm1, xmmword [rbp - 0x60]
lea eax, [r14 + 0x22]
add rcx, rbx
movaps xmmword [rbp + 0x70], xmm0
movaps xmm0, xmmword [rbp - 0x30]
xorps xmm2, xmm2
movaps xmmword [rbp + 0xb0], xmm0
mov ebx, r14d
movsd xmm0, qword [rbp - 0x10]
movsd qword [rbp + 0xd0], xmm0
mov qword [rsp + 0x48], rcx
mov qword [rbp + 0x20], 0xf0
movaps xmmword [rbp + 0x80], xmm1
movaps xmmword [rbp + 0x90], xmm2
movaps xmmword [rbp + 0xa0], xmm2
movaps xmmword [rbp + 0xc0], xmm2
cmp eax, 0x2000
jbe 0x14002c37f
mov ebx, esi
jmp 0x14002c39d
mov r14d, eax
mov r8d, 0x22
lea rdx, str.Winsta0Winlogon
call fcn.140134960
mov rcx, qword [rsp + 0x48]
add rcx, 0x22
mov rdx, qword [rbp + 0x88]
mov eax, ebx
mov qword [rsp + 0x48], rcx
mov qword [rbp + 0x80], rax
mov dword [rsp + 0x40], r14d
test rdx, rdx
jne 0x14002c3c0
mov eax, esi
jmp 0x14002c404
cmp word [rdx + r12*2 + 2], si
lea r12, [r12 + 1]
jne 0x14002c3c0
lea eax, [r12*2 + 2]
lea r12d, [rax + r14]
cmp r12d, 0x2000
jbe 0x14002c3e6
mov eax, esi
jmp 0x14002c404
mov r8d, eax
mov ebx, eax
call fcn.140134960
mov rcx, qword [rsp + 0x48]
mov r14d, r12d
mov eax, dword [rsp + 0x40]
add rcx, rbx
mov qword [rsp + 0x48], rcx
mov qword [rbp + 0x88], rax
test r15, r15
je 0x14002c4be
mov eax, dword [rbp + 0x26b0]
and eax, 0x400
cmp r14d, 0x2000
ja 0x14002c49b
test eax, eax
je 0x14002c45e
nop dword [rax]
mov eax, edi
shr rax, 1
cmp word [r15 + rax*2], si
jne 0x14002c449
mov eax, edi
shr eax, 1
inc eax
cmp word [r15 + rax*2], si
je 0x14002c459
add edi, 2
lea eax, [r14 + rdi]
cmp eax, 0x2000
jbe 0x14002c430
jmp 0x14002c49b
add edi, 4
jmp 0x14002c49b
mov ecx, 1
mov edx, r14d
sub ecx, r14d
mov dword [rsp + 0x40], ecx
nop dword [rax]
mov eax, edi
cmp byte [rax + r15], sil
jne 0x14002c485
lea eax, [rcx + rdx]
cmp byte [rax + r15], sil
je 0x14002c493
mov ecx, dword [rsp + 0x40]
inc edi
inc edx
cmp edx, 0x2000
jbe 0x14002c470
jmp 0x14002c496
add edi, 2
mov rcx, qword [rsp + 0x48]
lea ebx, [r14 + rdi]
cmp ebx, 0x2000
ja 0x14002c4be
mov r8d, edi
mov rdx, r15
call fcn.140134960
mov eax, r14d
mov r14d, ebx
mov qword [rbp + 0x60], rax
jmp 0x14002c4c2
mov qword [rbp + 0x60], rsi
lea r9, [rsp + 0x54]
mov dword [rbp], r14d
mov r8d, r14d
mov qword [rsp + 0x20], rsi
lea rdx, [rbp]
mov rcx, r13
mov rbx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002c555
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rsi
mov r8d, 0x28
lea rdx, [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002c555
mov r8d, dword [rbp - 0x78]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [rsp + 0x6c]
mov rbx, rax
test esi, esi
je 0x14002c54b
movups xmm0, xmmword [rsp + 0x78]
movsd xmm1, qword [rbp - 0x78]
movups xmmword [0x1401f2d90], xmm0
movsd qword [0x1401f2da0], xmm1
jmp 0x14002c555
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [0x1401f2d90]
test rdx, rdx
mov rcx, rdx
cmove rcx, rbx
cmovne rbx, rdx
mov qword [0x1401f2d90], rcx
test rbx, rbx
jne 0x14002c581
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x14002c216