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

Disassembly:
push rbx
push rbp
push rdi
push r12
push r15
sub rsp, 0x310
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x300], rax
movsxd rdi, dword [0x14000607c]
lea rbx, [0x140006040]
add rdi, rbx
mov dword [rsp + 0x20], 0x40
mov r15, 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 0x1400013ae
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.140001010
xor eax, eax
jmp 0x140001566
mov rdx, rbp
mov qword [rsp + 0x350], r13
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.140001010
mov r9d, dword [rdi + 0x54]
xor r13d, r13d
mov rcx, qword [r15]
mov r8, rbx
mov rdx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400013f7
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 0x14000155e
mov edx, dword [rdi + 0x34]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x348], rsi
mov qword [rsp + 0x358], r14
call fcn.140001010
mov esi, r13d
cmp r13w, word [rdi + 6]
jae 0x140001489
mov r14, r13
nop dword [rax]
nop word [rax + rax]
movzx ebx, word [rdi + 0x14]
lea rax, [0x140006040]
mov rcx, qword [r15]
add rbx, r14
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 0x1400014c9
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 r14, 0x28
cmp esi, eax
jl 0x140001430
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x2c8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r15 + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x1400014d9
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x14000154e
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.140001010
xor eax, eax
jmp 0x14000154e
mov edx, dword [rsp + 0xd4]
lea r8, [rdi + 0x34]
mov rcx, qword [r15]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001510
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 0x14000154e
mov ecx, dword [rdi + 0x28]
lea rdx, [rsp + 0x30]
add ecx, ebp
mov dword [rsp + 0xe0], ecx
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x14000153f
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
call fcn.140001010
xor eax, eax
jmp 0x14000154e
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x348]
mov r14, qword [rsp + 0x358]
mov r13, qword [rsp + 0x350]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140002810
add rsp, 0x310
pop r15
pop r12
pop rdi
pop rbp
pop rbx
ret