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

Disassembly:
push rbx
push r12
push r13
push r15
sub rsp, 0x528
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x518], rax
movsxd r13, dword [0x14000607c]
lea rbx, [0x140006040]
add r13, rbx
mov dword [rsp + 0x20], 0x40
mov r15, 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 r12, rax
test rax, rax
jne 0x140001c32
lea rcx, str.____An_error_is_occured_when_trying_to_allocate_memory_for_the_new_image._n
call fcn.140001010
xor eax, eax
jmp 0x140001f78
mov rdx, r12
lea rcx, str.___Memory_allocate_at_:_0x_p_n
call fcn.140001010
mov r9d, dword [r13 + 0x54]
mov rax, r12
sub rax, qword [r13 + 0x30]
mov r8, rbx
mov qword [rsp + 0x510], rax
mov rdx, r12
xor eax, eax
mov qword [r13 + 0x30], r12
mov rcx, qword [r15]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001c85
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 0x140001f78
mov qword [rsp + 0x558], rbp
lea rcx, str.___Headers_write_at_:_0x_p_n
mov rdx, r12
mov qword [rsp + 0x520], r14
call fcn.140001010
movsxd rbx, dword [0x14000607c]
lea r11, [0x140006040]
xor r10d, r10d
cmp dword [rbx + r11 + 0xb0], r10d
je 0x140001cc9
mov rbx, qword [rbx + r11 + 0xb0]
jmp 0x140001ccc
mov rbx, r10
mov rbp, r10
mov qword [rsp + 0x560], rsi
mov r14d, r10d
mov qword [rsp + 0x568], rdi
mov qword [rsp + 0x30], rbx
cmp r10w, word [r13 + 6]
jae 0x140001f4a
mov rsi, r10
nop word [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 0x140001d21
mov ecx, dword [rdi + 8]
add ecx, edx
cmp ebx, ecx
cmovb rbp, rdi
mov r8d, dword [rdi + 0x14]
add rdx, r12
mov r9d, dword [rdi + 0x10]
add r8, r11
mov rcx, qword [r15]
mov qword [rsp + 0x20], r10
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, rdi
test eax, eax
je 0x140001f3c
mov r8d, dword [rdi + 0xc]
lea rcx, str.___Section__s_write_at_:_0x_p._n
add r8, r12
call fcn.140001010
movzx eax, word [r13 + 6]
lea r11, [0x140006040]
inc r14d
add rsi, 0x28
mov r10d, 0
cmp r14d, eax
jl 0x140001d00
test rbp, rbp
je 0x140001f4a
mov rdx, rbp
lea rcx, str.___Relocation_section_:__s_n
call fcn.140001010
xor edx, edx
mov ebx, edx
cmp dword [rsp + 0x34], edx
jbe 0x140001e8a
mov r13, qword [rsp + 0x510]
lea r8, [0x140006040]
mov r9d, 0x1000
nop dword [rax]
nop dword [rax + rax]
mov r14d, dword [rbp + 0x14]
mov eax, ebx
add ebx, 8
add r14, rax
add r14, r8
mov eax, dword [r14 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140001e7b
mov esi, eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x14]
mov eax, ebx
add ebx, 2
add rcx, rax
movzx eax, word [rcx + r8]
cmp ax, r9w
jb 0x140001e71
mov edi, dword [r14]
lea r8, [rsp + 0x510]
mov rcx, qword [r15]
and eax, 0xfff
add rax, r12
mov qword [rsp + 0x510], rdx
add rdi, rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [r15]
lea r8, [rsp + 0x510]
add qword [rsp + 0x510], r13
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
lea r9d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
lea r8, [0x140006040]
mov r9d, 0x1000
sub rsi, 1
jne 0x140001df0
cmp ebx, dword [rsp + 0x34]
jb 0x140001dc0
mov r13, qword [rsp + 0x38]
lea rcx, str.___Relocations_done._n
call fcn.140001010
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r15 + 8]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140001ecf
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_thread_context._n
jmp 0x140001f51
mov rdx, qword [rsp + 0xc8]
lea r8, [r13 + 0x30]
mov rcx, qword [r15]
xor eax, eax
add rdx, 0x10
mov qword [rsp + 0x20], rax
lea r9d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001f00
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_image_base_in_the_PEB._n
jmp 0x140001f51
mov eax, dword [r13 + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, qword [r15 + 8]
add rax, r12
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140001f2b
lea rcx, str.____An_error_is_occured_when_trying_to_set_the_thread_context._n
jmp 0x140001f51
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140001f58
lea rcx, str.____An_error_is_occured_when_trying_to_write_the_section_:__s._n
call fcn.140001010
jmp 0x140001f56
lea rcx, str.____An_error_is_occured_when_trying_to_get_the_relocation_section_of_the_source_image._n
call fcn.140001010
xor eax, eax
mov rdi, qword [rsp + 0x568]
mov rsi, qword [rsp + 0x560]
mov rbp, qword [rsp + 0x558]
mov r14, qword [rsp + 0x520]
mov rcx, qword [rsp + 0x518]
xor rcx, rsp
call fcn.140002810
add rsp, 0x528
pop r15
pop r13
pop r12
pop rbx
ret