Function at 0x180037a10
Capabilities:
Enumerate pe sections
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r14d, 1
mov r8d, r14d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x180037ca1
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [rsp + 0xc8], eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r13, rax
test rax, rax
je 0x180037c79
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x180037c79
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x20], r14b
mov r9, rax
xor r8d, r8d
mov rdx, r15
call fcn.180007830
test al, al
je 0x180037c67
movsxd rdx, dword [r12 + 0x3c]
add rdx, r12
movzx eax, word [rdx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x180037b09
mov r14d, ebx
jmp 0x180037b17
mov ecx, 0x20b
cmp ax, cx
jne 0x180037c67
movzx eax, word [rdx + 0x14]
lea rcx, [rdx + 0x18]
add rcx, rax
movzx eax, word [rdx + 6]
test r14d, r14d
jne 0x180037bd0
nop
test eax, eax
je 0x180037b67
mov edx, dword [rcx + 0x14]
cmp edx, ebx
jb 0x180037b56
mov r8d, dword [rcx + 0x10]
test r8d, r8d
jne 0x180037b48
cmp ebx, edx
je 0x180037b50
mov edi, r8d
mov dword [rsp + 0x40], r8d
mov ebx, edx
mov dword [rsp + 0x44], edx
add rcx, 0x28
mov qword [rsp + 0x68], rcx
dec eax
mov dword [rsp + 0x48], eax
jmp 0x180037b30
mov r9, r12
mov r8, r13
mov edx, esi
mov rcx, r15
call fcn.18000dc30
lea eax, [rdi + rbx]
cmp eax, esi
jae 0x180037ba7
mov rdx, qword [rsp + 0xb8]
test rdx, rdx
je 0x180037ba0
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x180037ba0
mov dword [rdx], eax
sub esi, edi
sub esi, ebx
mov dword [rcx], esi
mov al, 1
jmp 0x180037ca3
xor al, al
jmp 0x180037ca3
test eax, eax
je 0x180037c07
mov edx, dword [rcx + 0x14]
cmp edx, ebx
jb 0x180037bf6
mov r8d, dword [rcx + 0x10]
test r8d, r8d
jne 0x180037be8
cmp ebx, edx
je 0x180037bf0
mov edi, r8d
mov dword [rsp + 0x40], r8d
mov ebx, edx
mov dword [rsp + 0x44], edx
add rcx, 0x28
mov qword [rsp + 0x68], rcx
dec eax
mov dword [rsp + 0x48], eax
jmp 0x180037bd0
mov r9, r12
mov r8, r13
mov edx, esi
mov rcx, r15
call fcn.18000dc30
lea eax, [rdi + rbx]
cmp eax, esi
jae 0x180037c44
mov rdx, qword [rsp + 0xb8]
test rdx, rdx
je 0x180037c40
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x180037c40
mov dword [rdx], eax
sub esi, edi
sub esi, ebx
mov dword [rcx], esi
mov al, 1
jmp 0x180037ca3
xor al, al
jmp 0x180037ca3
mov r9, r12
mov r8, r13
mov edx, esi
mov rcx, r15
call fcn.18000dc30
jmp 0x180037ca1
lea rdx, [rsp + 0xc8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180037ca1
test byte [rsp + 0xc8], 2
jne 0x180037ca1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret