Function at 0x140001e20
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, [0x140021790]
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 0x140001eb5
lea rcx, str.Failed___NtQueryInformationProcess_failed_r_n
call fcn.140001d60
xor eax, eax
jmp 0x1400022a9
lea rcx, [0x140021790]
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 fcn.140004070
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.King_Hamlet_
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, [0x140021790]
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 0x140001fdb
lea rcx, str.Failed___RtlCreateProcessParameters_failed
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x140001ff8
lea rcx, str.Failed___Null_Params
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
mov r8d, dword [rdi + 4]
mov rdx, rdi
mov rcx, qword [rdi + 0x80]
add r8, rdi
test rcx, rcx
je 0x140002025
mov eax, dword [rdi + 0x3f0]
cmp rdi, rcx
cmova rdx, rcx
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]
mov r8d, dword [rdi + 4]
mov rdx, rdi
mov rcx, rsi
test rax, rax
je 0x1400020f9
mov r9d, r8d
mov qword [rsp + 0x20], r15
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000207a
lea rcx, str.Failed___Writing_RemoteProcessParams_failed
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
mov rdx, qword [rdi + 0x80]
test rdx, rdx
jne 0x140002192
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x1b8
call fcn.140004070
mov rbx, qword [r14 + 8]
lea rcx, [0x140021790]
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 0x140002275
mov rbx, qword [r14 + 8]
mov qword [rsp + 0x60], rdi
test rbx, rbx
jne 0x1400021c5
lea rcx, str.Failed___Getting_remote_PEB_address_error_
jmp 0x14000220b
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x140002125
lea rcx, str.Failed___Allocating_RemoteProcessParams_failed
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
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 0x140002067
mov rdx, qword [rdi + 0x80]
test rdx, rdx
je 0x14000208a
mov r8d, dword [rdi + 0x3f0]
mov r9d, 0x3000
mov rcx, rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x14000218b
lea rcx, str.Failed___Allocating_environment_failed
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
mov rdx, qword [rdi + 0x80]
mov r9d, dword [rdi + 0x3f0]
mov r8, rdx
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000208a
lea rcx, str.Failed___Writing_environment_failed
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x1b8
call fcn.140004070
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 0x140002228
lea rcx, str.Failed___Cannot_update_Params_
call fcn.140001d60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed___Cannot_update_PEB:__08X
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x1b8
call fcn.140004070
mov rbx, qword [r14 + 8]
lea rcx, [0x140021790]
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 0x14000229c
lea rbx, str.Cannot_read_remote_PEB____08X
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140001d60
lea rcx, str.Failed___Cannot_Read_Remote_Process
call fcn.140001d60
xor eax, eax
jmp 0x1400022a1
mov eax, 1
mov rbx, qword [rsp + 0x6d8]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140002f80
add rsp, 0x690
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret