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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x4000]
mov eax, 0x4100
call fcn.14002ea90
sub rsp, rax
mov rax, qword [0x1400bf300]
xor rax, rsp
mov qword [rbp + 0x3fe0], rax
mov rbx, qword [rbp + 0x4050]
mov eax, 0x5a4d
mov rsi, rcx
mov rdi, r9
lea rcx, [0x1400bfc50]
mov r14, rdx
cmp word [rdx], ax
je 0x140020a98
lea r8, str._DLL_injection__Invalid_file_n
lea rdx, [0x140038e68]
call fcn.14001d6c0
xor eax, eax
jmp 0x140021348
mov qword [rsp + 0x40f0], r15
mov eax, 0x8664
movsxd r15, dword [rdx + 0x3c]
add r15, r14
cmp word [r15 + 4], ax
je 0x140020acd
lea r8, str._DLL_injection__Invalid_platform._n
lea rdx, [0x140038e94]
call fcn.14001d6c0
xor eax, eax
jmp 0x140021340
lea r8, str._DLL_injection__File_ok_n
mov qword [rsp + 0x4140], r12
lea rdx, [0x140038eb4]
call fcn.14001d700
mov r8d, dword [r15 + 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 0x140020b2e
lea r8, str._DLL_injection__Target_process_memory_allocation_failed__ex__n
lea rdx, [0x140038ef8]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
xor eax, eax
jmp 0x140021338
lea rax, [rsp + 0x44]
mov qword [rsp + 0x40f8], r13
xor r13d, r13d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], r13d
mov r9d, 0x40
mov r8d, dword [r15 + 0x50]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x2030
call sub.VCRUNTIME140.dll_memset
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rbx, rbx
mov qword [rsp + 0x60], rax
mov rcx, rdi
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp - 0x70]
cmovne rax, rbx
mov qword [rbp - 0x70], rax
call fcn.140015ab0
mov rdx, rax
lea rcx, [rbp - 0x64]
call fcn.140020960
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov r9d, 0x1000
mov qword [rsp + 0x70], rax
mov r8, r14
mov eax, dword [rbp + 0x4078]
mov rdx, r12
mov dword [rbp - 0x78], eax
mov rcx, rsi
movzx eax, byte [rbp + 0x4070]
mov dword [rbp - 0x68], eax
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140020c21
lea r8, str._DLL_injection__Cant_write_file_header._n
lea rdx, [0x140038f2c]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
mov rdx, r12
xor r8d, r8d
mov r9d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14002132e
movzx ebx, word [r15 + 0x14]
mov edi, r13d
add rbx, 0x2c
cmp word [r15 + 6], di
je 0x140020c6e
add rbx, r15
mov eax, dword [rbx - 4]
test eax, eax
je 0x140020c5f
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, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140020ca8
movzx eax, word [r15 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140020c37
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x2040
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x140020cbb
lea r8, str._DLL_injection__Target_process_mapping_allocation_failed__ex_._n
lea rdx, [0x140038fa0]
jmp 0x140020bfb
lea r8, str._DLL_injection__Cant_map_sections._n
lea rdx, [0x1400369a4]
jmp 0x140020bfb
xor ebx, ebx
lea r8, [rsp + 0x60]
mov r9d, 0x2040
mov qword [rsp + 0x20], rbx
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140020d14
lea r8, str._DLL_injection__Cant_write_mapping._n
lea rdx, [0x140038fd0]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r13
jmp 0x140020c0a
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 + 0x58], rax
mov rdi, rax
test rax, rax
jne 0x140020d50
lea r8, str._DLL_injection__Memory_shellcode_allocation_failed__ex_._n
lea rdx, [0x1400369e8]
jmp 0x140020ceb
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
lea r8, [0x1400214d0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, [0x1400bfc50]
test eax, eax
jne 0x140020dbe
lea r8, str._DLL_injection__Cant_write_shellcode._n
lea rdx, [0x140039040]
call fcn.14001d6c0
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, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rdi
jmp 0x140020c0a
mov r9, r12
lea r8, str._DLL_injection__Mapped_DLL_at__p_n
lea rdx, [0x1400369ec]
call fcn.14001d700
mov r9, r13
lea r8, str._DLL_injection__Mapping_info_at__p_n
lea rdx, [0x140039094]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov r9, rdi
lea r8, str._DLL_injection__Shell_code_at__p_n
lea rdx, [0x1400390bc]
lea rcx, [0x1400bfc50]
call fcn.14001d700
lea r8, str._DLL_injection__Data_allocated_n
lea rdx, [0x1400390e0]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov qword [rsp + 0x30], rbx
mov r9, rdi
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140020e98
lea r8, str._DLL_injection__Thread_creation_failed._n
lea rdx, [0x140039114]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
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, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rdi
jmp 0x140020c0a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, rdi
lea r8, str._DLL_injection__Thread_created_at:__p__waiting_for_return..._n
lea rdx, [0x140039158]
lea rcx, [0x1400bfc50]
call fcn.14001d700
nop
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov r9d, dword [rsp + 0x40]
cmp r9d, 0x103
jne 0x140021314
xor edx, edx
lea rcx, [rbp + 0x1fa0]
mov r8d, 0x2040
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x2040
mov qword [rsp + 0x20], rbx
lea r8, [rbp + 0x1fa0]
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp + 0x1fc0]
cmp rbx, 0x404040
je 0x1400212f5
cmp rbx, 0x505050
jne 0x140020f4d
lea r8, str._DLL_injection__WARNING:_Exception_support_failed__n
lea rdx, [0x140036a0c]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
mov ebx, 0
je 0x140020ec0
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov r14, rax
test rax, rax
jne 0x140020f9d
lea r8, str._DLL_injection__Unable_to_allocate_memory_n
lea rdx, [0x140039224]
lea rcx, [0x1400bfc50]
call fcn.14001d700
jmp 0x14002132e
xor edx, edx
mov r8d, 0x1400000
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
cmp byte [rbp + 0x4058], bl
je 0x140020fed
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 0x140020fed
lea r8, str._DLL_injection__WARNING_:_Cant_clear_HEADER_n
lea rdx, [0x140039258]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
cmp byte [rbp + 0x4060], bl
je 0x140021129
movzx ebx, word [r15 + 0x14]
xor edi, edi
add rbx, 0x18
add rbx, r15
cmp word [r15 + 6], di
je 0x140021129
lea rdx, [0x14003925c]
lea r8, str..rsrc
lea r9, str..reloc
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x140021116
cmp byte [rbp + 0x4070], 0
jne 0x140021065
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140021065
cmp rcx, 7
jne 0x140021050
jmp 0x1400210a4
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140021086
cmp rcx, 6
jne 0x140021070
jmp 0x1400210a4
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140021116
cmp rcx, 7
jne 0x140021090
mov r9, rbx
lea r8, str._DLL_injection__Processing__s_removal_n
lea rdx, [0x1400392a0]
lea rcx, [0x1400bfc50]
call fcn.14001d700
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 0x140021101
mov r9, rbx
lea r8, str._DLL_injection__Cant_clear_section__s._n
lea rdx, [0x1400392d4]
lea rcx, [0x1400bfc50]
call fcn.14001d6c0
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x14003925c]
movzx eax, word [r15 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140021030
cmp byte [rbp + 0x4068], 0
je 0x140021249
movzx ebx, word [r15 + 0x14]
xor r14d, r14d
add rbx, 0x18
add rbx, r15
cmp word [r15 + 6], r14w
je 0x140021216
mov edx, 0x20
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x140021201
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x40], 0
test eax, 0x80000000
jbe 0x140021179
mov edi, 4
jmp 0x140021186
test eax, 0x20000000
mov edi, 2
cmova edi, edx
mov edx, dword [rbx + 0xc]
lea rax, [rsp + 0x40]
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 r9, rbx
test eax, eax
je 0x1400211de
mov ecx, dword [rbx + 0xc]
lea r8, str._DLL_injection__Section__s___p_size:__p__set_as__lX_n
mov eax, dword [rbx + 8]
lea rdx, [0x140039310]
add rcx, r12
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea rcx, [0x1400bfc50]
call fcn.14001d700
jmp 0x1400211fc
lea r8, str._DLL_injection__FAIL:_section__s_not_set_as__lX_n
mov dword [rsp + 0x20], edi
lea rdx, [0x14003934c]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov edx, 0x20
movzx eax, word [r15 + 6]
inc r14d
add rbx, 0x28
cmp r14d, eax
jne 0x140021155
movzx eax, word [r15 + 0x14]
mov r9d, 2
mov dword [rsp + 0x48], 0
mov rdx, r12
mov rcx, rsi
mov r8d, dword [rax + r15 + 0x24]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
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 0x14002128a
lea r8, str._DLL_injection__WARNING:_Cant_clear_shellcode_n
lea rdx, [0x140039380]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400212bd
lea r8, str._DLL_injection__WARNING:_cant_release_shell_code_memory_n
lea rdx, [0x1400393c4]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400212f0
lea r8, str._DLL_injection__WARNING:_cant_release_mapping_secrets_memory_n
lea rdx, [0x140039408]
lea rcx, [0x1400bfc50]
call fcn.14001d700
mov rax, r12
jmp 0x140021330
lea r8, str._DLL_injection__Wrong_mapping_ptr._n
lea rdx, [0x1400391bc]
lea rcx, [0x1400bfc50]
call fcn.14001d700
jmp 0x140020d8c
lea r8, str._DLL_injection__Process_crashed__exit_code:_0x_x_n
lea rdx, [0x140039194]
lea rcx, [0x1400bfc50]
call fcn.14001d700
xor eax, eax
mov r13, qword [rsp + 0x40f8]
mov r12, qword [rsp + 0x4140]
mov r15, qword [rsp + 0x40f0]
mov rcx, qword [rbp + 0x3fe0]
xor rcx, rsp
call fcn.14002eaf0
add rsp, 0x4100
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret