Function at 0x140001020
Capabilities:
Allocate or change rwx memory
Create thread
Execute command
Inject thread
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, 0x1e0
lea rdi, [rsp + 0x40]
mov ecx, 0x68
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x1f8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000109e
lea rcx, str.Invalid_file_n
call fcn.140002310
xor al, al
jmp 0x140001ce8
mov rax, qword [rsp + 0x1f8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1f8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x1400010fb
lea rcx, str.Invalid_platform_n
call fcn.140002310
xor al, al
jmp 0x140001ce8
lea rcx, str.File_ok_n
call fcn.140002310
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140001158
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140002310
xor al, al
jmp 0x140001ce8
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0x90]
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 + 0x90], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x228]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0xc0], rax
movzx eax, byte [rsp + 0x220]
mov dword [rsp + 0xc8], eax
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x1f8]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000126e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 0
jmp 0x1400012ba
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
mov rax, qword [rsp + 0xd8]
add rax, 0x28
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
cmp dword [rsp + 0xe0], eax
je 0x140001379
mov rax, qword [rsp + 0xd8]
cmp dword [rax + 0x10], 0
je 0x140001374
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x1f8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xd8]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x58]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
jmp 0x140001296
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x40
xor edx, edx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x1400013e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000146e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0
jne 0x1400014fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, [0x140001d10]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400015a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
mov rdx, qword [rsp + 0x58]
lea rcx, str.Mapped_DLL_at__p_n
call fcn.140002310
mov rdx, qword [rsp + 0xe8]
lea rcx, str.Mapping_info_at__p_n
call fcn.140002310
mov rdx, qword [rsp + 0xf0]
lea rcx, str.Shell_code_at__p_n
call fcn.140002310
lea rcx, str.Data_allocated_n
call fcn.140002310
lea rdx, [0x140001d10]
lea rcx, str.My_shellcode_pointer__p_n
call fcn.140002310
mov rdx, qword [rsp + 0xf0]
lea rcx, str.Target_point__p_n
call fcn.140002310
lea rcx, [0x14000b6e4]
call qword [sym.imp.ucrtbased.dll_system]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x1400016da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0xf0]
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.140002310
mov qword [rsp + 0x100], 0
cmp qword [rsp + 0x100], 0
jne 0x14000185a
mov dword [rsp + 0x114], 0
lea rdx, [rsp + 0x114]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop
cmp dword [rsp + 0x114], 0x103
je 0x140001760
mov edx, dword [rsp + 0x114]
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140002310
xor al, al
jmp 0x140001ce8
lea rax, [rsp + 0x140]
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 + 0x140]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x100], 0x404040
jne 0x14000182e
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140002310
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001ce8
cmp qword [rsp + 0x100], 0x505050
jne 0x140001849
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140002310
nop
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140001708
mov ecx, 0x1400000
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rsp + 0x188], rax
cmp qword [rsp + 0x188], 0
jne 0x14000188b
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140002310
xor al, al
jmp 0x140001ce8
mov r8d, 0x1400000
xor edx, edx
mov rcx, qword [rsp + 0x188]
call sub.VCRUNTIME140D.dll_memset
nop
movzx eax, byte [rsp + 0x208]
test eax, eax
je 0x1400018e8
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400018e8
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140002310
nop
movzx eax, byte [rsp + 0x210]
test eax, eax
je 0x140001a92
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x190], 0
jmp 0x140001944
mov eax, dword [rsp + 0x190]
inc eax
mov dword [rsp + 0x190], eax
mov rax, qword [rsp + 0xd8]
add rax, 0x28
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x190], eax
je 0x140001a92
mov rax, qword [rsp + 0xd8]
cmp dword [rax + 8], 0
je 0x140001a8d
movzx eax, byte [rsp + 0x220]
test eax, eax
je 0x140001985
mov dword [rsp + 0x1d4], 0
jmp 0x1400019c6
mov rax, qword [rsp + 0xd8]
lea rdx, [0x14000ba78]
mov rcx, rax
call sub.ucrtbased.dll_strcmp
test eax, eax
jne 0x1400019ad
mov dword [rsp + 0x1d8], 1
jmp 0x1400019b8
mov dword [rsp + 0x1d8], 0
mov eax, dword [rsp + 0x1d8]
mov dword [rsp + 0x1d4], eax
cmp dword [rsp + 0x1d4], 0
jne 0x140001a0a
mov rax, qword [rsp + 0xd8]
lea rdx, str..rsrc
mov rcx, rax
call sub.ucrtbased.dll_strcmp
test eax, eax
je 0x140001a0a
mov rax, qword [rsp + 0xd8]
lea rdx, str..reloc
mov rcx, rax
call sub.ucrtbased.dll_strcmp
test eax, eax
jne 0x140001a8d
mov rax, qword [rsp + 0xd8]
mov rdx, rax
lea rcx, str.Processing__s_removal_n
call fcn.140002310
nop
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x188]
mov rdx, rcx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001a8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xd8]
mov r8d, eax
mov rdx, rcx
lea rcx, str.Cant_clear_section__s:_0x_x_n
call fcn.140002310
nop
jmp 0x140001920
movzx eax, byte [rsp + 0x218]
test eax, eax
je 0x140001c48
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x194], 0
jmp 0x140001aee
mov eax, dword [rsp + 0x194]
inc eax
mov dword [rsp + 0x194], eax
mov rax, qword [rsp + 0xd8]
add rax, 0x28
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x194], eax
je 0x140001c01
mov rax, qword [rsp + 0xd8]
cmp dword [rax + 8], 0
je 0x140001bfc
mov dword [rsp + 0x1a4], 0
mov dword [rsp + 0x1b4], 2
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x80000000
test eax, eax
jbe 0x140001b4d
mov dword [rsp + 0x1b4], 4
jmp 0x140001b6c
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
jbe 0x140001b6c
mov dword [rsp + 0x1b4], 0x20
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x1a4]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x1b4]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140001bdc
mov rax, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0x1b4]
mov rdx, rax
lea rcx, str.section__s_set_as__lX_n
call fcn.140002310
nop
jmp 0x140001bfc
mov rax, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0x1b4]
mov rdx, rax
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.140002310
nop
jmp 0x140001aca
mov dword [rsp + 0x1c4], 0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x24]
lea rcx, [rsp + 0x1c4]
mov qword [rsp + 0x20], rcx
mov r9d, 2
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001c86
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140002310
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140001cb6
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140002310
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140001ce6
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140002310
nop
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000bd40]
call fcn.140007320
mov rax, rdi
add rsp, 0x1e0
pop rdi
ret