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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x4c4c2f
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx + 0x3c]
cmp dword [esi + ebx], 0x4550
jne 0x4c4c8b
push 4
push 0x1000
push dword [esi + ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x4c4c8b
mov eax, dword [esi + ebx + 0x54]
add eax, dword [ebx + 0x3c]
push eax
push ebx
push ecx
call fcn.004d9a60
mov edx, dword [ebx + 0x3c]
mov eax, 0x2000
mov ecx, dword [ebp - 0x28]
add esp, 0xc
add edx, ecx
mov dword [ebp - 0x30], edx
test word [edx + 0x16], ax
je 0x4c4c8b
mov eax, 0x10b
cmp word [edx + 0x18], ax
je 0x4c4c9d
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
movzx eax, word [edx + 0x14]
xor esi, esi
add eax, 0x18
push edi
add eax, edx
xor edi, edi
mov dword [ebp - 0x3c], eax
cmp si, word [edx + 6]
jae 0x4c4d06
lea esi, [eax + 0x10]
nop word [eax + eax]
mov eax, dword [esi - 4]
push 4
push 0x1000
push dword [esi - 8]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x4c4d6c
mov ecx, dword [esi]
test ecx, ecx
je 0x4c4cf4
push ecx
mov ecx, dword [esi + 4]
add ecx, ebx
push ecx
push eax
call fcn.004d9a60
add esp, 0xc
mov edx, dword [ebp - 0x30]
inc edi
mov ecx, dword [ebp - 0x28]
add esi, 0x28
movzx eax, word [edx + 6]
cmp edi, eax
jl 0x4c4cc0
mov eax, ecx
sub eax, dword [edx + 0x34]
cmp dword [edx + 0xa4], 0
mov dword [ebp - 0x2c], eax
jbe 0x4c4dc9
mov ebx, dword [edx + 0xa0]
add ebx, ecx
mov dword [ebp - 0x38], ebx
mov eax, dword [ebx]
test eax, eax
je 0x4c4dc9
add eax, ecx
lea edi, [ebx + 4]
mov dword [ebp - 0x34], eax
lea esi, [ebx + 8]
mov eax, dword [edi]
xor edx, edx
sub eax, 8
test eax, 0xfffffffe
jbe 0x4c4db7
mov ebx, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, word [esi]
mov eax, ecx
shr eax, 0xc
dec eax
cmp eax, 9
ja case.0x4c4d65.4
movzx eax, byte [eax + 0x4c4f60]
jmp dword [eax*4 + 0x4c4f50]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
and ecx, 0xfff
add dword [ecx + ebx], eax
jmp case.0x4c4d65.4
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
jmp 0x4c4d98
mov eax, dword [ebp - 0x2c]
and ecx, 0xfff
add word [ecx + ebx], ax
mov eax, dword [edi]
inc edx
sub eax, 8
add esi, 2
shr eax, 1
cmp edx, eax
jl 0x4c4d50
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add ebx, dword [edi]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebx]
test eax, eax
jne 0x4c4d30
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x84], 0
jbe 0x4c4e49
mov ebx, dword [edx + 0x80]
add ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4c4e49
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x4c4e46
mov ecx, dword [ebx]
test ecx, ecx
jne 0x4c4dfc
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebx + 0x10]
add edi, ecx
mov ecx, dword [ebp - 0x28]
add esi, ecx
mov eax, dword [edi]
test eax, eax
je 0x4c4e3c
jns 0x4c4e16
movzx eax, ax
jmp 0x4c4e1b
add ecx, 2
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
test eax, eax
je 0x4c4e46
mov eax, dword [edi + 4]
add edi, 4
mov edx, dword [ebp - 0x34]
add esi, 4
mov ecx, dword [ebp - 0x28]
test eax, eax
jne 0x4c4e0f
mov eax, dword [ebx + 0x20]
add ebx, 0x14
test eax, eax
jne 0x4c4de1
mov edx, dword [ebp - 0x30]
xor eax, eax
xor edi, edi
cmp ax, word [edx + 6]
jae 0x4c4f11
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x28]
add esi, 0x24
cmp dword [esi - 0x14], 0
jne 0x4c4e84
mov eax, dword [esi]
test al, 0x40
je 0x4c4e71
mov eax, dword [edx + 0x20]
jmp 0x4c4e7c
test al, al
jns 0x4c4f01
mov eax, dword [edx + 0x24]
test eax, eax
je 0x4c4f01
mov edx, dword [esi]
mov ecx, edx
shr ecx, 0x1d
mov eax, edx
shr eax, 0x1e
and ecx, 1
and eax, 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x14], 0x10
mov eax, edx
mov dword [ebp - 0x10], 0x80
shr eax, 0x1f
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
lea eax, [eax + ecx*2]
mov eax, dword [ebp + eax*4 - 0x24]
test edx, 0x4000000
je 0x4c4eea
or eax, 0x200
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov eax, dword [esi - 0x18]
push dword [esi - 0x1c]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + 6]
inc edi
add esi, 0x28
cmp edi, eax
jl 0x4c4e60
mov eax, dword [edx + 0x28]
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x4c4f2a
add eax, ebx
je 0x4c4f2a
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x4c4f3a
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret