Function at 0x14002b9d0
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.140167000
sub rsp, rax
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0x2620], rax
cmp byte [0x1401f2b0f], 0
mov r15, qword [rbp + 0x26b8]
mov qword [rsp + 0x60], r8
mov dword [rsp + 0x40], ecx
jne 0x14002bc04
mov r12, 0xffffffffffffffff
lea rdi, [0x1401f2d90]
mov rbx, r12
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14002ba34
xor esi, esi
lea r14d, [rsi + 1]
test ebx, ebx
je 0x14002ba97
cmp ebx, 0xfe
jg 0x14002ba97
movsxd r8, ebx
lea rcx, [rbp + 0x2210]
xor edx, edx
call fcn.140133cd0
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 0x14002ba8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002ba97
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 [0x1401c5508]
movups xmmword [rbp - 0x70], xmm0
mov word [rbp + 0x2000], ax
mov dword [rbp - 0x70], 0x68
call fcn.140133cd0
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 0x14002bb8c
lea rdx, str.WinStationQueryInformationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002bb75
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 0x14002bb8c
cmp word [rbp + 0x2000], si
jne 0x14002bbb0
mov r9d, dword [rsp + 0x40]
lea r8, str..PipeTerminalServerSystemExecSrvr_d
mov edx, 0x104
lea rcx, [rbp + 0x2000]
call fcn.1400298a0
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 0x14002bc30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14002bc04
mov edx, 0x7530
lea rcx, [rbp + 0x2000]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14002bbb0
xor eax, eax
mov rcx, qword [rbp + 0x2620]
xor rcx, rsp
call fcn.1401312e0
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.140133cd0
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 0x14002bc70
lea ecx, [rax*2 + 2]
lea r14d, [rcx + 0xf0]
cmp r14d, 0x2000
jbe 0x14002bceb
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 0x14002bd72
mov ebx, ecx
lea rdx, [rbp + 0x2210]
mov r8d, ecx
lea rcx, [rbp + 0xf0]
call fcn.140133620
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 0x14002bd6f
mov ebx, esi
jmp 0x14002bd8d
mov r14d, eax
mov r8d, 0x22
lea rdx, str.Winsta0Winlogon
call fcn.140133620
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 0x14002bdb0
mov eax, esi
jmp 0x14002bdf4
cmp word [rdx + r12*2 + 2], si
lea r12, [r12 + 1]
jne 0x14002bdb0
lea eax, [r12*2 + 2]
lea r12d, [rax + r14]
cmp r12d, 0x2000
jbe 0x14002bdd6
mov eax, esi
jmp 0x14002bdf4
mov r8d, eax
mov ebx, eax
call fcn.140133620
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 0x14002beae
mov eax, dword [rbp + 0x26b0]
and eax, 0x400
cmp r14d, 0x2000
ja 0x14002be8b
test eax, eax
je 0x14002be4e
nop dword [rax]
mov eax, edi
shr rax, 1
cmp word [r15 + rax*2], si
jne 0x14002be39
mov eax, edi
shr eax, 1
inc eax
cmp word [r15 + rax*2], si
je 0x14002be49
add edi, 2
lea eax, [r14 + rdi]
cmp eax, 0x2000
jbe 0x14002be20
jmp 0x14002be8b
add edi, 4
jmp 0x14002be8b
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 0x14002be75
lea eax, [rcx + rdx]
cmp byte [rax + r15], sil
je 0x14002be83
mov ecx, dword [rsp + 0x40]
inc edi
inc edx
cmp edx, 0x2000
jbe 0x14002be60
jmp 0x14002be86
add edi, 2
mov rcx, qword [rsp + 0x48]
lea ebx, [r14 + rdi]
cmp ebx, 0x2000
ja 0x14002beae
mov r8d, edi
mov rdx, r15
call fcn.140133620
mov eax, r14d
mov r14d, ebx
mov qword [rbp + 0x60], rax
jmp 0x14002beb2
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 0x14002bf45
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 0x14002bf45
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 0x14002bf3b
movups xmm0, xmmword [rsp + 0x78]
movsd xmm1, qword [rbp - 0x78]
movups xmmword [0x1401f2d70], xmm0
movsd qword [0x1401f2d80], xmm1
jmp 0x14002bf45
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [0x1401f2d70]
test rdx, rdx
mov rcx, rdx
cmove rcx, rbx
cmovne rbx, rdx
mov qword [0x1401f2d70], rcx
test rbx, rbx
jne 0x14002bf71
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x14002bc06