Function at 0x10002440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100535a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1005f004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov esi, dword [eax + 0x14]
test esi, esi
je 0x10002665
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], ebx
nop
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10001380
add ebx, dword [ebp - 0x20]
add esp, 8
add esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
cmp ebx, 5
jb 0x10002490
lea eax, [ebx - 1]
cmp eax, 0x63
ja 0x10002665
lea esi, [ebx + 5]
push esi
call fcn.10010ed5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x10002665
call fcn.1001c67b
lea eax, [ebp - 0x18]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push 0x90
push ebx
call fcn.10012c40
add esp, 0xc
push eax
mov eax, 0xb9095aad
mov eax, 0x4b90d721
xor eax, esi
sbb eax, esp
pop eax
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
call fcn.1001c67b
cmp byte [esi], 0xe9
jne 0x10002576
mov ebx, dword [ebp - 0x1c]
push ebx
mov dword [edi + 0x18], ebx
call fcn.10010ed5
add esp, 4
mov dword [edi + 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.100126c0
mov eax, dword [edi + 0x14]
add esp, 0xc
add eax, 5
add eax, dword [esi + 1]
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x61f99431
mov esi, 0x8413a336
and esi, ebp
nop
pop esi
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.10002790
add esp, 8
test al, al
jne 0x100025a9
mov byte [ebp - 0x11], al
jmp 0x100025a9
call fcn.1001c67b
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
push esi
push dword [edi + 0x14]
push ebx
call fcn.100126c0
call fcn.1001c67b
lea eax, [ebx + esi]
push eax
mov eax, dword [edi + 0x14]
add eax, esi
push eax
call fcn.10002790
add esp, 0x14
neg al
sbb al, al
and byte [ebp - 0x11], al
push ebp
mov ebp, 0xc1a78f79
mov ebp, 0x623e1cfb
sbb ebp, edx
pop ebp
cmp byte [ebp - 0x11], 0
je 0x10002679
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push 0x40
push ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002679
mov eax, dword [ebp - 0x20]
push ebx
push 0x90
push dword [esi + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], ebx
call fcn.10012c40
push dword [esi + 0x14]
push dword [esi + 8]
call fcn.10002790
add esp, 0x14
push edi
mov edi, 0xd606b6e9
or edi, ebx
nop
pop edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.1001c67b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov dword [ebp - 0x28], eax
setne byte [ebp - 0x11]
push edx
mov edx, 0x5e0d3def
mov edx, 0x13b75e07
add edx, esp
nop
pop edx
cmp dword [ebp - 0x28], 0
jne 0x10002685
mov eax, dword [ebp + 8]
push eax
call fcn.100026d0
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call fcn.100022c0
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret