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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.0040bdea
cmp eax, ebx
je 0x40c322
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c322
push 0xdc
lea eax, [ebp - 0xfc]
push ebx
push eax
mov dword [ebp - 0x100], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov edi, eax
lea eax, [ebp - 8]
push eax
call fcn.0040f7dd
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x413618
push edi
je 0x40c0e9
call dword [ebp - 8]
jmp 0x40c0eb
call esi
mov dword [ebp - 0x100], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f7dd
cmp dword [ebp - 8], ebx
push 0x41362c
push edi
je 0x40c10a
call dword [ebp - 8]
jmp 0x40c10c
call esi
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f7dd
cmp dword [ebp - 8], ebx
push 0x41363c
push edi
je 0x40c12b
call dword [ebp - 8]
jmp 0x40c12d
call esi
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f7dd
cmp dword [ebp - 8], ebx
push 0x413650
push edi
je 0x40c14c
call dword [ebp - 8]
jmp 0x40c14e
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
push 4
mov edi, 0x1000
push edi
push 0xe0
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xf4], eax
call esi
push 0x40
push edi
push 0x400
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 4
push edi
add eax, eax
push eax
push ebx
push dword [ebp - 4]
call esi
push 4
push edi
mov edi, dword [ebp + 8]
push dword [edi]
mov dword [ebp - 0x2c], eax
push ebx
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
je 0x40c2e6
cmp dword [ebp - 0x10], ebx
je 0x40c2e6
cmp dword [ebp - 0x2c], ebx
je 0x40c2e6
cmp eax, ebx
je 0x40c2e6
mov esi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push ebx
push eax
push dword [edi + 4]
push dword [ebp - 0x30]
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x100]
call fcn.0040bfdd
push ebx
push 0x400
push 0x40bd48
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
push ebx
mov edi, 0xe0
push edi
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0041044f
mov esi, eax
push esi
call fcn.0040bf4a
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xdc
lea eax, [ebp - 0x1dc]
push ebx
push eax
mov dword [ebp - 0x1e0], ebx
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x104]
lea ecx, [eax - 1]
cmp ecx, 0xfffffe
ja 0x40c2d8
add eax, 0x10
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push ebx
push dword [ebp - 0x104]
mov edi, eax
push edi
push dword [ebp - 0x2c]
push dword [ebp - 4]
call esi
test eax, eax
je 0x40c2d1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x14], 1
mov dword [eax + 4], edi
mov dword [eax], ecx
jmp 0x40c2d8
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x1c], ebx
je 0x40c2e6
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov edi, 0x8000
push edi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
push edi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
push edi
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 4]
call esi
push edi
push ebx
push dword [ebp - 0x30]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8