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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push edi
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 0x56ad28
xor eax, eax
jmp 0x56b332
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 0x56ad46
xor eax, eax
jmp 0x56b332
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 [0x5c9298]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x56ad90
push 4
push 0x2000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [0x5c9298]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x56ad90
xor eax, eax
jmp 0x56b332
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 [0x5c9298]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x3c]
mov eax, dword [ebp - 0xc]
add ecx, dword [eax + 0x54]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x34], eax
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 - 0x30], ecx
mov dword [ebp - 0x38], 0
jmp 0x56ae25
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x30]
add eax, 0x28
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x38], edx
jge 0x56aedd
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x10], 0
jne 0x56ae8e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jle 0x56ae8c
push 4
push 0x1000
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [0x5c9298]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov edi, dword [ebp - 0x34]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x56ae13
push 4
push 0x1000
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0xc]
push eax
call dword [0x5c9298]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
add esi, dword [edx + 0x14]
mov edi, dword [ebp - 0x34]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
jmp 0x56ae13
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x56afbe
mov edx, dword [ebp - 0x18]
add edx, 0xa0
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0
jbe 0x56afbe
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jbe 0x56afbe
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
add eax, 8
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
jmp 0x56af52
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x4c]
add edx, 2
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x3c], ecx
jae 0x56afad
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx]
sar eax, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov dx, word [ecx]
and edx, 0xfff
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 3
je 0x56af95
jmp 0x56afab
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
jmp 0x56af40
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
add eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
jmp 0x56af17
mov ecx, dword [ebp - 0x18]
add ecx, 0x80
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 4], 0
jbe 0x56b158
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0x60], ecx
jmp 0x56afed
mov edx, dword [ebp - 0x60]
add edx, 0x14
mov dword [ebp - 0x60], edx
push 0x14
mov eax, dword [ebp - 0x60]
push eax
call dword [0x5c929c]
test eax, eax
jne 0x56b158
mov ecx, dword [ebp - 0x60]
cmp dword [ecx + 0xc], 0
je 0x56b158
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0xc]
push eax
call dword [0x5c934c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x56b03f
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x5c92a0]
xor eax, eax
jmp 0x56b332
mov edx, dword [ebp - 4]
lea eax, [edx*4 + 4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005a66bc
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x56b077
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [0x5c92a0]
xor eax, eax
jmp 0x56b332
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x68]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 0
je 0x56b0ad
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x6c], edx
jmp 0x56b0c5
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x10]
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 0x56b0d9
mov ecx, dword [ebp - 0x64]
add ecx, 4
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x6c]
add edx, 4
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
je 0x56b153
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
and edx, 0x80000000
test edx, edx
je 0x56b10d
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [0x5c93a8]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
jmp 0x56b12e
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 [0x5c93a8]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x6c]
cmp dword [edx], 0
jne 0x56b14e
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [0x5c92a0]
xor eax, eax
jmp 0x56b332
jmp 0x56b0c7
jmp 0x56afe4
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 0x56b186
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 0x56b2bf
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 0x56b207
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 [0x5c92a0]
jmp 0x56b174
mov eax, dword [ebp - 0x80]
shl eax, 4
mov ecx, dword [ebp - 0x90]
lea edx, [eax + ecx*8 + 0x9e1904]
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 0x56b244
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 0x56b28f
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x56b274
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x84], ecx
jmp 0x56b28f
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x24]
and eax, 0x80
test eax, eax
je 0x56b28f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0
jbe 0x56b2ba
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 [0x5c92a4]
jmp 0x56b174
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x28], 0
je 0x56b32f
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 0x56b2f5
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [0x5c92a0]
xor eax, eax
jmp 0x56b332
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 0x56b32f
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 [0x5c92a0]
xor eax, eax
jmp 0x56b332
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8