Function at 0x4ddee8
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.004ddec4
test al, al
jne 0x4ddf1b
push 0x4de1c4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
jmp 0x4de1ba
mov eax, dword [0x505b38]
call fcn.0045aa30
push ebp
push 0x4de1b3
push dword fs:[0]
mov dword fs:[0], esp
cmp dword [0x505b44], 0
jle 0x4ddf77
cmp dword [0x505b40], 0
je 0x4ddf77
cmp dword [0x505b3c], 0
je 0x4ddf77
inc dword [0x505b44]
mov eax, dword [0x505b40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [0x505b3c]
mov dword [eax], edx
call fcn.00404320
jmp 0x4de1ba
test edi, edi
je 0x4de19b
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 0x4de19b
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 0x4de19b
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 0x4de025
inc eax
mov dword [ebp - 0x20], eax
mov edx, 0x4de1d4
mov eax, esi
call fcn.00409a38
test eax, eax
jne 0x4de005
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 0x4ddff2
cmp dword [ebp - 0x10], 0
je 0x4de156
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x14]
add ebx, edi
xor esi, esi
jmp 0x4de08e
mov eax, 8
jmp 0x4de074
add edx, eax
mov dx, word [edx]
movzx ecx, dx
shr ecx, 0xc
and cx, 0xf
and dx, 0xfff
sub cx, 3
jne 0x4de071
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 0x4de042
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 0x4de03b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x80], 0
je 0x4de156
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x4de14a
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 0x4de0f8
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x4de0f8
call fcn.00404320
jmp 0x4de1ba
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, ebx
mov ebx, eax
jmp 0x4de13c
xor edx, edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0x7fffffff
cmp eax, ecx
je 0x4de11a
mov dl, 1
and eax, 0x7fffffff
test dl, dl
jne 0x4de12d
add eax, dword [ebp - 0x14]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
jmp 0x4de134
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 0x4de103
mov eax, dword [ebp - 0x18]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x4de0ba
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 0x4de174
call fcn.00404320
jmp 0x4de1ba
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [0x505b44], 1
mov eax, dword [ebp - 8]
mov dword [0x505b40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x505b3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de1ba
mov eax, dword [0x505b38]
call fcn.0045aa38
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret