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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.004ddd88
test al, al
jne 0x4ddddf
push 0x4de088
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
jmp 0x4de07e
mov eax, dword [0x4fdb30]
call fcn.0045a8fc
push ebp
push 0x4de077
push dword fs:[0]
mov dword fs:[0], esp
cmp dword [0x4fdb3c], 0
jle 0x4dde3b
cmp dword [0x4fdb38], 0
je 0x4dde3b
cmp dword [0x4fdb34], 0
je 0x4dde3b
inc dword [0x4fdb3c]
mov eax, dword [0x4fdb38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [0x4fdb34]
mov dword [eax], edx
call fcn.0040421c
jmp 0x4de07e
test edi, edi
je 0x4de05f
mov eax, edi
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4de05f
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4de05f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.00402a48
mov eax, dword [ebp - 0xc]
lea esi, [eax + 0x18]
add esi, dword [ebp - 0x14]
sub esi, edi
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x4ddee9
inc eax
mov dword [ebp - 0x20], eax
mov edx, 0x4de098
mov eax, esi
call fcn.00409904
test eax, eax
jne 0x4ddec9
mov dword [ebp - 0x10], esi
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
add eax, edi
mov ecx, dword [esi + 0x10]
push ebx
pop edx
call fcn.00402a48
mov dword [esi + 8], ebx
add esi, 0x28
dec dword [ebp - 0x20]
jne 0x4ddeb6
cmp dword [ebp - 0x10], 0
je 0x4de01a
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x14]
add ebx, edi
xor esi, esi
jmp 0x4ddf52
mov eax, 8
jmp 0x4ddf38
add edx, eax
mov dx, word [edx]
movzx ecx, dx
shr ecx, 0xc
and cx, 0xf
and dx, 0xfff
sub cx, 3
jne 0x4ddf35
movzx edx, dx
add edx, dword [ebx]
add edx, dword [ebp - 0x14]
mov ecx, dword [edx]
mov edi, dword [ebp - 0xc]
sub ecx, dword [edi + 0x34]
add ecx, dword [ebp - 0x14]
mov dword [edx], ecx
add eax, 2
mov edx, ebx
mov ecx, edx
add ecx, 4
cmp eax, dword [ecx]
jb 0x4ddf06
mov edx, ebx
mov ecx, edx
add ecx, 4
mov ecx, dword [ecx]
add ecx, edx
mov ebx, ecx
add esi, eax
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax + 0x10]
jb 0x4ddeff
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x80], 0
je 0x4de01a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x4de00e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov ebx, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x10]
add esi, ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x4ddfbc
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x4ddfbc
call fcn.0040421c
jmp 0x4de07e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, ebx
mov ebx, eax
jmp 0x4de000
xor edx, edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0x7fffffff
cmp eax, ecx
je 0x4ddfde
mov dl, 1
and eax, 0x7fffffff
test dl, dl
jne 0x4ddff1
add eax, dword [ebp - 0x14]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
jmp 0x4ddff8
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
add esi, 4
add ebx, 4
cmp dword [ebx], 0
jne 0x4ddfc7
mov eax, dword [ebp - 0x18]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x4ddf7e
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, dword [ebp - 0x14]
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call ebx
test al, al
jne 0x4de038
call fcn.0040421c
jmp 0x4de07e
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [0x4fdb3c], 1
mov eax, dword [ebp - 8]
mov dword [0x4fdb38], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4fdb34], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de07e
mov eax, dword [0x4fdb30]
call fcn.0045a904
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret