Function at 0x40ff90
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c30
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x432680]
xor eax, ebp
push eax
xor ebx, ebx
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push ebx
push 0x1fffff
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x41013f
push 0x40
push 0x1000
push 0x208
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
je 0x4100e6
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x410001
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x40]
push ecx
push 0x104
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
push edi
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xfa
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp - 0x10], 0
jne 0x4100c0
push 1
push str._g_HMDE
push 0x16
lea edi, [ebp - 0x38]
call fcn.00401800
mov byte [ebp - 4], 1
mov esi, dword [eax + 4]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x3c], esp
mov byte [ecx], 0
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4100a0
sub eax, edi
push eax
push esi
call fcn.004055d0
call fcn.00409b10
add esp, 0x20
lea ecx, [ebp - 0x38]
call fcn.00401870
cmp dword [ebp + 0x20], 0x10
jb 0x4100d2
mov eax, dword [ebp + 0xc]
push eax
call fcn.00413562
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x42e418
lea edi, [ebp - 0x38]
push 0x17
call fcn.00401800
mov byte [ebp - 4], 2
mov edx, dword [eax + 4]
mov eax, edx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
lea esi, [eax + 1]
mov byte [ebp - 0x30], 0
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410110
sub eax, esi
lea ecx, [ebp - 0x30]
push eax
push edx
call fcn.004055d0
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x41012f
lea eax, [ebp - 0x30]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00413a4a
push 0x42e448
lea edi, [ebp - 0x38]
push 0x16
call fcn.00401800
mov byte [ebp - 4], 3
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], 0xf
mov eax, edx
mov dword [ebp - 0x20], ebx
lea esi, [eax + 1]
mov byte [ebp - 0x30], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410168
sub eax, esi
lea ecx, [ebp - 0x30]
push eax
push edx
call fcn.004055d0
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x410187
lea eax, [ebp - 0x30]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00413a4a
int3