Function at 0x140043620
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rbp, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r15, rax
test rax, rax
je 0x14004388c
mov r13d, 0x5a4d
cmp word [rax], r13w
jne 0x14004388c
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x14004388c
movzx ebx, word [rdi + 0x14]
add rbx, 0x18
mov dword [rsp + 0x2b0], 0x104
add rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x2b0]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
xor esi, esi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x40], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14004388c
mov qword [rsp + 0x28], rsi
lea r8d, [rsi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x140043883
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x14004388c
cmp word [rax], r13w
jne 0x14004387a
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14004387a
mov ecx, dword [rdi + 8]
cmp dword [rdx + 8], ecx
jne 0x14004387a
movzx ecx, word [rdx + 6]
cmp cx, word [rdi + 6]
jne 0x14004387a
movzx eax, word [rdx + 0x14]
lea r14, [rdx + 0x18]
add r14, rax
xor r13b, r13b
mov r9d, esi
mov r10d, ecx
test ecx, ecx
je 0x140043860
nop word [rax + rax]
mov r8, rbp
mov rax, rbx
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400437b3
inc rax
test ecx, ecx
jne 0x1400437a0
test edx, edx
jne 0x1400437c0
test dword [rbx + 0x24], 0x20000000
jne 0x1400437d5
inc r9d
add rbx, 0x28
add r14, 0x28
cmp r9d, r10d
jl 0x140043790
jmp 0x140043860
cmp dword [rbx + 0x10], esi
jbe 0x140043860
nop
mov eax, dword [r14 + 0x14]
mov ecx, dword [rbx + 0xc]
mov edi, esi
add rax, rdi
add rcx, rdi
add rcx, r15
movzx ebp, byte [rax + r12]
cmp byte [rcx], bpl
je 0x140043859
cmp byte [rsp + 0x2a8], 0
je 0x140043856
mov edx, 1
mov dword [rsp + 0x2b0], 0x40
lea r9, [rsp + 0x2b8]
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0xc]
lea r9, [rsp + 0x2b0]
add rax, rdi
mov edx, 1
mov byte [rax + r15], bpl
mov ecx, dword [rbx + 0xc]
mov r8d, dword [rsp + 0x2b8]
add rcx, rdi
add rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r13b, 1
inc esi
cmp esi, dword [rbx + 0x10]
jb 0x1400437e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r13b
jmp 0x14004388e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret