Function at 0x4be196
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x14]
push eax
push 8
push ecx
mov eax, dword [0x4bb5ac]
push dword [0x4ba010]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x4be1d0
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x4be1a7
cmp dword [ebp - 4], 0xa
jl 0x4be1e5
push 4
push 0x4ba01c
call fcn.004bf2f6
add esp, 8
cmp dword [0x4bc734], 3
jne 0x4be261
cmp word [ebp - 0x11], 0xd1ff
jne 0x4be261
cmp byte [ebp - 0xf], 0x64
jne 0x4be261
cmp word [ebp - 0xe], 0x258b
jne 0x4be215
mov dword [0x4bb5b0], 0
mov ebx, 2
jmp 0x4be261
cmp word [ebp - 0xe], 0xd8b
jne 0x4be261
mov ebx, 1
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [0x4bb5b0]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x4be248
push 4
push 0x4ba020
call fcn.004bf2f6
add esp, 8
mov eax, dword [0x4ba010]
sub eax, 0x4c019c
add eax, 0x4c0108
and eax, 0xfffff000
mov dword [0x4bb5b0], eax
test ebx, ebx
jne 0x4be274
push 4
push 0x4ba024
call fcn.004bf2f6
add esp, 8
cmp ebx, 2
jne 0x4be2f3
call fcn.004c06a0
add eax, 0xfff
push 0x240
and eax, 0xfffff000
push 0x1000
push eax
mov dword [ebp - 8], eax
push dword [0x4bb5b0]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [0x4bb5b0], eax
test eax, eax
jne 0x4be2ba
push 4
push 0x4ba028
call fcn.004bf2f6
add esp, 8
mov edx, dword [ebp - 8]
mov edi, dword [0x4bb5b0]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, fcn.004c06a0
mov esi, 0x4c0108
sub eax, esi
mov edi, dword [0x4bb5b0]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4bb5b0]
cmp dword [eax], 0x43534a4a
je 0x4be30f
push 4
push 0x4ba02c
call fcn.004bf2f6
add esp, 8
mov eax, dword [0x4bb5b0]
mov eax, dword [eax + 4]
and eax, 0xfff0
cmp eax, 0x320
jae 0x4be3b7
mov eax, dword [0x4bb5b0]
add eax, 0x3ffc
cmp dword [eax], 0
jne 0x4be343
sub eax, 4
cmp dword [eax], 0
je 0x4be336
cmp dword [eax], 0
je 0x4be34b
sub eax, 4
cmp dword [eax], 0
jne 0x4be343
add eax, 4
cmp dword [0x4bc734], 3
jne 0x4be386
push 0xff
lea ecx, [ebp - 0x11c]
push ecx
lea edi, [ebp - 0x11c]
push dword [eax - 0x1000]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], ecx
jmp 0x4be38d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
push 5
lea ecx, [ebp - 0x11c]
inc dword [ebp - 4]
mov byte [ebp + eax - 0x11c], 0x29
mov eax, dword [ebp - 4]
push ecx
mov byte [ebp + eax - 0x11c], 0
call fcn.004bf2f6
add esp, 8
mov eax, dword [0x4bb5b0]
mov eax, dword [eax + 8]
add eax, dword [0x4bb5b0]
mov dword [ebp - 8], eax
push dword [0x4bc72c]
push dword [0x4bb5a0]
push dword [0x4bb5a4]
push dword [0x4ba010]
push dword [0x4bc734]
push 0x4bee18
call dword [ebp - 8]
add esp, 0x18
cmp ebx, 2
jne 0x4be440
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x1c], 0xe9
mov eax, dword [0x4bb5b0]
mov ecx, dword [0x4bb5b0]
sub eax, 0x4c0108
add eax, 0x4c019c
mov dword [ebp - 8], eax
sub eax, dword [0x4ba010]
sub eax, 5
mov dword [ebp - 0x1b], eax
mov eax, dword [ecx + 0x14]
add eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 8
push eax
push dword [0x4ba010]
call dword [ebp - 8]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret