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

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov eax, 0x5a4d
mov r14, rdx
mov rdi, rcx
cmp word [rdx], ax
je 0x1400010c2
lea rcx, str.Invalid_file_n
call fcn.140001020
xor al, al
jmp 0x1400017fc
mov qword [rsp + 0xf0], r15
mov eax, 0x8664
movsxd r15, dword [rdx + 0x3c]
add r15, r14
cmp word [r15 + 4], ax
je 0x1400010f0
lea rcx, str.Invalid_platform_n
call fcn.140001020
xor al, al
jmp 0x1400017f4
mov r8d, dword [r15 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov qword [rsp + 0x100], r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140001135
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 0x1400017ec
lea rax, [rbp - 0x2c]
mov qword [rsp + 0xf8], r13
xor r13d, r13d
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x2c], 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 + 0x50], rax
mov r8, r14
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r12
mov qword [rsp + 0x58], rax
mov rcx, rdi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 1
mov qword [rbp - 0x78], 1
mov qword [rsp + 0x68], r12
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400011f2
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400017e4
mov qword [rsp + 0x140], rbx
movzx ebx, word [r15 + 0x14]
add rbx, 0x2c
mov qword [rsp + 0x108], rsi
mov esi, r13d
cmp word [r15 + 6], r13w
je 0x14000124f
add rbx, r15
mov eax, dword [rbx - 4]
test eax, eax
je 0x140001240
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 0x1400012a2
movzx eax, word [r15 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x140001218
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 r13, rax
test rax, rax
jne 0x1400012d0
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400017d2
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400017d2
xor ebx, ebx
lea r8, [rsp + 0x50]
mov rdx, r13
mov qword [rsp + 0x20], rbx
mov rcx, rdi
lea r9d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001333
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400017d2
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 [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x1400013a2
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400017d2
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
lea r8, [0x140001820]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000141c
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400017d2
mov qword [rsp + 0x30], rbx
mov r9, rsi
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140001498
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400017d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp - 0x30]
cmp edx, 0x103
jne 0x1400017c6
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
lea r8, [rbp - 0x70]
mov rdx, r13
mov rcx, rdi
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x50]
cmp rbx, 0x404040
je 0x1400017b5
cmp rbx, 0x505050
jne 0x140001523
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140001020
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
mov ebx, 0
je 0x1400014b0
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
jne 0x140001565
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140001020
jmp 0x1400017d2
xor edx, edx
mov r8d, 0x1400000
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
mov r8, r14
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000159f
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140001020
movzx ebx, word [r15 + 0x14]
xor esi, esi
movzx ecx, word [r15 + 6]
add rbx, 0x18
add rbx, r15
test cx, cx
je 0x140001672
lea r8, str..rsrc
lea r9, str..reloc
nop dword [rax]
mov edx, dword [rbx + 8]
test edx, edx
je 0x14000165c
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400015f6
cmp rcx, 6
jne 0x1400015e0
jmp 0x140001614
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x14000165c
cmp rcx, 7
jne 0x140001600
mov r9, rdx
mov qword [rsp + 0x20], 0
mov edx, dword [rbx + 0xc]
mov r8, r14
add rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000164e
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.140001020
lea r9, str..reloc
lea r8, str..rsrc
movzx eax, word [r15 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x1400015d0
movzx ecx, ax
movzx ebx, word [r15 + 0x14]
xor r14d, r14d
add rbx, 0x18
add rbx, r15
test cx, cx
je 0x140001706
lea edx, [r14 + 0x20]
nop
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x1400016f5
mov eax, dword [rbx + 0x24]
mov dword [rbp - 0x30], 0
test eax, 0x80000000
jbe 0x1400016af
mov esi, 4
jmp 0x1400016bc
test eax, 0x20000000
mov esi, 2
cmova esi, edx
mov edx, dword [rbx + 0xc]
lea rax, [rbp - 0x30]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r12
mov r9d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1400016f0
mov r8d, esi
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
mov rdx, rbx
call fcn.140001020
mov edx, 0x20
movzx eax, word [r15 + 6]
inc r14d
add rbx, 0x28
cmp r14d, eax
jne 0x140001690
movzx eax, word [r15 + 0x14]
mov r9d, 2
mov dword [rbp - 0x28], 0
mov rdx, r12
mov rcx, rdi
mov r8d, dword [rax + r15 + 0x24]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rsp + 0x48]
mov r9d, 0x1000
mov r8, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001767
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140001020
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000178c
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140001020
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400017b1
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140001020
mov al, 1
jmp 0x1400017d4
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140001020
jmp 0x1400013d8
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140001020
xor al, al
mov rsi, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x140]
mov r13, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x100]
mov r15, qword [rsp + 0xf0]
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140005220
add rsp, 0x110
pop r14
pop rdi
pop rbp
ret