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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
mov edx, dword [0x4edf08]
call fcn.0040b298
xor eax, eax
push ebp
push 0x4f749e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5f4700], 0
jne 0x4f746d
xor eax, eax
mov dword [0x5f470c], eax
xor eax, eax
mov dword [0x5f4710], eax
cmp dword [0x5f470c], 0
je 0x4f6f35
cmp dword [0x5f4710], 0
je 0x4f6f35
push 0x5f4714
push 0
push 0x4f6c28
push 0
call dword [0x5f470c]
test eax, eax
je 0x4f7466
xor eax, eax
mov dword [0x5f4714], eax
cmp dword [0x5f4708], 0
jne 0x4f6f56
xor edx, edx
mov eax, dword [0x5f42a4]
call fcn.004f0a94
mov dword [0x5f4708], eax
cmp byte [0x5f4701], 0
jne 0x4f73da
mov byte [0x5f4701], 1
lea edx, [ebp - 4]
mov eax, dword [0x5f43a8]
call fcn.004ec4a0
lea eax, [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004ec12c
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 4]
call fcn.0040a630
mov eax, dword [ebp - 0x68]
call fcn.0040a7fc
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4f73da
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xb7
setne byte [ebp - 0x45]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x4f73d0
mov ebx, 0x32
cmp byte [ebp - 0x45], 0
jne 0x4f7016
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x4f7008
cmp eax, dword [esp]
pop edx
pop eax
je 0x4f7016
push 0x32
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x4f6fea
cmp byte [ebp - 0x45], 0
jne 0x4f7031
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 4]
jne 0x4f702b
cmp eax, dword [ecx]
je 0x4f73c2
mov dl, 1
mov eax, dword [0x5f42a0]
call fcn.004f0a94
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x5f42e4]
call fcn.004f0988
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.004f8758
test eax, eax
jne 0x4f7078
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x58]
call fcn.004f083c
mov edx, dword [ebp - 0x40]
mov eax, 0xe
call fcn.004f3998
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
call fcn.0040c010
test eax, eax
jl 0x4f731e
inc eax
xor ebx, ebx
mov edx, ebx
add edx, edx
add edx, edx
add edx, edx
sub edx, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x54]
jne 0x4f7316
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x4f70ec
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x18], 0
je 0x4f731e
mov eax, dword [ebp - 0x4c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x4c]
mov byte [eax], 0xff
mov eax, dword [ebp - 0x4c]
mov byte [eax + 1], 0x25
mov eax, dword [ebp - 0x4c]
add eax, 6
mov edx, dword [ebp - 0x4c]
mov dword [edx + 2], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov dword [eax + 6], edx
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0xa], edx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp byte [edx + eax*4 + 0x10], 0
je 0x4f71de
lea eax, [ebp - 0x64]
push eax
push 0x40
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f731e
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x50], ecx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + eax*4 + 0x14]
lea eax, [ebp - 0x50]
mov ecx, 4
call fcn.004f2b58
test al, al
jne 0x4f71ae
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x64]
push eax
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x4c]
mov dword [0x5f4704], eax
xor esi, esi
jmp 0x4f731e
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
je 0x4f7285
lea eax, [ebp - 0x64]
push eax
push 0x40
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f731e
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + eax*4 + 0x14]
lea eax, [ebp - 0x4c]
mov ecx, 4
call fcn.004f2b58
test al, al
jne 0x4f7255
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
mov edx, dword [ebp - 0x4c]
mov dword [eax], edx
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x64]
push eax
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x4c]
mov dword [0x5f4704], eax
xor esi, esi
jmp 0x4f731e
lea eax, [ebp - 0x64]
push eax
push 0x40
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f731e
mov eax, dword [ebp - 0x4c]
add eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + eax*4 + 0x18]
lea eax, [ebp - 0x50]
mov ecx, 4
call fcn.004f2b58
test al, al
jne 0x4f72e9
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x18]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x64]
push eax
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x4c]
mov dword [0x5f4704], eax
xor esi, esi
jmp 0x4f731e
inc ebx
dec eax
jne 0x4f70a6
cmp dword [ebp - 0x5c], 0
jne 0x4f7328
cmp dword [ebp - 0x60], 0
je 0x4f7381
lea eax, [ebp - 0x64]
push eax
push 0x40
push 8
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f7381
lea eax, [ebp - 0x60]
mov ecx, 8
mov edx, dword [ebp - 0x58]
call fcn.004f2b58
test al, al
jne 0x4f7361
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
mov edx, dword [ebp - 0x5c]
mov dword [eax + 4], edx
mov edx, 8
mov eax, dword [ebp - 0x58]
call fcn.004f5a98
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x64]
push eax
push 8
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_VirtualProtect
cmp dword [0x5f4704], 0
jne 0x4f73a2
push edi
call sub.kernel32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_VirtualFree_1
jmp 0x4f73d0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
lea eax, [ebp - 0x64]
push eax
push 0x20
push 0xe
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4f73d0
mov eax, dword [edi + 8]
mov dword [0x5f4704], eax
push edi
call sub.kernel32.dll_UnmapViewOfFile
test esi, esi
je 0x4f73da
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [0x5f4704], 0
je 0x4f7408
push 0
push 0
mov eax, dword [0x5f4704]
push eax
push 0x4f6d10
push 0x5f46f8
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004f7a54
jmp 0x4f7437
push 0
push 0
mov dl, 1
mov eax, dword [0x5f42e4]
call fcn.004f0988
call fcn.004f3928
push eax
push 0x4f6c74
push 0x5f46f4
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004f7a54
push 0
push 0
mov dl, 1
mov eax, dword [0x5f42b0]
call fcn.004f0a94
call fcn.004f3928
push eax
push 0x4f6d94
push 0x5f46fc
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004f7a54
mov byte [0x5f4700], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f74a5
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00409e6c
lea eax, [ebp - 0x44]
mov edx, dword [0x4edf08]
call fcn.0040b374
lea eax, [ebp - 4]
call fcn.00409e00
ret