Function at 0x100016e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10023600
push 0x1000e650
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100252c0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
je 0x100018ef
cmp dword [ebp + 8], 0
je 0x10001757
mov esi, edi
shl esi, 4
add esi, edi
add esi, esi
add esi, esi
mov dword [ebp - 0x2c], esi
lea eax, [esi + 0x1002654a]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0x10026534]
sub edi, 5
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 7
jmp 0x10001792
mov eax, edi
shl eax, 4
add eax, edi
add eax, eax
add eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [eax + 0x10026538], 0
je 0x10001834
lea ecx, [eax + 0x10026540]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 0x10026534]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x1002653c]
mov dword [ebp - 0x1c], eax
mov edi, edx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10005c20
test eax, eax
lea eax, [esi + 0x10026540]
je 0x1000184b
test eax, eax
je 0x100017c8
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push 0xa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100018e8
lea edx, [ebp - 0x20]
push edx
push 4
mov eax, dword [ebp - 0x1c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100018e8
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100018e8
mov eax, dword [ebp - 0x1c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x10026538], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100018e8
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1000186a
push 0xa
push eax
lea esi, [ebp - 0x20]
mov edi, 0x40
call fcn.100012f0
test eax, eax
je 0x100018e8
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
push edx
push edi
lea esi, [ebp - 0x20]
mov edi, 4
call fcn.100012f0
test eax, eax
je 0x100018e8
mov esi, dword [ebp - 0x1c]
push esi
mov eax, dword [ebp - 0x28]
push eax
push ebx
mov edi, dword [ebp - 0x24]
call fcn.10001340
test eax, eax
je 0x100018e8
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10026538], ecx
push esi
push edi
lea esi, [ebp - 0x20]
mov edi, dword [ebp - 0x20]
call fcn.100012f0
test eax, eax
je 0x100018e8
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret