Function at 0x5f8724
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x5f872c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040a740
xor eax, eax
push ebp
push 0x5f8b97
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp + 0x10]
push ebx
push 0
push 0x1fffff
call sub.KERNEL32.DLL_OpenProcess
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x5f8bb8
mov eax, dword [ebp - 4]
call fcn.005f8c18
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x5f8bc8
call fcn.0040b8e8
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x5f8bd8
call fcn.0040b8e8
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x3c], 0
jne 0x5f87c1
cmp dword [ebp - 0x40], 0
jbe 0x5f887e
jmp 0x5f87c7
jle 0x5f887e
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
sub eax, 1
sbb edx, 0
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, 1
adc edx, 0
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040b6d8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0040aa84
add dword [ebp - 0x40], 1
adc dword [ebp - 0x3c], 0
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x10]
call fcn.005f7c84
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x10]
call fcn.0040aa84
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, 0x5f8bc8
call fcn.0040b8e8
mov ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
mov eax, 0x5f8bd8
call fcn.0040b8e8
mov ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jne 0x5f887e
cmp dword [ebp - 0x48], 0
jne 0x5f887e
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5f8874
sub ecx, 4
mov ecx, dword [ecx]
lea eax, [ecx + 1]
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x3c], 0
jne 0x5f8890
cmp dword [ebp - 0x40], 0
jbe 0x5f891b
jmp 0x5f8896
jle 0x5f891b
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
sub eax, 1
sbb edx, 0
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, 1
adc edx, 0
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040b6d8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0040aa84
add dword [ebp - 0x40], 1
adc dword [ebp - 0x3c], 0
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, 0x5f8bc8
call fcn.0040b8e8
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
mov eax, 0x5f8bd8
call fcn.0040b8e8
mov ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jne 0x5f891b
cmp dword [ebp - 0x48], 0
jne 0x5f891b
mov eax, dword [ebp - 8]
test eax, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x74]
push eax
push 0x40
push 2
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
mov eax, dword [ebp - 0x10]
mov edx, 0x5f8be8
call fcn.0040b6a0
jne 0x5f895f
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.005f9300
jmp 0x5f8b6c
mov edx, esi
mov eax, ebx
call fcn.005f7c48
mov edi, esi
mov eax, edi
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x18]
mov eax, 8
call fcn.004245e8
mov eax, edi
xor edx, edx
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x4c]
sub eax, 5
sbb edx, 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
push 0
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x88]
mov eax, 8
call fcn.004245e8
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.005f7aa4
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x5f8c00
call fcn.0040b568
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x50]
mov edx, edi
mov eax, ebx
call fcn.005f9300
push 5
mov ecx, dword [ebp - 0x10]
mov edx, edi
mov eax, ebx
call fcn.005f9300
push 0
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x18]
mov edx, 0x5f8c14
call fcn.0040b568
mov eax, dword [ebp - 0x8c]
call fcn.00424608
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.005f9300
lea eax, [ebp - 0x90]
push eax
xor ecx, ecx
mov edx, 0x5f8bb8
mov eax, dword [ebp - 0x14]
call fcn.005f8c18
mov eax, dword [ebp - 0x90]
mov ecx, eax
test ecx, ecx
je 0x5f8a40
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 2
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
call fcn.0040c408
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, esi
xor edx, edx
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x94]
push eax
xor ecx, ecx
mov edx, 0x5f8bb8
mov eax, dword [ebp - 0x10]
call fcn.005f8c18
mov eax, dword [ebp - 0x94]
mov ecx, eax
test ecx, ecx
je 0x5f8a95
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
push 0
push 2
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
call fcn.0040c408
add eax, 5
adc edx, 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
sub eax, dword [ebp - 0x70]
sbb edx, dword [ebp - 0x6c]
sub eax, 5
sbb edx, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push 0
mov eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xa0]
mov eax, 8
call fcn.004245e8
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.005f7aa4
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 0x5f8c00
call fcn.0040b568
mov eax, dword [ebp - 0x98]
push eax
lea eax, [ebp - 0xa4]
mov ecx, dword [ebp - 0x18]
mov edx, 0x5f8c14
call fcn.0040b568
mov eax, dword [ebp - 0xa4]
call fcn.00424608
mov edx, eax
add edx, dword [ebp - 0x58]
mov eax, ebx
pop ecx
call fcn.005f9300
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
push 2
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8b9e
lea eax, [ebp - 0xa4]
mov edx, 0xb
call fcn.0040a6bc
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040a6bc
ret