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

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
sub rsp, 0x510
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x500], rax
movsxd rdi, dword [0x14000607c]
lea rbx, [0x140006040]
add rdi, rbx
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 0x1400015ff
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.140001010
xor eax, eax
jmp 0x1400017b9
mov rdx, rbp
mov qword [rsp + 0x550], r13
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.140001010
mov r9d, dword [rdi + 0x54]
xor r13d, r13d
mov rcx, qword [r14]
mov r8, rbx
mov rdx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001648
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 0x1400017b1
mov rdx, qword [rdi + 0x30]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x548], rsi
mov qword [rsp + 0x558], r15
call fcn.140001010
mov esi, r13d
cmp r13w, word [rdi + 6]
jae 0x1400016d9
mov r15, r13
nop word [rax + rax]
movzx ebx, word [rdi + 0x14]
lea rax, [0x140006040]
mov rcx, qword [r14]
add rbx, r15
add rbx, rdi
mov qword [rsp + 0x20], r13
mov r8d, dword [rbx + 0x2c]
mov edx, dword [rbx + 0x24]
add r8, rax
mov r9d, dword [rbx + 0x28]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rbx + 0x18]
test eax, eax
je 0x140001719
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
cmp esi, eax
jl 0x140001680
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 0x140001729
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x1400017a1
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.140001010
xor eax, eax
jmp 0x1400017a1
mov rdx, qword [rsp + 0xb8]
lea r8, [rdi + 0x30]
mov rcx, qword [r14]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001761
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 0x1400017a1
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 0x140001792
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x1400017a1
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x548]
mov r15, qword [rsp + 0x558]
mov r13, qword [rsp + 0x550]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140002810
add rsp, 0x510
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret