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

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x540
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x520], rax
movsxd rbx, dword [rdx + 0x3c]
mov r15, rdx
add rbx, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x1400078a6
mov r9d, dword [rbx + 0x54]
mov r8, r15
mov rcx, qword [r14]
mov rdx, rax
mov qword [rsp + 0x530], r13
xor r13d, r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400078c9
mov qword [rsp + 0x580], rsi
mov qword [rsp + 0x538], rdi
mov edi, r13d
cmp r13w, word [rbx + 6]
jae 0x1400077df
mov esi, r13d
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + 0x14]
mov rcx, qword [r14]
add rax, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, r15
mov r9d, dword [rax + rbx + 0x28]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000790f
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x1400077a0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.14002c910
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400078ec
mov rdx, qword [rsp + 0xd8]
lea r8, [rbx + 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
je 0x140007932
mov eax, dword [rbx + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, qword [r14 + 8]
add rax, rbp
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x140007955
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [rsp + 0x538]
mov rsi, qword [rsp + 0x580]
mov r13, qword [rsp + 0x530]
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140010730
add rsp, 0x540
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
lea rdx, str.Error_when_trying_to_allocate_memory_for_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_write_the_headers_of_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_get_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_write_the_section
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_write_the_image_base_in_the_PEB
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_set_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3