Function at 0x4f7148
Capabilities:
Allocate or change rwx memory
Copy file
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f7527
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.rtl70.bpl__System_Randomize_qqrv
mov eax, 0x3e8
call sub.rtl70.bpl__System__RandInt_qqrv
mov dword [ebp - 0x34], eax
mov byte [ebp - 0xd], 0
push 0x4f753c
push 0x4f7554
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4f74fe
cmp dword [ebp - 8], 0
je 0x4f74fe
mov eax, dword [ebp - 4]
cmp byte [eax], 0xe9
jne 0x4f71e7
mov edx, dword [ebp - 4]
mov eax, edx
inc eax
mov eax, dword [eax]
add eax, edx
add eax, 5
and eax, 0xffffffff
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Hookutils_HookProc_qqrpvt1rpvt1
mov byte [ebp - 0xd], al
jmp 0x4f74fe
push ebp
call fcn.004f70ac
pop ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.004f6b68
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4f74fe
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov dword [ebp - 0x2c], eax
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Hookutils_SuspendOtherThread_qqrpvi
xor edx, edx
push ebp
push 0x4f74f7
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebx], 0xe9
jne 0x4f7349
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
call fcn.004f6938
lea eax, [ebp - 0x38]
mov edx, 0x4f7568
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x38]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x4f7578
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x3c]
call fcn.004f6938
lea eax, [ebp - 0x3c]
mov edx, 0x4f7568
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x3c]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x30], eax
push 0x4f753c
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push 0x40
mov eax, dword [ebp - 0x34]
add eax, 5
push eax
mov esi, ebx
mov eax, esi
sub eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4f72da
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary_1
call sub.rtl70.bpl__System__TryFinallyExit_qqrv
jmp 0x4f74fe
mov eax, esi
mov byte [eax], 0xb8
mov eax, edi
mov edx, eax
inc edx
mov dl, byte [edx]
mov ecx, esi
inc ecx
mov byte [ecx], dl
mov edx, eax
add edx, 2
mov dl, byte [edx]
mov ecx, esi
add ecx, 2
mov byte [ecx], dl
mov edx, eax
add edx, 3
mov dl, byte [edx]
mov ecx, esi
add ecx, 3
mov byte [ecx], dl
add eax, 4
mov al, byte [eax]
add esi, 4
mov byte [esi], al
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
add eax, 5
push eax
sub ebx, dword [ebp - 0x34]
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4f7340
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary_1
call sub.rtl70.bpl__System__TryFinallyExit_qqrv
jmp 0x4f74fe
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor edx, edx
push ebp
push 0x4f7390
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
push eax
push 0x40
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4f7386
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call sub.rtl70.bpl__System__TryFinallyExit_qqrv
jmp 0x4f74fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f73a6
mov edx, 0x1000
mov eax, dword [ebp - 4]
call 0x4f6ed4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4f73ca
call sub.rtl70.bpl__System__TryFinallyExit_qqrv
jmp 0x4f74fe
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov cl, 0x90
mov edx, 0x3a
call fcn.004021c0
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x32], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x36], eax
mov eax, ebx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.004021b8
mov byte [ebx + 0x20], 0xe9
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x18]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
lea eax, [ebx + 0x20]
xor edx, edx
add eax, 5
adc edx, 0
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 0x21], eax
mov dword [ebx + 0x25], edx
mov byte [ebx + 0x29], 0xe9
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebx + 0x29]
xor edx, edx
add eax, 5
adc edx, 0
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 0x2a], eax
mov dword [ebx + 0x2e], edx
mov cl, 0x90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004021c0
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xe9
lea eax, [ebx + 0x29]
mov edx, dword [ebp - 0x14]
add edx, 5
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 1], eax
cmp dword [ebp + 8], 0
je 0x4f7484
mov eax, dword [ebp + 8]
mov esi, eax
call esi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4f74aa
call sub.rtl70.bpl__System__TryFinallyExit_qqrv
jmp 0x4f74fe
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
push 0x1000
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f74fe
mov eax, dword [ebp - 0x28]
call fcn.004f6e5c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f752e
lea eax, [ebp - 0x3c]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
mov edx, dword [sym.P_Interface.bpl___xp_18Hookutils_THandles]
call sub.rtl70.bpl__System__DynArrayClear_qqrrpvpv
ret