Function at 0x5f8128
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x5f8130
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 0x5f86a4
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 - 0x30], eax
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x5f86c4
mov eax, dword [ebp - 4]
call fcn.005f8c18
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x5f86d4
call fcn.0040b8e8
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x5f86e4
call fcn.0040b8e8
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x44], 0
jne 0x5f81c5
cmp dword [ebp - 0x48], 0
jbe 0x5f8288
jmp 0x5f81cb
jle 0x5f8288
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x48]
sbb edx, dword [ebp - 0x44]
sub eax, 1
sbb edx, 0
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
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 - 0x48], 1
adc dword [ebp - 0x44], 0
add dword [ebp - 0x50], 1
adc dword [ebp - 0x4c], 0
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x10]
call fcn.005f7c84
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x10]
call fcn.0040aa84
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
mov eax, 0x5f86d4
call fcn.0040b8e8
mov ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, 0x5f86e4
call fcn.0040b8e8
mov ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0
jne 0x5f8288
cmp dword [ebp - 0x50], 0
jne 0x5f8288
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5f827e
sub ecx, 4
mov ecx, dword [ecx]
lea eax, [ecx + 1]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x44], 0
jne 0x5f829a
cmp dword [ebp - 0x48], 0
jbe 0x5f8325
jmp 0x5f82a0
jle 0x5f8325
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x48]
sbb edx, dword [ebp - 0x44]
sub eax, 1
sbb edx, 0
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
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 - 0x48], 1
adc dword [ebp - 0x44], 0
add dword [ebp - 0x50], 1
adc dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
mov eax, 0x5f86d4
call fcn.0040b8e8
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, 0x5f86e4
call fcn.0040b8e8
mov ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0
jne 0x5f8325
cmp dword [ebp - 0x50], 0
jne 0x5f8325
mov eax, dword [ebp - 8]
test eax, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x7c]
push eax
push 0x40
push 2
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
mov eax, dword [ebp - 0x10]
mov edx, 0x5f86f4
call fcn.0040b6a0
jne 0x5f8369
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
mov eax, ebx
call fcn.005f9300
jmp 0x5f8679
lea eax, [ebp - 0x1c]
mov edx, 0x5f870c
call fcn.0040aa84
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.0040aa84
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.005f80e4
mov edi, eax
sar edi, 1
jns 0x5f8397
adc edi, 0
mov edx, esi
mov eax, ebx
call fcn.005f7c48
mov eax, esi
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x18]
mov eax, 8
call fcn.004245e8
mov eax, esi
xor edx, edx
sub eax, dword [ebp - 0x58]
sbb edx, dword [ebp - 0x54]
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 - 0xa8]
mov eax, 8
call fcn.004245e8
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.005f7aa4
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
mov edx, 0x5f870c
call fcn.0040b568
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x58]
mov eax, ebx
call fcn.005f9300
push 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov eax, ebx
call fcn.005f9300
push 0
lea eax, [ebp - 0xac]
mov ecx, dword [ebp - 0x18]
mov edx, 0x5f8720
call fcn.0040b568
mov eax, dword [ebp - 0xac]
call fcn.00424608
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.005f9300
lea eax, [ebp - 0xb0]
push eax
xor ecx, ecx
mov edx, 0x5f86c4
mov eax, dword [ebp - 0x14]
call fcn.005f8c18
mov eax, dword [ebp - 0xb0]
mov ecx, eax
test ecx, ecx
je 0x5f847b
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
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, esi
xor edx, edx
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0xb4]
push eax
xor ecx, ecx
mov edx, 0x5f86c4
mov eax, dword [ebp - 0x10]
call fcn.005f8c18
mov eax, dword [ebp - 0xb4]
mov ecx, eax
test ecx, ecx
je 0x5f84d0
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push 0
push 2
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
call fcn.0040c408
add eax, 5
adc edx, 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, dword [ebp - 0x68]
adc edx, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
sbb edx, dword [ebp - 0x74]
sub eax, 5
sbb edx, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 0
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xc0]
mov eax, 8
call fcn.004245e8
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.005f7aa4
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0xb8]
mov edx, 0x5f870c
call fcn.0040b568
mov eax, dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc4]
mov ecx, dword [ebp - 0x18]
mov edx, 0x5f8720
call fcn.0040b568
mov eax, dword [ebp - 0xc4]
call fcn.00424608
mov edx, eax
add edx, dword [ebp - 0x60]
mov eax, ebx
pop ecx
call fcn.005f9300
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, dword [ebp - 0x68]
adc edx, dword [ebp - 0x64]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
sub eax, dword [ebp - 0x90]
sbb edx, dword [ebp - 0x8c]
sub eax, 5
sbb edx, 0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push edi
mov eax, dword [ebp - 0x98]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xd0]
mov eax, 8
call fcn.004245e8
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.005f7aa4
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
mov edx, 0x5f870c
call fcn.0040b568
mov eax, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd4]
mov ecx, dword [ebp - 0x18]
mov edx, 0x5f8720
call fcn.0040b568
mov eax, dword [ebp - 0xd4]
call fcn.00424608
mov edx, eax
mov eax, ebx
pop ecx
call fcn.005f9300
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x7c]
push eax
push 2
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f86ab
lea eax, [ebp - 0xd4]
mov edx, 0xf
call fcn.0040a6bc
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.0040a6bc
ret