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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi - 0x201]
mov byte [ebp - 1], 0
cmp eax, 0x6ffffdfe
ja 0x14bc7
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x14bc7
push esi
mov esi, dword [eax + 0x3c]
cmp esi, edi
jae 0x14bc6
lea edx, [esi + 0x18]
cmp edx, edi
jae 0x14bc6
movzx edx, word [eax + esi + 0x14]
add eax, esi
push ebx
movzx ebx, word [eax + 6]
lea ecx, [ebx + ebx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add esi, ecx
cmp dword [eax], 0x4550
lea esi, [esi + edx + 0x18]
lea edx, [edx + eax + 0x18]
lea ecx, [ecx + edx - 0x28]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ecx
jne 0x14bc5
lea edx, [ebx - 1]
cmp edx, 0x4e
ja 0x14bc5
cmp esi, edi
jae 0x14bc5
movzx ecx, word [eax + 0x14]
cmp ecx, edi
jae 0x14bc5
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x149f4
cmp ecx, 2
jne 0x149f4
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0xc], ecx
jmp 0x149fa
mov edx, dword [eax + 0x54]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x50]
cmp esi, dword [ebp - 0xc]
ja 0x14bc5
cmp edx, 0x10000
ja 0x14bc5
cmp ecx, 0x10000
ja 0x14bc5
mov esi, dword [ebp - 0x10]
dec ecx
lea edi, [ecx + eax]
mov eax, ecx
not eax
and edi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0x18], edi
cmp eax, edi
ja 0x14bc5
mov esi, dword [esi + 8]
cmp esi, edi
jae 0x14bc5
add esi, eax
cmp esi, edi
ja 0x14bc5
dec edx
mov dword [ebp - 0x20], edx
cmp edx, ecx
ja 0x14bc5
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x14b0d
mov eax, dword [ebp - 0x18]
add eax, 0x14
jmp 0x14a83
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax - 8]
cmp edi, dword [ebp + 0x18]
ja 0x14b01
test ecx, edi
jne 0x14b01
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
ja 0x14b01
mov esi, dword [eax - 4]
cmp esi, edx
ja 0x14b01
lea ebx, [esi + ecx]
cmp ebx, edx
ja 0x14afe
lea edx, [eax - 0x14]
cmp edx, dword [ebp - 0x10]
je 0x14abe
mov edx, dword [eax + 0x20]
cmp edi, edx
ja 0x14afe
mov ebx, dword [eax - 0xc]
add ebx, edi
cmp ebx, edx
ja 0x14afe
mov ebx, dword [ebp - 0x20]
mov edx, ebx
not edx
add esi, ebx
and ecx, edx
and esi, edx
mov edx, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax - 4], esi
cmp ecx, edx
ja 0x14afe
test esi, esi
js 0x14afe
sub edx, ecx
cmp esi, edx
jbe 0x14ae4
mov dword [eax - 4], edx
lea ecx, [eax - 0x14]
cmp ecx, dword [ebp - 0x10]
je 0x14b71
mov ecx, dword [eax + 0x20]
sub ecx, edi
cmp dword [eax - 4], ecx
jbe 0x14b7e
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x14], ebx
jb 0x14bc5
mov edi, dword [ebp + 0x18]
lea esi, [edi + 0x100]
push esi
mov ecx, 1
call fcn.0008b8a0
mov edi, eax
test edi, edi
je 0x14bc5
push esi
push 0
push edi
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp ecx, eax
jae 0x14b40
mov eax, ecx
mov edx, dword [ebp + 8]
push eax
push edx
push edi
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
test ebx, ebx
je 0x14bb4
mov esi, dword [ebp - 0x18]
add esi, 0x10
mov eax, dword [esi - 8]
mov ecx, dword [esi]
cmp eax, ecx
jae 0x14b98
mov ecx, dword [esi - 4]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
add ecx, edi
push eax
push ecx
jmp 0x14ba6
mov ecx, dword [ebp + 0x18]
sub ecx, edi
cmp dword [eax - 4], ecx
jbe 0x14b7e
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
inc ecx
add eax, 0x28
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
jb 0x14a80
jmp 0x14b0a
mov edx, dword [esi + 4]
add edx, dword [ebp + 8]
mov eax, dword [esi - 4]
push ecx
push edx
add eax, edi
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add esi, 0x28
dec ebx
jne 0x14b58
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ecx], edi
mov byte [ebp - 1], 1
mov dword [edx], eax
pop ebx
pop esi
mov al, byte [ebp - 1]
pop edi
mov esp, ebp
pop ebp
ret 0x14