Function at 0x48ed60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
cmp word [eax], 0x5a4d
jne 0x48f260
mov eax, dword [esp + 0x60]
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x48f260
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov eax, dword [esi + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x20], eax
call eax
sub esp, 0x10
test eax, eax
mov dword [esp + 0x28], eax
je 0x48f280
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], 0x24
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x48f307
mov ebp, dword [esp + 0x28]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x20], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov eax, dword [esi + 0x54]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call eax
sub esp, 0x10
mov edi, eax
mov eax, dword [esi + 0x54]
mov edx, dword [esp + 0x60]
add eax, dword [edx + 0x3c]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x3c]
add eax, edi
mov edi, dword [ebx + 4]
movzx edx, word [eax + 0x14]
cmp word [eax + 6], 0
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
mov dword [esp + 0x1c], edi
lea edi, [eax + edx + 0x18]
je 0x48ef56
xor ebp, ebp
mov dword [esp + 0x24], esi
jmp 0x48eeee
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x48eede
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov eax, dword [esp + 0x1c]
add eax, dword [edi + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call eax
sub esp, 0x10
mov dword [edi + 8], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx]
add ebp, 1
add edi, 0x28
movzx ecx, word [eax + 6]
cmp ebp, ecx
jge 0x48ef4b
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48ee95
mov dword [esp + 4], eax
mov dword [esp + 0xc], 4
add ebp, 1
mov dword [esp + 8], 0x1000
mov eax, dword [esp + 0x1c]
add edi, 0x28
add eax, dword [edi - 0x1c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call eax
sub esp, 0x10
mov esi, eax
mov edx, dword [edi - 0x18]
mov eax, dword [esp + 0x60]
add eax, dword [edi - 0x14]
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx]
mov dword [edi - 0x20], esi
movzx ecx, word [eax + 6]
cmp ebp, ecx
jl 0x48eeee
mov edi, dword [ebx + 4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x28]
sub edi, dword [esi + 0x34]
mov dword [esp + 0x20], edi
je 0x48efde
mov ecx, dword [eax + 0xa4]
test ecx, ecx
je 0x48efde
mov edi, dword [esp + 0x1c]
mov esi, dword [eax + 0xa0]
add esi, edi
mov ebp, dword [esi]
test ebp, ebp
je 0x48efde
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov esi, esi
lea edi, [edi]
mov ecx, dword [esi + 4]
lea eax, [ecx - 8]
shr eax, 1
je 0x48efce
xor edx, edx
lea esi, [esi]
movzx eax, word [esi + edx*2 + 8]
mov ebx, eax
shr bx, 0xc
cmp bx, 3
jne 0x48efc2
and eax, 0xfff
mov ecx, dword [esp + 0x20]
add eax, ebp
add dword [edi + eax], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx - 8]
add edx, 1
shr eax, 1
cmp edx, eax
jb 0x48efa0
add esi, ecx
mov ebp, dword [esi]
test ebp, ebp
jne 0x48ef90
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, dword [eax + 0x84]
test edx, edx
je 0x48f115
mov edi, dword [esp + 0x1c]
add edi, dword [eax + 0x80]
mov dword [esp + 0x20], edi
lea esi, [esi]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], 0x14
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
sub esp, 8
test eax, eax
jne 0x48f115
mov eax, dword [edi + 0xc]
test eax, eax
je 0x48f115
add eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ebx + 0x14]
test eax, eax
mov edi, eax
je 0x48f2d0
mov eax, dword [ebx + 0xc]
lea eax, [eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x48f2e5
mov edx, dword [ebx + 0xc]
mov esi, dword [esp + 0x20]
mov dword [ebx + 8], eax
lea ecx, [edx + 1]
mov dword [ebx + 0xc], ecx
mov dword [eax + edx*4], edi
mov edx, esi
mov eax, dword [esi]
mov ebp, dword [edx + 0x10]
mov esi, dword [esp + 0x1c]
add ebp, esi
add esi, eax
test eax, eax
cmove esi, ebp
mov eax, dword [esi]
test eax, eax
jne 0x48f0c8
jmp 0x48f250
mov ecx, dword [esp + 0x1c]
mov dword [esp], edi
lea eax, [ecx + eax + 2]
mov dword [esp + 4], eax
call edx
test eax, eax
mov dword [ebp], eax
je 0x48f0e9
add esi, 4
mov eax, dword [esi]
add ebp, 4
test eax, eax
je 0x48f250
mov ecx, dword [ebx + 0x20]
test eax, eax
mov edx, dword [ebx + 0x18]
mov dword [esp + 8], ecx
jns 0x48f0a0
movzx eax, ax
mov dword [esp], edi
mov dword [esp + 4], eax
call edx
test eax, eax
mov dword [ebp], eax
jne 0x48f0b8
mov eax, dword [ebx + 0x20]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx + 0x1c]
mov dword [esp], 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov dword [esp], ebx
xor ebx, ebx
call fcn.0048eca0
jmp 0x48f208
mov ebp, dword [ebx]
movzx eax, word [ebp + 0x14]
lea esi, [ebp + eax + 0x18]
xor eax, eax
cmp word [ebp + 6], 0
je 0x48f1d4
mov edi, eax
mov dword [esp + 0x20], ebx
jmp 0x48f167
lea eax, [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ebp, dword [eax]
movzx eax, word [ebp + 6]
add edi, 1
add esi, 0x28
cmp edi, eax
jge 0x48f1d0
mov eax, dword [esi + 0x24]
mov ecx, eax
mov edx, eax
mov ebx, eax
shr ecx, 0x1d
shr edx, 0x1e
shr ebx, 0x1f
and ecx, 1
and edx, 1
test eax, 0x2000000
mov dword [esp + 0x1c], ebx
mov ebx, dword [esi + 0x10]
jne 0x48f220
lea edx, [edx + ecx*2]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + edx*2]
mov edx, dword [edx*4 + 0x837760]
mov ecx, edx
or ch, 2
test eax, 0x4000000
cmovne edx, ecx
test ebx, ebx
jne 0x48f134
test al, 0x40
je 0x48f212
mov ebx, dword [ebp + 0x20]
test ebx, ebx
jne 0x48f134
movzx eax, word [ebp + 6]
add edi, 1
add esi, 0x28
cmp edi, eax
jl 0x48f167
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x48f208
mov edi, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
add eax, edi
mov dword [esp], edi
call eax
sub esp, 0xc
test eax, eax
je 0x48f33c
mov dword [ebx + 0x10], 1
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test al, 0x80
je 0x48f159
mov ebx, dword [ebp + 0x24]
jmp 0x48f1ba
mov dword [esp + 8], 0x4000
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
mov eax, dword [esp + 0x20]
mov ebp, dword [eax]
jmp 0x48f159
add dword [esp + 0x20], 0x14
jmp 0x48f000
mov dword [esp], 0xc1
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov eax, dword [esi + 0x50]
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call eax
sub esp, 0x10
test eax, eax
mov dword [esp + 0x28], eax
jne 0x48edc2
mov dword [esp], 0xe
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x48f208
mov dword [esp], 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x48f106
mov eax, dword [ebx + 0x20]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx + 0x1c]
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x48f106
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
jmp 0x48f208
mov dword [esp], 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x48f106