Function at 0x140001340
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x320
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], 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 edx, dword [rdi + 0x34]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x1400013a8
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.140001010
xor eax, eax
jmp 0x140001556
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 0x1400013e8
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 0x140001556
mov edx, dword [rdi + 0x34]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x360], rbx
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x310], r15
call fcn.140001010
xor ecx, ecx
mov esi, ecx
cmp cx, word [rdi + 6]
jae 0x140001477
mov r15d, ecx
nop dword [rax]
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 0x1400014b7
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 0x140001420
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x2c8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x1400014c7
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x14000153e
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.140001010
xor eax, eax
jmp 0x14000153e
mov edx, dword [rsp + 0xd4]
lea r8, [rdi + 0x34]
mov rcx, qword [r14]
xor eax, eax
add rdx, 8
mov qword [rsp + 0x20], rax
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001500
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 0x14000153e
mov ecx, dword [rdi + 0x28]
lea rdx, [rsp + 0x30]
add ecx, ebp
mov dword [rsp + 0xe0], ecx
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x14000152f
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x14000153e
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x360]
mov r15, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140002550
add rsp, 0x320
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret