Function at 0x140001070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rcx, str.___Program_Started_n
call fcn.140001010
lea rdx, [0x140001480]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rdx, [0x140001560]
mov ecx, 1
mov qword [0x140022c60], rax
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140022c80], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x4d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x14001e4a8]
mov qword [0x140022c88], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x88]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x140001141
lea rcx, str.____GetModuleInformation_failed_n
call fcn.140001010
mov rdx, qword [0x140022c50]
jmp 0x140001161
mov rdx, qword [rsp + 0x88]
mov eax, dword [rsp + 0x90]
add rax, rdx
mov qword [0x140022c50], rdx
mov qword [0x140022c58], rax
lea rcx, str.___Ntdll_Start_Address:__llx_n
call fcn.140001010
mov rdx, qword [0x140022c58]
lea rcx, str.___Ntdll_End_Address:__llx_n_n
call fcn.140001010
lea rdx, str.__C:WindowsSystem32calc.exe
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor ebp, ebp
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], rbp
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rbp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ntdll.dll_RtlCreateProcessParametersEx]
xorps xmm0, xmm0
mov qword [rsp + 0xa0], 0x58
xor eax, eax
mov dword [rsp + 0xa8], ebp
movups xmmword [rsp + 0xac], xmm0
mov qword [rsp + 0xec], rax
lea edx, [rbp + 8]
movups xmmword [rsp + 0xbc], xmm0
mov dword [rsp + 0xf4], eax
lea r8d, [rbp + 0x20]
movups xmmword [rsp + 0xcc], xmm0
movups xmmword [rsp + 0xdc], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea rcx, [0x14001e4a8]
mov qword [rax], 0x28
mov qword [rax + 8], 0x20005
movzx eax, word [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x18], rax
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateUserProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x14000129b
lea rcx, str.____Unable_to_resolve_ntdll.dll_NtCreateUserProcess_n
call fcn.140001010
jmp 0x140001301
lea rcx, str.___Calling_function_ntdll.dll_NtCreateUserProcess_n
call fcn.140001010
mov dword [0x140022c6c], 1
call fcn.140001900
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x68]
mov dword [0x140022c68], eax
lea rcx, [rsp + 0x80]
lea rax, [rsp + 0xa0]
mov r9d, 0x1fffff
mov qword [rsp + 0x48], rax
mov r8d, r9d
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call rdi
test eax, eax
je 0x14000131c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcessA___Failed_with_error:__d_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x140001351
mov rcx, qword [0x140022c60]
test rcx, rcx
je 0x14000132e
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov rcx, qword [0x140022c80]
test rcx, rcx
je 0x140001340
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
lea rcx, str.___Program_Ended_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140001ad0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret