Function at 0x14001aef0
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 0x14001af3b
lea rcx, str._DLL_injection__Invalid_file_n
call fcn.140001190
jmp 0x14001b978
movsxd r14, dword [rdx + 0x3c]
add r14, r15
mov eax, 0x8664
cmp word [r14 + 4], ax
je 0x14001af5f
lea rcx, str._DLL_injection__Invalid_platform._n
call fcn.140001190
jmp 0x14001b978
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 0x14001b030
lea rcx, str._DLL_injection__Target_process_memory_allocation_failed__ex__n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001afcf
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b978
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b026
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9bf
call fcn.14001e4c0
jmp 0x14001b978
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 0x14001b14e
lea rcx, str._DLL_injection__Cant_write_file_header._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b0ee
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b2f6
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b2f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9a7
jmp 0x14001b2f1
movzx ebx, word [r14 + 0x14]
add rbx, 0x2c
mov esi, r12d
cmp word [r14 + 6], r12w
je 0x14001b19f
add rbx, r14
mov eax, dword [rbx - 4]
test eax, eax
je 0x14001b190
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 0x14001b263
inc esi
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp esi, eax
jne 0x14001b164
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 0x14001b310
lea rcx, str._DLL_injection__Target_process_mapping_allocation_failed__ex_._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b203
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b2f6
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b2f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9ad
jmp 0x14001b2f1
lea rcx, str._DLL_injection__Cant_map_sections._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b29e
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b2f6
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b2f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9c5
call fcn.14001e4c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14001b978
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 0x14001b3cf
lea rcx, str._DLL_injection__Cant_write_mapping._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b36f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b492
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b48d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9b3
jmp 0x14001b48d
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 0x14001b4c1
lea rcx, str._DLL_injection__Memory_shellcode_allocation_failed__ex_._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b43a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b492
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b48d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9cb
call fcn.14001e4c0
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 0x14001b978
mov qword [rsp + 0x20], r15
mov r9d, 0x1000
lea r8, [0x14001b9e0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001b582
lea rcx, str._DLL_injection__Cant_write_shellcode._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b522
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b677
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b672
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9b9
jmp 0x14001b672
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 0x14001b6bb
lea rcx, str._DLL_injection__Thread_creation_failed._n
call fcn.140001190
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b61f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b677
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b672
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9d1
call fcn.14001e4c0
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 0x14001b978
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 0x14001b96c
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 0x14001b95b
cmp rbx, 0x505050
jne 0x14001b74a
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 0x14001b6d3
mov ecx, 0x1400000
call fcn.14002c6cc
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14001b783
lea rcx, str._DLL_injection__Unable_to_allocate_memory_n
call fcn.140001190
jmp 0x14001b978
xor edx, edx
mov r8d, 0x1400000
mov rcx, rax
call fcn.140020a10
lea rdx, str.Error:
lea rcx, [0x14005da20]
call fcn.14000fe60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001cb80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001b7c2
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140015b10
lea rdx, [0x14001c9f0]
mov rcx, rax
call fcn.14001bf30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001b81a
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b815
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9a1
call fcn.14001e4c0
movzx ebx, word [r14 + 0x14]
add rbx, 0x18
add rbx, r14
cmp word [r14 + 6], 0
je 0x14001b8b9
mov edx, 0x20
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x14001b8a3
mov dword [rbp - 0x19], 0
mov eax, dword [rbx + 0x24]
test eax, 0x80000000
jbe 0x14001b856
mov esi, 4
jmp 0x14001b863
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 0x14001b899
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 0x14001b837
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 0x14001b90d
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 0x14001b932
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 0x14001b957
lea rcx, str._DLL_injection__WARNING:_cant_release_mapping_data_memory_n
call fcn.140001190
mov al, 1
jmp 0x14001b97a
lea rcx, str._DLL_injection__Wrong_mapping_ptr._n
call fcn.140001190
jmp 0x14001b677
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.14001e4a0
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.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3
call fcn.14002c654
int3