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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf0
mov rax, qword [0x14005c0d0]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov rdi, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x14001acdb
lea rcx, str._DLL_injection__Invalid_file_n
call fcn.140001190
jmp 0x14001b6a1
movsxd r14, dword [rdx + 0x3c]
add r14, r15
mov eax, 0x8664
cmp word [r14 + 4], ax
je 0x14001acff
lea rcx, str._DLL_injection__Invalid_platform._n
call fcn.140001190
jmp 0x14001b6a1
lea rcx, str._DLL_injection__File_ok_n
call fcn.140001190
mov r8d, dword [r14 + 0x50]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x14001adc2
lea rcx, str._DLL_injection__Target_process_memory_allocation_failed__ex__n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001ad68
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b6a1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001adb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6e8
call fcn.14001e020
jmp 0x14001b6a1
xor r12d, r12d
mov dword [rbp - 0x15], r12d
mov r8d, dword [r14 + 0x50]
lea rax, [rbp - 0x15]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 0x40]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x2d], r12
mov qword [rbp - 0x25], r12
mov dword [rbp - 0x1d], r12d
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x59], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x51], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], r13
mov dword [rbp - 0x31], 1
mov qword [rsp + 0x20], r12
mov r9d, 0x1000
mov r8, r15
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001aed2
lea rcx, str._DLL_injection__Cant_write_file_header._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001ae79
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b05e
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6d0
jmp 0x14001b059
movzx ebx, word [r14 + 0x14]
add rbx, 0x2c
mov esi, r12d
cmp word [r14 + 6], r12w
je 0x14001af23
add rbx, r14
mov eax, dword [rbx - 4]
test eax, eax
je 0x14001af14
mov r9d, eax
mov r8d, dword [rbx]
add r8, r15
mov edx, dword [rbx - 8]
add rdx, r13
mov qword [rsp + 0x20], r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001afd9
inc esi
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp esi, eax
jne 0x14001aee8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
lea r8d, [rdx + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x14001b078
lea rcx, str._DLL_injection__Target_process_mapping_allocation_failed__ex_._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001af80
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b05e
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6d6
jmp 0x14001b059
lea rcx, str._DLL_injection__Cant_map_sections._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b00d
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b05e
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6ee
call fcn.14001e020
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14001b6a1
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 0x40]
lea r8, [rbp - 0x59]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001b129
lea rcx, str._DLL_injection__Cant_write_mapping._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b0d0
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b1de
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b1d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6dc
jmp 0x14001b1d9
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001b20d
lea rcx, str._DLL_injection__Memory_shellcode_allocation_failed__ex_._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b18d
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b1de
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b1d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6f4
call fcn.14001e020
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, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14001b6a1
mov qword [rsp + 0x20], r15
mov r9d, 0x1000
lea r8, [0x14001b700]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001b2c0
lea rcx, str._DLL_injection__Cant_write_shellcode._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b267
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b3a7
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b3a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6e2
jmp 0x14001b3a2
mov rdx, r13
lea rcx, str._DLL_injection__Mapped_DLL_at__p_n
call fcn.140001190
mov rdx, r12
lea rcx, str._DLL_injection__Mapping_info_at__p_n
call fcn.140001190
mov rdx, rsi
lea rcx, str._DLL_injection__Shell_code_at__p_n
call fcn.140001190
lea rcx, str._DLL_injection__Data_allocated_n
call fcn.140001190
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r12
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x14001b3eb
lea rcx, str._DLL_injection__Thread_creation_failed._n
call fcn.140001190
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b356
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b3a7
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b3a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6fa
call fcn.14001e020
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, r12
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 0x14001b6a1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rsi
lea rcx, str._DLL_injection__Thread_created_at:__p__waiting_for_return..._n
call fcn.140001190
mov dword [rbp - 0x19], r15d
lea rdx, [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp - 0x19]
cmp edx, 0x103
jne 0x14001b695
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rsp + 0x20], r15
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x79]
cmp rbx, 0x404040
je 0x14001b684
cmp rbx, 0x505050
jne 0x14001b47a
lea rcx, str._DLL_injection__WARNING:_Exception_support_failed__n
call fcn.140001190
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x14001b403
mov ecx, 0x1400000
call fcn.14002c22c
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14001b4b3
lea rcx, str._DLL_injection__Unable_to_allocate_memory_n
call fcn.140001190
jmp 0x14001b6a1
xor edx, edx
mov r8d, 0x1400000
mov rcx, rax
call fcn.140020570
lea rdx, str.Error:
call fcn.14000faa0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c6e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b4eb
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400158b0
mov rcx, rax
call fcn.14000f9a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b53c
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b537
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b6ca
call fcn.14001e020
movzx ebx, word [r14 + 0x14]
add rbx, 0x18
add rbx, r14
cmp word [r14 + 6], 0
je 0x14001b5e2
mov edx, 0x20
nop dword [rax]
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x14001b5cc
mov dword [rbp - 0x19], 0
mov eax, dword [rbx + 0x24]
test eax, 0x80000000
jbe 0x14001b57f
mov esi, 4
jmp 0x14001b58c
test eax, 0x20000000
mov esi, 2
cmova esi, edx
mov r8, rcx
mov edx, dword [rbx + 0xc]
add rdx, r13
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, esi
mov rdx, rbx
test eax, eax
lea rcx, str._DLL_injection__Section__s_set_as__lX_n
jne 0x14001b5c2
lea rcx, str._DLL_injection__FAIL:_section__s_not_set_as__lX_n
call fcn.140001190
mov edx, 0x20
inc r15d
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp r15d, eax
jne 0x14001b560
mov rsi, qword [rsp + 0x40]
xor ebx, ebx
mov dword [rbp - 0x11], ebx
movzx eax, word [r14 + 0x14]
mov r8d, dword [rax + r14 + 0x24]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], rbx
mov r9d, 0x1000
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001b636
lea rcx, str._DLL_injection__WARNING:_Cant_clear_shellcode_n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14001b65b
lea rcx, str._DLL_injection__WARNING:_cant_release_shell_code_memory_n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14001b680
lea rcx, str._DLL_injection__WARNING:_cant_release_mapping_data_memory_n
call fcn.140001190
mov al, 1
jmp 0x14001b6a3
lea rcx, str._DLL_injection__Wrong_mapping_ptr._n
call fcn.140001190
jmp 0x14001b3a7
lea rcx, str._DLL_injection__Process_crashed__exit_code:_0x_x_n
call fcn.140001190
xor al, al
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14001e000
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3
call fcn.14002c1b4
int3