Function at 0x2103cd71
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2107bb13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x30], ecx
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x30]
call fcn.2103c9ab
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x2c], 0
mov eax, dword [ebp - 0x30]
mov word [eax + 0x2e], 0
push 0
push 0x80
push 3
push 0
push 1
mov ecx, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0x40000000
add ecx, 0x80000000
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x20], 0xffffffff
jne 0x2103ce09
jmp 0x2103d063
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 2
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x24], 0
jne 0x2103ce40
jmp 0x2103d063
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and al, 0xfe
add eax, 4
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x28], 0
jne 0x2103ce74
jmp 0x2103d063
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x2103ce91
jmp 0x2103d063
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x3c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x454e
jne 0x2103ced3
mov eax, dword [ebp - 0x30]
mov word [eax + 0x2e], 0x14c
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x2c], 0x10
jmp 0x2103d063
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + 4]
mov word [edx + 0x2e], cx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 0x18]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x10b
je 0x2103cf01
cmp dword [ebp - 0x34], 0x20b
je 0x2103cf38
jmp 0x2103cf6f
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
push 0xf8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x2103cf1f
jmp 0x2103d063
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x2103cf2f
jmp 0x2103d063
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x2c], 0x20
jmp 0x2103cf74
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
push 0x108
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x2103cf56
jmp 0x2103d063
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0x4550
je 0x2103cf66
jmp 0x2103d063
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x2c], 0x40
jmp 0x2103cf74
jmp 0x2103d063
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x28]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], 0
cmp dword [ebp - 0x10], 0
je 0x2103cfa1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x88]
mov dword [ecx + 4], eax
jmp 0x2103cfb0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x98]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 4], 0
jne 0x2103cfbe
jmp 0x2103d063
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], 0
jmp 0x2103cfee
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x24], edx
jae 0x2103d049
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 8], 0
jne 0x2103d026
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x28]
jb 0x2103d03e
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x2c]
jae 0x2103d03e
jmp 0x2103d049
mov edx, dword [ebp - 0x20]
add edx, 0x28
mov dword [ebp - 0x20], edx
jmp 0x2103cfe5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x30]
call fcn.2103c9ee
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8