Function at 0x100ecd20
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10163d78
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x101b90ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
xor al, al
push 0x10194be8
or esi, 0xffffffff
mov byte [ebp - 0x19], 0
push ecx
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x24], al
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xa4], 0xa
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 0xa
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xc0], 0xa
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x98], esi
call fcn.1013ed7a
mov ebx, eax
add esp, 8
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x100ed4ed
push ebx
push 8
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.10141ae1
add esp, 0x10
cmp eax, 8
jne 0x100ed4e4
push eax
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.100f3610
add esp, 4
test eax, eax
jne 0x100ed4e4
lea edx, [ebp - 0x8c]
mov ecx, ebx
call fcn.100ec150
test eax, eax
jne 0x100eceb8
push ebx
call fcn.1013f0ae
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.100ed640
or eax, 0xffffffff
jmp 0x100ed505
cmp eax, 0x52444849
jne 0x100ed4a1
cmp dword [ebp - 0x88], 0x19
jne 0x100ed4a1
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
movzx ebx, byte [ecx + 0xc]
shl edx, 8
add edx, eax
shl ebx, 8
movzx eax, byte [ecx + 0xa]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd]
add ebx, eax
mov dword [ebp - 0x64], edx
movzx eax, byte [ecx + 0xe]
shl ebx, 8
add ebx, eax
mov dword [ebp - 0x48], edx
movzx eax, byte [ecx + 0xf]
shl ebx, 8
add ebx, eax
mov dword [ebp - 0x94], ebx
mov edi, ebx
test edx, edx
je 0x100ed521
cmp edx, 0x4000
ja 0x100ed521
test ebx, ebx
je 0x100ed521
cmp ebx, 0x4000
ja 0x100ed521
mov eax, ebx
mov dword [ebp - 0x38], 0
imul eax, edx
xor esi, esi
push ecx
push ebx
push edx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x34], 0
shl eax, 2
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x44], 0xa
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x90], eax
call fcn.100ebe70
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xb4]
push esi
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.100ec1f0
add esp, 0x10
test eax, eax
jne 0x100ed47b
push ecx
push ebx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x84]
call fcn.100ebe70
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.10143772
add esp, 4
test eax, eax
jne 0x100ed47e
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
nop dword [eax]
lea edx, [ebp - 0x60]
mov ecx, ebx
call fcn.100ec150
test eax, eax
je 0x100ed47e
mov ebx, dword [ebp - 0x60]
cmp eax, 0x4c546361
jne 0x100ed036
mov cl, byte [ebp - 0x24]
test cl, cl
jne 0x100ed365
cmp byte [ebp - 0x19], cl
jne 0x100ed365
mov byte [ebp - 0x19], 1
mov byte [ebp - 0x1a], 1
push ebx
call fcn.10050e00
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.10143772
add esp, 4
test eax, eax
je 0x100ecfe0
jmp 0x100ed47e
cmp eax, 0x4c546366
jne 0x100ed2d7
mov cl, byte [ebp - 0x24]
test cl, cl
je 0x100ed150
cmp byte [ebp - 0x19], 0
je 0x100ed365
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.100ec3b0
test eax, eax
jne 0x100ed465
push ecx
push dword [ebp - 0x94]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0x64]
call fcn.100ebe70
cmp esi, 2
mov esi, dword [ebp - 0xbc]
jne 0x100ed09b
push dword [ebp - 0x90]
push dword [ebp - 0x70]
push esi
call fcn.1012ae30
add esp, 0xc
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x40]
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.100ec000
mov eax, dword [ebp - 0x68]
add esp, 0x14
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
push eax
call fcn.100ed670
cmp dword [ebp - 0x30], 2
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x40], eax
je 0x100ed144
push dword [ebp - 0x90]
push dword [ebp - 0x70]
push esi
call fcn.1012ae30
add esp, 0xc
cmp dword [ebp - 0x30], 1
jne 0x100ed144
test edi, edi
je 0x100ed144
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x38]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
lea esi, [edx + eax*4]
nop
mov eax, dword [esi]
push ebx
add eax, ecx
push 0
push eax
call fcn.1012b3b0
mov ecx, dword [ebp - 0x44]
lea esi, [esi + 4]
add esp, 0xc
sub edi, 1
jne 0x100ed120
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0xbc]
mov cl, byte [ebp - 0x24]
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x6c], esi
movzx eax, byte [ebx + 0xc]
movzx edx, byte [ebx + 0xd]
movzx edi, byte [ebx + 0x10]
shl eax, 8
add edx, eax
movzx esi, byte [ebx + 0x14]
movzx eax, byte [ebx + 0xe]
shl edx, 8
add edx, eax
shl esi, 8
movzx eax, byte [ebx + 0xf]
shl edi, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0x11]
add edi, eax
mov dword [ebp - 0x48], edx
movzx eax, byte [ebx + 0x12]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x13]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x15]
add esi, eax
movzx eax, byte [ebx + 0x16]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x17]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x19]
mov dword [ebp - 0x38], esi
movzx esi, byte [ebx + 0x18]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1a]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1b]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1d]
mov dword [ebp - 0x34], esi
movzx esi, byte [ebx + 0x1c]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1f]
mov dword [ebp - 0x68], esi
movzx esi, byte [ebx + 0x1e]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x21]
mov dword [ebp - 0x44], esi
movzx esi, byte [ebx + 0x20]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x100ed27a
cmp edx, 0x4000
ja 0x100ed27a
test edi, edi
je 0x100ed27a
cmp edi, 0x4000
ja 0x100ed27a
mov eax, dword [ebp - 0x38]
add eax, edx
cmp eax, dword [ebp - 0x64]
ja 0x100ed27a
mov eax, dword [ebp - 0x34]
add eax, edi
cmp eax, dword [ebp - 0x94]
ja 0x100ed27a
cmp esi, 2
ja 0x100ed27a
cmp dword [ebp - 0x3c], 1
ja 0x100ed27a
test cl, cl
je 0x100ed28b
mov ecx, dword [ebp - 0x8c]
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100ec1f0
add esp, 0x10
test eax, eax
je 0x100ed28f
lea ecx, [ebp - 0x84]
call fcn.100ebaa0
push ebx
jmp 0x100ed473
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
xor eax, eax
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp byte [ebp - 0x1a], al
setne al
cmp ecx, eax
jne 0x100ed018
mov dword [ebp - 0x3c], 0
cmp esi, 2
jne 0x100ed018
mov esi, 1
mov dword [ebp - 0x30], esi
jmp 0x100ed018
cmp eax, 0x54414449
jne 0x100ed2fd
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push ebx
mov byte [ebp - 0x24], 1
call fcn.100ec350
add esp, 8
test eax, eax
jne 0x100ed27a
jmp 0x100ed018
cmp eax, 0x54416466
jne 0x100ed357
cmp byte [ebp - 0x19], 0
je 0x100ed362
mov esi, dword [ebp - 0x5c]
lea edx, [ebx + 4]
lea ecx, [esi - 0x10]
mov eax, ecx
mov byte [edx + 3], cl
shr eax, 0x18
mov byte [edx], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 1], al
mov eax, ecx
shr eax, 8
mov byte [edx + 2], al
lea eax, [esi - 4]
push eax
mov dword [ebx + 8], 0x54414449
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x28]
call fcn.100ec350
add esp, 8
test eax, eax
jne 0x100ed27a
mov esi, dword [ebp - 0x30]
jmp 0x100ed018
cmp eax, 0x444e4549
je 0x100ed414
mov cl, byte [ebp - 0x24]
mov al, byte [ebx + 4]
cmp al, 0x41
jb 0x100ed285
cmp al, 0x7a
ja 0x100ed285
cmp al, 0x5a
jbe 0x100ed384
cmp al, 0x61
jb 0x100ed285
mov al, byte [ebx + 5]
cmp al, 0x41
jb 0x100ed285
cmp al, 0x7a
ja 0x100ed285
cmp al, 0x5a
jbe 0x100ed3a3
cmp al, 0x61
jb 0x100ed285
mov al, byte [ebx + 6]
cmp al, 0x41
jb 0x100ed285
cmp al, 0x7a
ja 0x100ed285
cmp al, 0x5a
jbe 0x100ed3c2
cmp al, 0x61
jb 0x100ed285
mov al, byte [ebx + 7]
cmp al, 0x41
jb 0x100ed285
cmp al, 0x7a
ja 0x100ed285
cmp al, 0x5a
jbe 0x100ed3e1
cmp al, 0x61
jb 0x100ed285
test cl, cl
jne 0x100ed018
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push ebx
call fcn.100ec350
add esp, 8
test eax, eax
jne 0x100ed27a
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
call fcn.100ed530
jmp 0x100ed021
mov al, byte [ebp - 0x24]
test al, al
je 0x100ed465
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.100ec3b0
test eax, eax
jne 0x100ed465
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x40]
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.100ec000
mov eax, dword [ebp - 0x68]
add esp, 0x14
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
push eax
call fcn.100ed670
jmp 0x100ed470
lea ecx, [ebp - 0x84]
call fcn.100ebaa0
push dword [ebp - 0x60]
call fcn.10050e00
add esp, 4
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0xb4]
call fcn.100ebaa0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x100ed4a1
xor eax, eax
cmp byte [ebp - 0x1a], al
sete al
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x54]
xor esi, esi
mov ecx, dword [ebp - 0x58]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x100ed4cd
push dword [ecx + esi*8]
call fcn.10050e00
mov eax, dword [ebp - 0x54]
inc esi
mov ecx, dword [ebp - 0x58]
add esp, 4
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x100ed4b2
push dword [ebp - 0x8c]
mov dword [ebp - 0x54], ecx
call fcn.10050e00
mov esi, dword [ebp - 0x98]
add esp, 4
push ebx
call fcn.1013f0ae
add esp, 4
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x100ed503
mov ecx, dword [ebp - 0x50]
sub ecx, edx
sar ecx, 3
push ecx
push edx
call fcn.1004c8b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10109ec2
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
jmp 0x100ecea0