Function at 0x140009490
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1f]
sub rsp, 0xe0
mov eax, 0x5a4d
mov r14, rdx
mov rdi, rcx
cmp word [rdx], ax
je 0x1400094d5
lea rcx, str.Invalid_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
add rsp, 0xe0
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0xc0], r15
mov eax, 0x8664
movsxd r15, dword [rdx + 0x3c]
add r15, r14
cmp word [r15 + 4], ax
je 0x140009504
lea rcx, str.Invalid_platform_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x140009b37
lea rcx, str.File_ok_n
mov qword [rsp + 0xd0], r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r8d, dword [r15 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140009552
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x140009b2f
lea rax, [rbp + 0x5f]
mov qword [rsp + 0xc8], r13
xor r13d, r13d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x5f], r13d
mov rdx, r12
mov r8d, dword [r15 + 0x50]
mov rcx, rdi
lea r9d, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x40], rax
mov r8, r14
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r12
mov qword [rbp - 0x79], rax
mov rcx, rdi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 1
mov qword [rbp - 0x49], 1
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x51], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140009603
lea rcx, str.Cant_write_file_header_0x_X_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140009b27
mov qword [rsp + 0x100], rbx
movzx ebx, word [r15 + 0x14]
add rbx, 0x2c
mov qword [rsp + 0xd8], rsi
mov esi, r13d
cmp word [r15 + 6], r13w
je 0x140009667
add rbx, r15
nop dword [rax]
mov eax, dword [rbx - 4]
test eax, eax
je 0x140009658
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r14
add rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140009695
movzx eax, word [r15 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x140009630
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rdi
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x1400096bc
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
jmp 0x14000969c
lea rcx, str.Cant_map_sections:_0x_x_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, r12
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140009b15
mov r9d, 0x40
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140009703
lea rcx, str.Cant_write_mapping_0x_X_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r14
jmp 0x1400096a5
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x4f], rax
mov rsi, rax
test rax, rax
jne 0x140009737
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
jmp 0x1400096e3
mov r9d, 0x1000
mov qword [rsp + 0x20], r13
lea r8, [0x140009b50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140009798
lea rcx, str.Cant_write_shellcode_0x_X_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rsi
jmp 0x1400096a5
lea rcx, str.Mapped_DLL_at__p_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.Mapping_info_at__p_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.Shell_code_at__p_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.Data_allocated_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rsp + 0x30], r13
mov r9, rsi
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400097fd
lea rcx, str.Thread_creation_failed_0x_X_n
jmp 0x140009760
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [rbp + 0x57]
mov dword [rbp + 0x57], r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp + 0x57], 0x103
jne 0x140009b08
xorps xmm0, xmm0
mov qword [rsp + 0x20], r13
mov r9d, 0x40
lea r8, [rbp - 0x41]
mov rdx, r14
mov rcx, rdi
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x21]
cmp rbx, 0x404040
je 0x140009afc
cmp rbx, 0x505050
jne 0x140009886
lea rcx, str.WARNING:_Exception_support_failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x140009813
mov ecx, 0x1400000
call fcn.1400b65b8
mov r13, rax
test rax, rax
jne 0x1400098b8
lea rcx, str.Unable_to_allocate_memory_n
jmp 0x140009b0f
xor edx, edx
mov r8d, 0x1400000
mov rcx, r13
call fcn.1400dc620
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, r13
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400098f7
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx ebx, word [r15 + 0x14]
xor esi, esi
movzx eax, word [r15 + 6]
add rbx, 0x18
add rbx, r15
test ax, ax
je 0x1400099c2
lea rdx, str..rsrc
lea r8, str..reloc
cmp dword [rbx + 8], 0
je 0x1400099af
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140009945
cmp rcx, 6
jne 0x140009930
jmp 0x140009964
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400099af
cmp rcx, 7
jne 0x140009950
lea rcx, str.Processing__s_removal_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [rbx + 0xc]
mov r8, r13
mov r9d, dword [rbx + 8]
add rdx, r12
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400099a1
lea rcx, str.Cant_clear_section__s:_0x_x_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea r8, str..reloc
lea rdx, str..rsrc
movzx eax, word [r15 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x140009921
movzx ebx, word [r15 + 0x14]
xor esi, esi
add rbx, 0x3c
test ax, ax
je 0x140009a4d
add rbx, r15
lea edx, [rsi + 0x20]
mov ecx, dword [rbx - 0x1c]
test ecx, ecx
je 0x140009a3e
mov eax, dword [rbx]
mov dword [rbp + 0x57], 0
test eax, 0x80000000
jbe 0x1400099f7
mov r9d, 4
jmp 0x140009a06
test eax, 0x20000000
mov r9d, 2
cmova r9d, edx
mov edx, dword [rbx - 0x18]
lea rax, [rbp + 0x57]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, str.section__s_set_as__lX_n
test eax, eax
jne 0x140009a33
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, reloc.WLDAP32.dll_Ordinal_32
movzx eax, word [r15 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x1400099d8
movzx eax, word [r15 + 0x14]
mov r9d, 2
mov dword [rbp + 0x67], 0
mov rdx, r12
mov rcx, rdi
mov r8d, dword [rax + r15 + 0x24]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rbp + 0x4f]
mov r9d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140009aac
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140009ad2
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140009af8
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x140009b17
lea rcx, str.Wrong_mapping_ptr_n
jmp 0x140009760
lea rcx, str.Process_crashed__exit_code:__d_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x100]
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov r15, qword [rsp + 0xc0]
add rsp, 0xe0
pop r14
pop rdi
pop rbp
ret