Function at 0x140001070
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get ntdll base address

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, str.___Parsing_LdrpThunkSignature_For_Clean_Syscalls._n_n
call fcn.140001010
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
cmp qword [rbx + 0x30], 0
je 0x1400010d4
nop dword [rax]
mov rcx, qword [rbx + 0x60]
lea rdx, [0x14001b738]
mov r8d, 9
call fcn.140004e60
test eax, eax
je 0x1400010f5
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
jne 0x1400010b0
lea rcx, str.____Cannot_find_NTDLL._n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001770
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rbp
xor edx, edx
mov qword [rsp + 0x48], rsi
movzx r8d, dx
mov qword [rsp + 0x50], rdi
mov rdi, qword [rbx + 0x30]
movsxd rcx, dword [rdi + 0x3c]
lea rbx, [rdi + 0x18]
add rbx, rcx
movzx eax, word [rcx + rdi + 0x14]
movzx r11d, word [rcx + rdi + 6]
add rbx, rax
cmp dx, r11w
jae 0x140001256
lea rsi, [0x14001b768]
nop dword [rax + rax]
movzx r10d, r8w
lea rax, [r10 + r10*4]
lea r9, [rbx + rax*8]
mov rax, rdx
nop
movzx ecx, byte [r9 + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x1400011cf
cmp rax, 6
jne 0x140001150
lea rax, [r10 + r10*4]
mov ecx, dword [rbx + rax*8 + 0xc]
mov r8d, dword [rbx + rax*8 + 8]
add rcx, rdi
je 0x140001256
cmp r8d, 0x50
jb 0x140001256
add r8d, 0xffffffb0
je 0x140001256
nop
mov eax, edx
cmp dword [rax + rcx], 0xb8d18b4c
jne 0x1400011c3
cmp dword [rax + rcx + 0x10], 0xb8d18b4c
jne 0x1400011c3
cmp dword [rax + rcx + 0x20], 0xb8d18b4c
jne 0x1400011c3
cmp dword [rax + rcx + 0x30], 0xb8d18b4c
jne 0x1400011c3
cmp dword [rax + rcx + 0x40], 0xb8d18b4c
je 0x1400011df
inc edx
cmp edx, r8d
jb 0x140001190
jmp 0x140001256
inc r8w
cmp r8w, r11w
jb 0x140001140
jmp 0x140001256
mov ebx, dword [rax + rcx + 0x44]
mov edi, dword [rax + rcx + 4]
mov esi, dword [rax + rcx + 0x14]
mov ebp, dword [rax + rcx + 0x34]
test ebx, ebx
je 0x140001256
mov edx, edi
lea rcx, str.___NtOpenFile_syscall_number..............:__02x_n
call fcn.140001010
mov edx, esi
lea rcx, str.___NtCreateSection_syscall_number.........:__02x_n
call fcn.140001010
mov edx, ebp
lea rcx, str.___NtOpenSection_syscall_number...........:__02x_n
call fcn.140001010
mov edx, ebx
lea rcx, str.___NtMapViewOfSection_syscall_number......:__02x_n_n
call fcn.140001010
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
test rax, rax
jne 0x14000127a
lea rcx, str.____Cannot_allocate_memory_for_syscals_stubs._n
call fcn.140001010
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001770
add rsp, 0x30
pop rbx
ret
mov dword [rax], 0xb8d18b4c
lea r9, [rsp + 0x20]
mov word [rax + 8], 0x50f
mov edx, 0x100
mov byte [rax + 0xa], 0xc3
mov r8d, 0x20
mov dword [rax + 4], edi
mov dword [rax + 0x40], 0xb8d18b4c
mov word [rax + 0x48], 0x50f
mov byte [rax + 0x4a], 0xc3
mov dword [rax + 0x44], esi
sub rax, 0xffffffffffffff80
mov dword [rax], 0xb8d18b4c
mov word [rax + 8], 0x50f
mov byte [rax + 0xa], 0xc3
mov dword [rax + 4], ebp
mov qword [0x14001fbf0], rax
lea rax, [rcx + 0xc0]
mov dword [rax], 0xb8d18b4c
mov word [rax + 8], 0x50f
mov byte [rax + 0xa], 0xc3
mov dword [rax + 4], ebx
mov qword [0x14001fbf8], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 1
jmp 0x140001258