Function at 0x140001070
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x580], rax
xorps xmm0, xmm0
mov rsi, rcx
xor r15d, r15d
lea rcx, str.ntdll
movups xmmword [rbp - 0x48], xmm0
mov dword [rsp + 0x68], r15d
mov rdi, r8
movups xmmword [rbp - 0x38], xmm0
mov r14, rdx
movups xmmword [rbp - 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r9d, [r15 + 0x30]
mov rcx, rsi
lea r8, [rbp - 0x48]
call rax
test eax, eax
jns 0x140001105
lea rcx, str.Failed___NtQueryInformationProcess_failed_r_n
call fcn.140001010
xor eax, eax
jmp 0x14000151d
lea rcx, str.ntdll
mov qword [rsp + 0x6d8], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
lea rcx, [rsp + 0x78]
mov rbx, rax
mov rdx, rdi
movups xmmword [rsp + 0x78], xmm0
call rbx
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x370]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
lea rdx, [rbp + 0x370]
lea rcx, [rbp - 0x68]
movups xmmword [rbp - 0x68], xmm0
call rbx
xorps xmm0, xmm0
lea rdx, str.C:WindowsSystem32
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
call rbx
xorps xmm0, xmm0
lea rdx, str.botas_
lea rcx, [rbp - 0x78]
movups xmmword [rbp - 0x78], xmm0
call rbx
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 1]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateProcessParameters
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], r15
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x40], r15
lea r9, [rbp - 0x68]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x58]
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r15
call rax
test eax, eax
jns 0x14000122b
lea rcx, str.Failed___RtlCreateProcessParameters_failed
call fcn.140001010
xor eax, eax
jmp 0x140001515
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x140001248
lea rcx, str.Failed___Null_Params
call fcn.140001010
xor eax, eax
jmp 0x140001515
lfence
mov rax, qword [rsp + 0x50]
mov rdx, rax
mov r8d, dword [rax + 4]
mov rcx, qword [rax + 0x80]
add r8, rax
test rcx, rcx
je 0x14000128d
cmp rax, rcx
jbe 0x14000127d
lfence
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x80]
mov rcx, rdx
mov eax, dword [rax + 0x3f0]
add rax, rcx
cmp rax, r8
cmova r8, rax
sub r8, rdx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lfence
mov rdx, rdi
mov rcx, rsi
test rax, rax
je 0x140001328
mov r9d, dword [rdi + 4]
mov r8, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400012de
lea rcx, str.Failed___Writing_RemoteProcessParams_failed
call fcn.140001010
xor eax, eax
jmp 0x140001515
cmp qword [rdi + 0x80], r15
je 0x1400013c8
lfence
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
mov r9d, dword [rdi + 0x3f0]
mov r8, rdx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400013c8
lea rcx, str.Failed___Writing_environment_failed
call fcn.140001010
xor eax, eax
jmp 0x140001515
mov r8d, dword [rdi + 4]
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x140001358
lea rcx, str.Failed___Allocating_RemoteProcessParams_failed
call fcn.140001010
xor eax, eax
jmp 0x140001515
lfence
mov r9d, dword [rdi + 4]
mov r8, rdi
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400012cb
cmp qword [rdi + 0x80], r15
je 0x1400013c8
lfence
mov r8d, dword [rdi + 0x3f0]
mov r9d, 0x3000
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x1400012eb
lea rcx, str.Failed___Allocating_environment_failed
call fcn.140001010
xor eax, eax
jmp 0x140001515
lfence
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x1b8
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [r14 + 8]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtReadVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x1b8
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x10]
mov rdx, rbx
mov rcx, rsi
call rax
test eax, eax
js 0x1400014e9
mov rbx, qword [r14 + 8]
mov qword [rsp + 0x60], rdi
test rbx, rbx
jne 0x140001433
lea rcx, str.Failed___Getting_remote_PEB_address_error_
jmp 0x14000147c
lfence
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x1b8
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], r15
lea rdx, [rbx + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001499
lea rcx, str.Failed___Cannot_update_Params_
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed___Cannot_update_PEB:__08X
call fcn.140001010
xor eax, eax
jmp 0x140001515
lfence
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x1b8
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [r14 + 8]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtReadVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x1b8
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x10]
mov rdx, rbx
mov rcx, rsi
call rax
test eax, eax
jns 0x140001510
lea rbx, str.Cannot_read_remote_PEB____08X
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140001010
lea rcx, str.Failed___Cannot_Read_Remote_Process
call fcn.140001010
xor eax, eax
jmp 0x140001515
mov eax, 1
mov rbx, qword [rsp + 0x6d8]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140001af0
add rsp, 0x690
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret