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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x10], eax
call fcn.0045895c
test al, al
jne 0x4589c4
push 0x458c80
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x4589bb
mov eax, 0x458c98
call fcn.00427d14
mov dword [esp + 4], ebx
jmp 0x458c74
test ebx, ebx
je 0x458c74
mov eax, ebx
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
cmp dword [eax], 0x4550
jne 0x458c74
push 0x40
push 0x3000
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x458c74
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [esp + 0x14]
mov eax, ebx
call fcn.00402c48
mov eax, dword [esp + 8]
add eax, 0x18
add eax, dword [esp + 0x14]
sub eax, ebx
mov edx, dword [esp + 8]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jb 0x458aae
inc esi
mov edx, 0x458cec
mov eax, dword [esp + 0xc]
call fcn.00408abc
test eax, eax
jne 0x458a65
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
call fcn.00402c48
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov eax, dword [esp + 0xc]
add eax, 0x28
mov dword [esp + 0xc], eax
dec esi
jne 0x458a4b
cmp dword [esp + 0x10], 0
je 0x458c4f
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x458b46
mov eax, 8
jmp 0x458b24
add esi, eax
mov dx, word [esi]
movzx ecx, dx
shr ecx, 0xc
and cx, 0xf
mov edi, edx
and di, 0xfff
sub cx, 3
jne 0x458b21
movzx edx, di
mov ecx, dword [esp + 0x18]
add edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
mov ecx, dword [esp + 8]
sub edx, dword [ecx + 0x34]
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [ecx], edx
add eax, 2
mov esi, dword [esp + 0x18]
mov edx, esi
add edx, 4
cmp eax, dword [edx]
jb 0x458ad5
mov edx, dword [esp + 0x18]
add edx, 4
mov edx, dword [edx]
add edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
cmp eax, dword [esp + 0x1c]
ja 0x458ace
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x458c4f
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x458c42
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
add eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x458bb8
mov eax, dword [esp + 0x34]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
je 0x458c74
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
add eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x458c2e
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov eax, esi
and eax, 0x7fffffff
cmp esi, eax
je 0x458be3
mov bl, 1
and esi, 0x7fffffff
test bl, bl
jne 0x458c03
add esi, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x3c], eax
jmp 0x458c0e
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
jne 0x458bc8
mov eax, dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x458b76
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x28]
mov esi, dword [esp + 0x14]
add ebx, esi
push 0
push 1
push esi
call ebx
test al, al
je 0x458c74
mov eax, dword [esp]
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret