Function at 0x4fdfa1
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3c]
xor ebx, ebx
push ebx
add edi, eax
push 0x80
push 3
push ebx
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
push 1
add eax, ecx
mov dword [ebp - 0x18], edi
push SysReAllocString
push dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
movzx eax, word [edi + 6]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push ebx
push 2
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4fe2a4
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x4fe29b
mov esi, dword [ebp + 0xc]
push esi
call fcn.0056728d
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ecx + esi]
cmp ecx, eax
jae 0x4fe08e
mov edi, dword [ebp - 8]
mov esi, ecx
mov ebx, eax
push 0x1c
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub eax, dword [ebp + 8]
push dword [ebp - 0x44]
add ecx, eax
cmp dword [ebp - 0x40], 0x2000
mov dword [ebp - 0x24], ecx
je 0x4fe062
push esi
push ecx
jmp 0x4fe077
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004fe2ed
add esp, 0xc
add eax, edi
push eax
push dword [ebp - 0x24]
call fcn.00547fb0
add esi, dword [ebp - 0x44]
add esp, 0xc
cmp esi, ebx
jb 0x4fe038
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov ecx, dword [ebp + 8]
test byte [edi + 0x16], 1
jne 0x4fe112
lea edx, [edi + 0x18]
mov edi, dword [ebp - 8]
cmp dword [edx + 0x8c], ebx
je 0x4fe115
push dword [edx + 0x88]
mov eax, edi
push dword [ebp - 0xc]
sub eax, ecx
push dword [ebp - 0x10]
mov eax, dword [eax + edx + 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004fe2ed
add esp, 0xc
lea ecx, [edi + eax]
cmp dword [ecx], ebx
je 0x4fe115
mov eax, dword [ecx + 4]
mov esi, ebx
lea edi, [eax - 8]
shr edi, 1
je 0x4fe10c
mov ebx, dword [ebp - 0x24]
movzx edx, word [ecx + esi*2 + 8]
mov eax, edx
mov dword [ebp - 0x20], 0x3000
and eax, 0xf000
cmp ax, word [ebp - 0x20]
jne 0x4fe102
and edx, 0xfff
mov eax, ebx
add edx, dword [ecx]
add edx, dword [ebp - 0x14]
sub eax, dword [ebp + 8]
add dword [edx], eax
inc esi
cmp esi, edi
jb 0x4fe0d7
mov eax, dword [ecx + 4]
xor ebx, ebx
add ecx, eax
cmp dword [ecx], ebx
jne 0x4fe0c8
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
cmp cx, ax
jae 0x4fe27e
mov edx, dword [ebp - 0x10]
mov esi, edx
movzx ecx, ax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], ecx
jmp 0x4fe13c
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x24]
and eax, 0xa2000020
cmp eax, 0x20000020
jne 0x4fe26c
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je 0x4fe1c0
cmp ecx, dword [esi + 0xc]
jb 0x4fe1c0
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x4fe1c0
cmp byte [ebp - 1], 0
jne 0x4fe1c0
push ecx
push dword [ebp - 0xc]
push edx
call fcn.004fe2ed
add esp, 0xc
lea esi, [edi + eax]
cmp dword [esi], ebx
je 0x4fe1b6
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
add edi, ecx
push dword [ebp - 0x10]
call fcn.004fe2ed
add esp, 0xc
add eax, dword [ebp - 8]
jmp 0x4fe1a8
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
cmp dword [edi], ebx
jne 0x4fe19e
add esi, 0x14
cmp dword [esi], ebx
jne 0x4fe182
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc8]
test ecx, ecx
je 0x4fe231
cmp ecx, dword [esi + 0xc]
jb 0x4fe231
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x4fe231
cmp byte [ebp - 2], 0
jne 0x4fe231
push ecx
push dword [ebp - 0xc]
push edx
call fcn.004fe2ed
add eax, 0xc
add esp, 0xc
add edi, eax
mov eax, dword [edi]
test eax, eax
je 0x4fe22d
mov esi, dword [ebp - 0x14]
push eax
push dword [ebp - 0xc]
add esi, eax
push dword [ebp - 0x10]
call fcn.004fe2ed
add esp, 0xc
add eax, dword [ebp - 8]
jmp 0x4fe21d
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [esi], ecx
lea esi, [esi + 4]
cmp dword [esi], ebx
jne 0x4fe213
add edi, 0x20
mov eax, dword [edi]
test eax, eax
jne 0x4fe1fa
mov esi, dword [ebp - 0x18]
mov byte [ebp - 2], 1
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
add eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
mov esi, ebx
add edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], edx
cmp esi, edi
jae 0x4fe261
lea ecx, [esi + eax]
sub edx, eax
mov al, byte [ecx]
cmp al, byte [edx + ecx]
jne 0x4fe2b6
inc esi
inc ecx
cmp esi, edi
jb 0x4fe254
mov esi, dword [ebp - 0x18]
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
add esi, 0x28
sub ecx, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], ecx
jne 0x4fe139
mov eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
test eax, eax
je 0x4fe28f
push eax
call fcn.00553d2a
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4fe2af
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
add ecx, esi
mov al, byte [ecx]
cmp al, byte [ecx + edx]
je 0x4fe2cb
inc esi
inc ecx
cmp esi, edi
jb 0x4fe2be
mov eax, esi
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
push eax
call fcn.004fd3b0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
pop ecx
pop ecx
jmp 0x4fe24b