Function at 0x140023310
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140122940]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14002334e
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140023367
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023387
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
je 0x1400233b4
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x80]
call fcn.14001d030
lea rcx, [rsp + 0x90]
call fcn.140001850
mov rcx, rax
call fcn.140010ab0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x90]
call fcn.140001850
mov rcx, rax
call fcn.140001850
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x14002343b
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x14002343b
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0xffffffffffffffff
jne 0x140023442
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023481
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
jne 0x1400234cc
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 8]
cmp dword [rax + 8], ecx
jne 0x1400234cc
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 6]
cmp eax, ecx
je 0x1400234ef
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400236c0
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x21], 0
mov dword [rsp + 0x30], 0
jmp 0x14002353c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x30], eax
jge 0x14002369f
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0xc0]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140023579
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
jne 0x14002357b
jmp 0x140023516
mov dword [rsp + 0x24], 0
jmp 0x14002358f
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x24], eax
jae 0x140023698
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx]
mov ecx, dword [rsp + 0x24]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x24]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
jne 0x1400235e3
jmp 0x140023585
movzx eax, byte [rsp + 0xc8]
test eax, eax
je 0x14002368e
mov dword [rsp + 0x84], 0x40
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x24]
add rax, rcx
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0x84]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x24]
movzx edx, byte [rsp + 0x20]
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x24]
add rax, rcx
lea r9, [rsp + 0x84]
mov r8d, dword [rsp + 0x88]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov byte [rsp + 0x21], 1
jmp 0x140023585
jmp 0x14002369f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400ca200
add rsp, 0xb8
ret