Function at 0x10011610
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x100547c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100583de
call fcn.100258c2
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10057660]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1001168a
mov eax, dword [ebp - 0x1c]
sub eax, 5
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
mov esi, esp
lea edx, [ebp - 0x10]
push edx
push 0x40
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1002589f
test eax, eax
jne 0x100116b5
mov eax, 0xa
jmp 0x100117b7
cmp dword [ebp + 0xc], 0
je 0x10011701
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x1c]
add ecx, 5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x100116ff
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x24]
mov byte [edx + 1], 0xf9
jmp 0x1001173d
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10011728
push 7
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10029890
add esp, 0xc
jmp 0x1001173d
push 5
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10029890
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1002589f
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1002589f
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.1002589f
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 8]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100117e4]
call fcn.1002584b
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100258f4
add esp, 0x24
cmp ebp, esp
call fcn.1002589f
mov esp, ebp
pop ebp
ret