Function at 0x1800029e0
Capabilities:
Enumerate pe sections
Resume thread

Disassembly:
push r12
push r13
push r15
sub rsp, 0x350
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x328], rax
movsxd r15, dword [rdx + 0x3c]
mov r12, rdx
add r15, rdx
mov dword [rsp + 0x20], 0x40
mov r13, rcx
mov qword [rsp + 0x40], r15
mov rcx, qword [rcx]
xor edx, edx
mov r9d, 0x3000
mov r8d, dword [r15 + 0x50]
call qword [0x180053aa0]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x180002a4b
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.1800012b0
xor eax, eax
jmp 0x180002dcf
mov rdx, rax
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.1800012b0
mov rax, qword [rsp + 0x48]
mov r8, r12
mov r9d, dword [r15 + 0x54]
mov ecx, eax
sub ecx, dword [r15 + 0x34]
mov dword [r15 + 0x34], eax
xor eax, eax
mov rdx, qword [rsp + 0x48]
mov dword [rsp + 0x30], ecx
mov rcx, qword [r13]
mov qword [rsp + 0x20], rax
call qword [0x180053aa8]
test eax, eax
jne 0x180002aa1
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_headers_of_the_new_image._n
call fcn.1800012b0
xor eax, eax
jmp 0x180002dcf
mov rdx, qword [rsp + 0x48]
lea rcx, str.___Headers_write_at_:_0x_p_n
mov qword [rsp + 0x380], rbx
mov qword [rsp + 0x348], rbp
mov qword [rsp + 0x330], r14
call fcn.1800012b0
movsxd rbx, dword [r12 + 0x3c]
xor r10d, r10d
cmp dword [rbx + r12 + 0xa0], r10d
je 0x180002ae6
mov rbx, qword [rbx + r12 + 0xa0]
jmp 0x180002ae9
mov rbx, r10
mov rbp, r10
mov qword [rsp + 0x340], rsi
mov r14d, r10d
mov qword [rsp + 0x338], rdi
mov qword [rsp + 0x38], rbx
cmp r10w, word [r15 + 6]
jae 0x180002d99
mov rsi, r10
nop dword [rax]
nop word [rax + rax]
movzx edi, word [r15 + 0x14]
add rdi, 0x18
add rdi, rsi
add rdi, r15
mov edx, dword [rdi + 0xc]
cmp ebx, edx
jb 0x180002b41
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, r12
add rdx, qword [rsp + 0x48]
mov rcx, qword [r13]
mov qword [rsp + 0x20], r10
call qword [0x180053aa8]
mov rdx, rdi
test eax, eax
je 0x180002d8b
mov r8d, dword [rdi + 0xc]
lea rcx, str.___Section__s_write_at_:_0x_p._n
add r8, qword [rsp + 0x48]
call fcn.1800012b0
movzx eax, word [r15 + 6]
inc r14d
add rsi, 0x28
mov r10d, 0
cmp r14d, eax
jl 0x180002b20
test rbp, rbp
je 0x180002d99
mov rdx, rbp
lea rcx, str.___Relocation_section_:__s_n
call fcn.1800012b0
xor edi, edi
lea r15d, [rdi + 0xa]
cmp dword [rsp + 0x3c], edi
jbe 0x180002c98
nop
mov rbx, r15
call fcn.180010cb4
sub rbx, 1
jne 0x180002bc3
mov eax, dword [rbp + 0x14]
add rax, r12
mov r14d, edi
add r14, rax
add edi, 8
mov eax, dword [r14 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x180002c8e
mov r15d, dword [rsp + 0x30]
mov esi, eax
nop word [rax + rax]
mov eax, dword [rbp + 0x14]
add rax, r12
mov ecx, edi
add edi, 2
movzx edx, word [rcx + rax]
mov eax, 0x1000
cmp dx, ax
jb 0x180002c80
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x320]
mov ebx, dword [r14]
xor eax, eax
and edx, 0xfff
mov dword [rsp + 0x320], eax
add rcx, rdx
mov qword [rsp + 0x20], rax
add rbx, rcx
mov rcx, qword [r13]
mov rdx, rbx
lea r9d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [r13]
lea r8, [rsp + 0x320]
add dword [rsp + 0x320], r15d
mov r9d, 4
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [0x180053aa8]
sub rsi, 1
jne 0x180002c00
lea r15d, [rsi + 0xa]
cmp edi, dword [rsp + 0x3c]
jb 0x180002bc0
mov rbx, r15
nop dword [rax + rax]
call fcn.180010cb4
sub rbx, 1
jne 0x180002ca0
lea rcx, str.___Relocations_done._n
call fcn.1800012b0
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call fcn.180026fd0
mov rcx, qword [r13 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x180002cf0
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
jmp 0x180002da0
mov rbx, r15
call fcn.180010cb4
sub rbx, 1
jne 0x180002cf3
mov edx, dword [rsp + 0xf4]
lea r9d, [rbx + 4]
mov rcx, qword [r13]
lea r8, [rsp + 0x48]
add rdx, 8
mov qword [rsp + 0x20], rbx
call qword [0x180053aa8]
test eax, eax
jne 0x180002d2e
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
jmp 0x180002da0
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov ecx, dword [rcx + 0x28]
add ecx, dword [rsp + 0x48]
mov dword [rsp + 0x100], ecx
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
mov edi, eax
mov rbx, r15
call fcn.180010cb4
sub rbx, 1
jne 0x180002d55
test edi, edi
jne 0x180002d70
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
jmp 0x180002da0
call fcn.180010cb4
sub r15, 1
jne 0x180002d70
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [r15 + 1]
jmp 0x180002da7
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.1800012b0
jmp 0x180002da5
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_relocation_section_of_the_source_image._n
call fcn.1800012b0
xor eax, eax
mov rdi, qword [rsp + 0x338]
mov rsi, qword [rsp + 0x340]
mov rbp, qword [rsp + 0x348]
mov rbx, qword [rsp + 0x380]
mov r14, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.180007af0
add rsp, 0x350
pop r15
pop r13
pop r12
ret