Function at 0x47ea40
Capabilities:
Enumerate pe sections
Inspect section memory permissions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x47ea66
xor eax, eax
jmp 0x47f063
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x4550
je 0x47ea84
xor eax, eax
jmp 0x47f063
push 4
push 0x2000
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47eace
push 4
push 0x2000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47eace
xor eax, eax
jmp 0x47f063
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
push 4
push 0x1000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x54]
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004ad3a0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x34], 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 - 0x30], edx
mov dword [ebp - 0x38], 0
jmp 0x47eb60
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x28
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x38], eax
jge 0x47ec11
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x10], 0
jne 0x47ebc5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x47ebc3
push 4
push 0x1000
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004adb50
add esp, 0xc
jmp 0x47eb4e
push 4
push 0x1000
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004ad3a0
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov dword [edx + 8], eax
jmp 0x47eb4e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x47ecf0
mov eax, dword [ebp - 0x18]
add eax, 0xa0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 4], 0
jbe 0x47ecf0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], 0
jbe 0x47ecf0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x44]
add ecx, 8
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], 0
jmp 0x47ec85
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
sub edx, 8
shr edx, 1
cmp dword [ebp - 0x3c], edx
jae 0x47ecdf
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cx, word [eax]
sar ecx, 0xc
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx]
and eax, 0xfff
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 3
je 0x47ecc7
jmp 0x47ecdd
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x50]
mov dword [edx], ecx
jmp 0x47ec73
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
jmp 0x47ec4a
mov edx, dword [ebp - 0x18]
add edx, 0x80
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 4], 0
jbe 0x47ee89
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov dword [ebp - 0x60], edx
jmp 0x47ed1f
mov eax, dword [ebp - 0x60]
add eax, 0x14
mov dword [ebp - 0x60], eax
push 0x14
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x47ee89
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0xc], 0
je 0x47ee89
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x47ed71
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x47f063
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004ad820
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x47eda9
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x47f063
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x68]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0
je 0x47eddf
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x6c], eax
jmp 0x47edf7
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x6c], ecx
jmp 0x47ee0b
mov edx, dword [ebp - 0x64]
add edx, 4
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x6c]
add eax, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x64]
cmp dword [ecx], 0
je 0x47ee84
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
and eax, 0x80000000
test eax, eax
je 0x47ee3e
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
jmp 0x47ee5f
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x6c]
cmp dword [edx], 0
jne 0x47ee7f
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x47f063
jmp 0x47edf9
jmp 0x47ed16
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], 0
jmp 0x47eeb7
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x74]
add eax, 0x28
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x78], edx
jge 0x47eff0
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x47ef38
push 0x4000
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x47eea5
mov eax, dword [ebp - 0x80]
shl eax, 4
mov ecx, dword [ebp - 0x90]
lea edx, [eax + ecx*8 + 0x87a6d4]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x47ef75
mov ecx, dword [ebp - 0x88]
or ch, 2
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x47efc0
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x47efa5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x84], ecx
jmp 0x47efc0
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x24]
and eax, 0x80
test eax, eax
je 0x47efc0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0
jbe 0x47efeb
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x47eea5
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x28], 0
je 0x47f060
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0
jne 0x47f026
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x47f063
push 0
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47f060
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [ebp - 0x94]
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x47f063
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8