Function at 0x140007170
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf]
sub rsp, 0xe8
mov eax, 0x5a4d
mov rdi, r9
mov r14, rdx
mov rsi, rcx
cmp word [rdx], ax
je 0x1400071b0
lea rcx, str.Invalid_file_n
call fcn.140007f00
xor al, al
add rsp, 0xe8
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x128], r13
mov eax, 0x8664
movsxd r13, dword [rdx + 0x3c]
add r13, r14
cmp word [r13 + 4], ax
je 0x1400071de
lea rcx, str.Invalid_platform_n
call fcn.140007f00
xor al, al
jmp 0x14000799b
lea rcx, str.File_ok_n
mov qword [rsp + 0x120], r12
call fcn.140007f00
mov r8d, dword [r13 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140007232
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140007f00
xor al, al
jmp 0x140007993
mov qword [rsp + 0x110], rbx
lea rax, [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0xe0], r15
mov dword [rsp + 0x40], ebx
mov rdx, r12
mov r8d, dword [r13 + 0x50]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x79], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x71], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x69], rax
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x51], eax
movzx eax, byte [rbp + 0x6f]
mov qword [rbp - 0x59], rbx
mov dword [rbp - 0x4d], ebx
mov dword [rbp - 0x3d], ebx
mov rbx, 0xffffffffffffffff
mov dword [rbp - 0x41], eax
mov qword [rbp - 0x61], r12
nop dword [rax]
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400072b0
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
lea r8, [rbx + 1]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x14000730e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Target_process_memory_allocation_for_token_failed__ex__0x_X_n
mov edx, eax
call fcn.140007f00
mov rdx, r12
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140007981
lea r9, [rbx + 1]
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140007359
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_token_to_target_process_memory_0x_X_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400072f4
mov qword [rbp - 0x49], r15
mov r9d, 0x1000
xor r15d, r15d
mov r8, r14
mov rdx, r12
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140007390
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cant_write_file_header_0x_X_n
jmp 0x1400072ed
movzx ebx, word [r13 + 0x14]
mov edi, r15d
add rbx, 0x2c
cmp word [r13 + 6], di
je 0x1400073dd
add rbx, r13
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400073ce
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r14
add rdx, r12
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007414
movzx eax, word [r13 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x1400073a6
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x140007426
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
jmp 0x1400072ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cant_map_sections:_0x_x_n
jmp 0x1400072ed
xor ebx, ebx
lea r8, [rbp - 0x79]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, rsi
lea r9d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140007476
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r15
jmp 0x1400072f7
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400074d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r15
jmp 0x1400072f7
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
lea r8, [0x1400079b0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000753b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rdi
jmp 0x1400072f7
mov rdx, r12
lea rcx, str.Mapped_DLL_at__p_n
call fcn.140007f00
mov rdx, r15
lea rcx, str.Mapping_info_at__p_n
call fcn.140007f00
mov rdx, rdi
lea rcx, str.Shell_code_at__p_n
call fcn.140007f00
lea rcx, str.Data_allocated_n
call fcn.140007f00
mov qword [rsp + 0x30], rbx
mov r9, rdi
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400075de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rdi
jmp 0x1400072f7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.140007f00
nop word [rax + rax]
lea rdx, [rbp + 0x3f]
mov dword [rbp + 0x3f], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp + 0x3f]
cmp edx, 0x103
jne 0x140007975
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
lea r8, [rbp - 0x39]
mov rdx, r15
mov rcx, rsi
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x19]
cmp rbx, 0x404040
je 0x140007964
cmp rbx, 0x505050
jne 0x140007673
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140007f00
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
mov ebx, 0
je 0x140007600
mov ecx, 0x1400000
call fcn.14004cd04
mov qword [rsp + 0x48], rax
mov r14, rax
test rax, rax
jne 0x1400076b4
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140007f00
jmp 0x140007981
xor edx, edx
mov r8d, 0x1400000
mov rcx, r14
call fcn.14003cce0
cmp byte [rbp + 0x57], bl
je 0x1400076f3
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
mov r8, r14
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400076f3
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140007f00
cmp byte [rbp + 0x5f], bl
je 0x140007806
movzx eax, word [r13 + 0x14]
lea rbx, [r13 + 0x18]
add rbx, rax
xor edi, edi
cmp word [r13 + 6], di
je 0x140007806
lea rdx, [0x1400658d8]
lea r8, str..rsrc
lea r9, str..reloc
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x1400077f3
cmp byte [rbp + 0x6f], 0
jne 0x140007757
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140007757
cmp rcx, 7
jne 0x140007742
jmp 0x140007794
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140007776
cmp rcx, 6
jne 0x140007760
jmp 0x140007794
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x1400077f3
cmp rcx, 7
jne 0x140007780
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.140007f00
mov edx, dword [rbx + 0xc]
mov r8, r14
mov r9d, dword [rbx + 8]
add rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400077de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Cant_clear_section__s:_0x_x_n
mov r8d, eax
call fcn.140007f00
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x1400658d8]
movzx eax, word [r13 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140007730
cmp byte [rbp + 0x67], 0
je 0x1400078e3
movzx eax, word [r13 + 0x14]
lea rbx, [r13 + 0x18]
add rbx, rax
xor r14d, r14d
cmp word [r13 + 6], r14w
je 0x1400078b2
lea edx, [r14 + 0x20]
nop
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x14000789c
mov eax, dword [rbx + 0x24]
mov dword [rbp + 0x3f], 0
test eax, 0x80000000
jbe 0x14000784f
mov edi, 4
jmp 0x14000785c
test eax, 0x20000000
mov edi, 2
cmova edi, edx
mov edx, dword [rbx + 0xc]
lea rax, [rbp + 0x3f]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r12
mov r9d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, edi
lea rcx, str.section__s_set_as__lX_n
mov rdx, rbx
test eax, eax
jne 0x140007892
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.140007f00
mov edx, 0x20
movzx eax, word [r13 + 6]
inc r14d
add rbx, 0x28
cmp r14d, eax
jne 0x140007830
movzx eax, word [r13 + 0x14]
movzx eax, ax
mov r9d, 2
mov dword [rsp + 0x44], 0
mov rdx, r12
mov rcx, rsi
mov r8d, dword [rax + r13 + 0x24]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov r9d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140007916
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000793b
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140007f00
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140007960
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140007f00
mov al, 1
jmp 0x140007983
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140007f00
jmp 0x140007509
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140007f00
xor al, al
mov rbx, qword [rsp + 0x110]
mov r15, qword [rsp + 0xe0]
mov r12, qword [rsp + 0x120]
mov r13, qword [rsp + 0x128]
add rsp, 0xe8
pop r14
pop rdi
pop rsi
pop rbp
ret