Function at 0x140001580
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Resume thread

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x520
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x500], rax
movsxd rdi, dword [rdx + 0x3c]
mov r12, rdx
add rdi, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rdi + 0x50]
mov rdx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x1400015e9
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.140001010
xor eax, eax
jmp 0x140001797
mov rdx, rbp
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.140001010
mov r9d, dword [rdi + 0x54]
xor eax, eax
mov rcx, qword [r14]
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001629
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_headers_of_the_new_image._n
call fcn.140001010
xor eax, eax
jmp 0x140001797
mov rdx, qword [rdi + 0x30]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x560], rbx
mov qword [rsp + 0x518], rsi
mov qword [rsp + 0x510], r15
call fcn.140001010
xor ecx, ecx
mov esi, ecx
cmp cx, word [rdi + 6]
jae 0x1400016b7
mov r15d, ecx
nop
movzx ebx, word [rdi + 0x14]
mov qword [rsp + 0x20], rcx
add rbx, r15
mov rcx, qword [r14]
add rbx, rdi
mov r8d, dword [rbx + 0x2c]
mov edx, dword [rbx + 0x24]
add r8, r12
mov r9d, dword [rbx + 0x28]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rbx + 0x18]
test eax, eax
je 0x1400016f7
mov r8d, dword [rbx + 0x24]
lea rcx, str.___Section__s_write_at_:_0x_p._n
add r8, rbp
call fcn.140001010
movzx eax, word [rdi + 6]
inc esi
add r15, 0x28
mov ecx, 0
cmp esi, eax
jl 0x140001660
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140001707
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x14000177f
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.140001010
xor eax, eax
jmp 0x14000177f
mov rdx, qword [rsp + 0xb8]
lea r8, [rdi + 0x30]
mov rcx, qword [r14]
xor eax, eax
add rdx, 0x10
mov qword [rsp + 0x20], rax
lea r9d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000173f
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
call fcn.140001010
xor eax, eax
jmp 0x14000177f
mov eax, dword [rdi + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
add rax, rbp
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140001770
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x14000177f
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x518]
mov rbx, qword [rsp + 0x560]
mov r15, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1400025b0
add rsp, 0x520
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret