Function at 0x140001da0
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 [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x168]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001e1d
lea rcx, str.Invalid_file_n
call fcn.140001020
xor al, al
jmp 0x1400029ac
mov rax, qword [rsp + 0x168]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x168]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x18
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x140001e83
lea rcx, str.Invalid_platform_n
call fcn.140001020
xor al, al
jmp 0x1400029ac
lea rcx, str.File_ok_n
call fcn.140001020
mov rax, qword [rsp + 0xa0]
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 0x140001ee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140001020
xor al, al
jmp 0x1400029ac
mov dword [rsp + 0x134], 0
mov rax, qword [rsp + 0xa0]
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.KERNEL32.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 0x140002002
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.140001020
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 0x1400029ac
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x70], 0
jmp 0x14000203c
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 + 0x88]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x70], eax
je 0x1400020ef
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
je 0x1400020ea
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 0x1400020ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140001020
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 0x1400029ac
jmp 0x140002024
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 + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140002157
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.140001020
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 0x1400029ac
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400021d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.140001020
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 + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400029ac
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 + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14000225c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140001020
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 + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400029ac
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, [0x140001840]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400022f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.140001020
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 + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400029ac
mov rdx, qword [rsp + 0x48]
lea rcx, str.Mapped_DLL_at__p_n
call fcn.140001020
mov rdx, qword [rsp + 0x60]
lea rcx, str.Mapping_info_at__p_n
call fcn.140001020
mov rdx, qword [rsp + 0x68]
lea rcx, str.Shell_code_at__p_n
call fcn.140001020
lea rcx, str.Data_allocated_n
call fcn.140001020
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1400023ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140001020
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 + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400029ac
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x68]
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.140001020
mov qword [rsp + 0x98], 0
cmp qword [rsp + 0x98], 0
jne 0x14000255d
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 0x14000246e
mov edx, dword [rsp + 0x130]
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140001020
xor al, al
jmp 0x1400029ac
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 + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0x404040
jne 0x140002533
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140001020
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 + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400029ac
cmp qword [rsp + 0x98], 0x505050
jne 0x14000254d
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140001020
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002417
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x14000258e
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140001020
xor al, al
jmp 0x1400029ac
mov rdi, qword [rsp + 0x90]
xor eax, eax
mov ecx, 0x1400000
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x178]
test eax, eax
je 0x1400025e5
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400025e5
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140001020
movzx eax, byte [rsp + 0x180]
test eax, eax
je 0x14000279e
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x74], 0
jmp 0x14000262f
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x74], eax
je 0x14000279e
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
je 0x140002799
movzx eax, byte [rsp + 0x190]
test eax, eax
je 0x14000266d
mov dword [rsp + 0x80], 0
jmp 0x1400026ba
mov rax, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
lea rcx, [0x140008930]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140002694
inc rax
test dl, dl
jne 0x140002681
xor eax, eax
jmp 0x140002699
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400026a7
mov dword [rsp + 0x7c], 1
jmp 0x1400026af
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x140002724
mov rax, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
lea rcx, str..rsrc
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400026eb
inc rax
test dl, dl
jne 0x1400026d8
xor eax, eax
jmp 0x1400026f0
sbb eax, eax
or eax, 1
test eax, eax
je 0x140002724
mov rax, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
lea rcx, str..reloc
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14000271b
inc rax
test dl, dl
jne 0x140002708
xor eax, eax
jmp 0x140002720
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140002799
mov rax, qword [rsp + 0x40]
mov rdx, rax
lea rcx, str.Processing__s_removal_n
call fcn.140001020
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 + 0x90]
mov rdx, rcx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002799
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
mov rdx, rcx
lea rcx, str.Cant_clear_section__s:_0x_x_n
call fcn.140001020
jmp 0x140002617
movzx eax, byte [rsp + 0x188]
test eax, eax
je 0x140002918
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x78], 0
jmp 0x1400027e8
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x78], eax
je 0x1400028d2
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
je 0x1400028cd
mov dword [rsp + 0x138], 0
mov dword [rsp + 0x50], 2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x80000000
test eax, eax
jbe 0x14000283b
mov dword [rsp + 0x50], 4
jmp 0x140002854
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
jbe 0x140002854
mov dword [rsp + 0x50], 0x20
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 + 0x50]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400028b4
mov rax, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
lea rcx, str.section__s_set_as__lX_n
call fcn.140001020
jmp 0x1400028cd
mov rax, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.140001020
jmp 0x1400027d0
mov dword [rsp + 0x13c], 0
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
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 + 0x90]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002952
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140001020
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000297e
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140001020
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400029aa
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140001020
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400067c0
add rsp, 0x150
pop rdi
ret