Function at 0x140001df0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, rdx
mov rsi, rcx
mov rdx, r8
lea rcx, [rbp - 0x80]
mov rbx, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
mov eax, 2
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140001e50
mov eax, dword [rbx]
mov dword [rcx], eax
lea rcx, [rbp - 0x10]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001eb2
sub rax, 2
lea rdx, [rax + rax]
movzx ecx, word [rbp + rdx - 0x10]
cmp cx, 0x5c
je 0x140001eda
cmp cx, 0x2f
je 0x140001eda
dec rax
jmp 0x140001ec0
lea rax, [rbp - 0xe]
xor r15d, r15d
add rax, rdx
je 0x140001eea
mov word [rax], r15w
mov edx, 0x104
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test rax, rax
jne 0x140001f0d
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movups xmm0, xmmword [str.C:WindowsSystem32]
lea rdx, [rbp - 0x40]
movups xmm1, xmmword [0x140005770]
lea rcx, [rbp - 0x50]
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x140005780]
movsd qword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [0x140005758]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edx, edx
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 1]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rax, qword gs:[0x30]
mov rcx, r15
mov rax, qword [rax + 0x60]
test rax, rax
je 0x140001f93
mov rax, qword [rax + 0x20]
test rax, rax
je 0x140001f93
lea rcx, [rax + 0xc0]
mov dword [rsp + 0x50], 1
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], r15
lea r9, [rbp - 0x60]
mov qword [rsp + 0x40], r15
lea r8, [rbp - 0x50]
mov qword [rsp + 0x38], rcx
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x358], rdi
mov qword [rsp + 0x60], r15
call qword [0x140009950]
test eax, eax
js 0x14000209f
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14000209f
mov r8d, dword [rbx + 4]
mov rdi, rbx
mov rcx, qword [rbx + 0x80]
add r8, rbx
test rcx, rcx
je 0x14000202d
mov eax, dword [rbx + 0x3f0]
cmp rbx, rcx
cmova rdi, rcx
add rax, rcx
cmp rax, r8
cmova r8, rax
sub r8, rdi
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, dword [rbx + 4]
mov rcx, rsi
test rax, rax
je 0x1400020c7
mov r9d, r8d
mov qword [rsp + 0x20], r15
mov r8, rdi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000209f
mov rdx, qword [rbx + 0x80]
test rdx, rdx
je 0x140002096
mov r9d, dword [rbx + 0x3f0]
mov r8, rdx
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000209f
test rdi, rdi
jne 0x14000215c
xor al, al
mov rdi, qword [rsp + 0x358]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140003a20
add rsp, 0x310
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x14000209f
mov r9d, dword [rbx + 4]
mov r8, rbx
mov rdx, rbx
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000209f
mov rdx, qword [rbx + 0x80]
test rdx, rdx
je 0x140002159
mov r8d, dword [rbx + 0x3f0]
mov r9d, 0x3000
mov rcx, rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x14000209f
mov rdx, qword [rbx + 0x80]
mov rcx, rsi
mov r9d, dword [rbx + 0x3f0]
mov r8, rdx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000209f
mov rdi, rbx
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x78]
add rdx, 0x20
mov qword [rsp + 0x70], rdi
mov r9d, 8
mov qword [rsp + 0x78], r15
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000209f
mov al, 1
jmp 0x1400020a1