Function at 0x14000f538
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword gs:[0x30]
mov r13, r9
mov r14d, r8d
mov r12, rdx
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x30]
cmp r8d, 0x104
ja 0x14000f639
xor eax, eax
lea rdi, [rsp + 0x50]
lea r8, [rsp + 0x50]
xor edx, edx
lea r9d, [rax + 0x40]
mov ecx, r9d
rep stosb byte [rdi], al
xor edi, edi
mov qword [rsp + 0x50], r9
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14000f5bd
mov ebx, dword [rbp - 0x78]
shr ebx, 1
and bl, 1
jmp 0x14000f5c0
mov bl, dil
mov edx, 0x114
lea rdi, [rbp - 0x70]
mov ecx, edx
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov r15d, dword [rbp - 0x64]
cmp r15d, 0x1db0
jb 0x14000f639
mov edx, 8
mov r8d, 0xca8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000f639
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14000f656
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
mov dword [rdi + 0xc], 1
lea rcx, [rbp + 0xf0]
mov dword [rdi + 8], r15d
mov eax, dword [0x7ffe0330]
mov dword [rbp + 0xf0], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov byte [rdi], bl
xor ebx, ebx
mov dword [rdi + 4], eax
test r14d, r14d
je 0x14000f6b5
mov r9, r14
lea rcx, [rdi + 0x890]
mov r8, r12
mov edx, 0x104
call fcn.140001b34
mov dword [rdi + 0x14], r14d
mov eax, 0x10800010
mov ecx, 0x10840014
cmp r15d, 0x3a95
cmovbe eax, ecx
mov rcx, rdi
mov dword [rdi + 0x10], eax
call fcn.14000ee48
test eax, eax
jne 0x14000f6e7
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ntdll.dll_RtlDestroyHeap]
jmp 0x14000f62b
lea rdx, str._temp__
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rdi + 0x47c]
mov dword [rsp + 0x30], 0x2080000
lea r9, [rbp + 0x100]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
mov dword [rbp + 0x100], ebx
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14000f74f
cmp eax, 0xc0000023
je 0x14000f74f
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rbx, [rdi + 0x686]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jae 0x14000f773
mov rcx, rbx
call fcn.1400101dc
lea rcx, [rdi + 0xa9a]
lea rdx, [rdi + 0x272]
call fcn.140001af4
lea rdx, str.cmd.exe
call fcn.140001ab8
mov rcx, r13
call fcn.14000da10
or qword [rdi + 0x28], 0xffffffffffffffff
mov qword [rdi + 0x20], rax
mov rax, rdi
jmp 0x14000f63b