Function at 0x18000d284
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, 0x5a4d
cmp word [0x180044280], ax
je 0x18000d2cf
lea rcx, str.failed_to_verify_PE_header
call fcn.18000d008
xor al, al
jmp 0x18000d711
movsxd rbx, dword [0x1800442bc]
lea r14, [0x180044280]
add rbx, r14
mov eax, 0x8664
cmp word [rbx + 4], ax
je 0x18000d2f4
lea rcx, str.failed_to_verify_PE_architecture
jmp 0x18000d2c3
lea rcx, str.verified_the_PE
call fcn.18000d008
mov edx, dword [rbx + 0x50]
mov r15d, 0x3000
mov r8d, r15d
mov r9d, 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r13d, r13d
mov rdi, rax
test rax, rax
jne 0x18000d340
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x58], eax
lea rcx, str.failed_to_allocate:_
call fcn.18000e170
jmp 0x18000d2c8
mov dword [rbp + 0x50], r13d
lea r9, [rbp + 0x50]
mov edx, dword [rbx + 0x50]
mov r12d, 0x40
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8d, 0x1000
mov qword [rbp - 0x40], rax
mov rdx, r14
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
mov qword [rbp - 0x38], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 1
mov qword [rbp - 8], 1
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x10], r13
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
jne 0x18000d3df
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_copy_PE_header:_
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x58], eax
call fcn.18000e170
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18000d2c8
movzx esi, word [rbx + 0x14]
mov ecx, r13d
add rsi, 0x2c
mov dword [rbp + 0x58], ecx
cmp word [rbx + 6], r13w
je 0x18000d42a
add rsi, rbx
cmp dword [rsi - 4], r13d
je 0x18000d419
mov edx, dword [rsi]
mov ecx, dword [rsi - 8]
add rdx, r14
mov r8d, dword [rsi - 4]
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
test rax, rax
je 0x18000d458
mov ecx, dword [rbp + 0x58]
movzx eax, word [rbx + 6]
inc ecx
add rsi, 0x28
mov dword [rbp + 0x58], ecx
cmp ecx, eax
jne 0x18000d3f7
mov r9d, 4
mov r8d, r15d
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18000d47a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_allocate_map_data
jmp 0x18000d3bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp + 0x60]
mov dword [rbp + 0x60], eax
lea rdx, [rbp + 0x58]
lea rcx, str.failed_to_copy_segment_section__:
call fcn.18000e1a4
jmp 0x18000d3c9
movaps xmm0, xmmword [rbp - 0x40]
mov r14d, 0x1000
movaps xmm1, xmmword [rbp - 0x30]
mov r9d, r12d
movups xmmword [rax], xmm0
mov r8d, r15d
mov edx, r14d
movaps xmm0, xmmword [rbp - 0x20]
xor ecx, ecx
movups xmmword [rax + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
jne 0x18000d4ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x58], eax
lea rcx, str.failed_to_allocate_shell:_
call fcn.18000e170
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
jmp 0x18000d3cc
mov r8, r14
lea rdx, [0x18000d72c]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
test r15, r15
jne 0x18000d544
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x58], eax
lea rcx, str.failed_to_copy_shell:_
call fcn.18000e170
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r15
jmp 0x18000d3cc
lea rcx, str.mapping_complete
call fcn.18000d008
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
call fcn.18000d230
test al, al
jne 0x18000d575
lea rcx, str.failed_to_intialize_hooks
call fcn.18000d008
lea rcx, str.hook_complete
call fcn.18000d008
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
call fcn.18000d0f4
test al, al
jne 0x18000d5a6
lea rcx, str.failed_to_initialize_execution_routine
call fcn.18000d008
mov r8, r14
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
movzx r14d, word [rbx + 0x14]
mov r12d, r13d
movzx eax, word [rbx + 6]
add r14, 0x18
add r14, rbx
test ax, ax
je 0x18000d619
cmp dword [r14 + 8], r13d
je 0x18000d609
lea rdx, str..rsrc
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x18000d5f7
lea rdx, str..reloc
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18000d609
mov ecx, dword [r14 + 0xc]
xor edx, edx
mov r8d, dword [r14 + 8]
add rcx, rdi
call sub.VCRUNTIME140.dll_memset
movzx eax, word [rbx + 6]
inc r12d
add r14, 0x28
cmp r12d, eax
jne 0x18000d5cb
movzx r14d, word [rbx + 0x14]
mov r12d, r13d
add r14, 0x3c
test ax, ax
je 0x18000d681
add r14, rbx
cmp dword [r14 - 0x1c], r13d
je 0x18000d671
test dword [r14], 0x80000000
mov dword [rbp + 0x58], r13d
jbe 0x18000d648
mov r8d, 4
jmp 0x18000d65c
test dword [r14], 0x20000000
mov eax, 0x20
lea r8d, [rax - 0x1e]
cmova r8d, eax
mov ecx, dword [r14 - 0x18]
lea r9, [rbp + 0x58]
mov edx, dword [r14 - 0x1c]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rbx + 6]
inc r12d
add r14, 0x28
cmp r12d, eax
jne 0x18000d62d
movzx eax, word [rbx + 0x14]
lea r9, [rbp + 0x60]
mov dword [rbp + 0x60], r13d
mov r8d, 2
mov rcx, rdi
mov edx, dword [rax + rbx + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edx, edx
mov r8d, 0x1000
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
test rax, rax
jne 0x18000d6c1
lea rcx, str.failed_to_clear_shell
call fcn.18000d008
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x18000d6e2
lea rcx, str.failed_to_release_shell
call fcn.18000d008
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x18000d703
lea rcx, str.failed_to_release_map_data
call fcn.18000d008
lea rcx, str.execution_routine_completed
call fcn.18000d008
mov al, 1
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret