Function at 0x1005ec30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1019a784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, 0x70
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010635b
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1005ec75
mov eax, dword [ebp - 0x2c]
jmp 0x1005f2d3
call fcn.1005e8a0
mov dword [ebp - 0x20], 0
jmp 0x1005ec8c
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0xc]
jge 0x1005ee71
lfence
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*8]
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov dword [eax + edx], ecx
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx*8 + 4]
mov dword [eax + edx + 4], ecx
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov dword [eax + edx + 0xc], 0
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 8], 0
push 0x58
push 0
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x10]
push edx
call fcn.100f5810
add esp, 0xc
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov dword [ecx + eax + 0x68], 0
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov dword [eax + edx + 0x6c], 0
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
push eax
call fcn.1005f700
add esp, 4
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx], eax
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 4]
push edx
call fcn.1005f700
add esp, 4
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 4], eax
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1005e920
add esp, 0x10
test eax, eax
je 0x1005ed8a
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov dword [eax + edx + 0xc], 0
jmp 0x1005ee6c
lfence
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x10]
push eax
push 5
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
push eax
call fcn.1005e660
add esp, 0xc
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 8], eax
push 0x102
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call fcn.1005ea00
add esp, 8
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 0x68], eax
push 0x103
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call fcn.1005ea00
add esp, 8
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 0x6c], eax
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 8], 5
jb 0x1005ee6c
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
cmp dword [eax + edx + 0x68], 0
je 0x1005ee29
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
cmp dword [edx + ecx + 0x6c], 0
jne 0x1005ee6c
lfence
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0x1c]
push edx
mov eax, dword [ecx + eax + 0x18]
push eax
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0x14]
push eax
mov ecx, dword [edx + ecx + 0x10]
push ecx
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx]
push ecx
call fcn.1005fb60
add esp, 0x14
imul edx, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov dword [ecx + edx + 0xc], eax
jmp 0x1005ec83
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.1005e9c0
add esp, 8
test eax, eax
je 0x1005f2bf
lfence
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1005f9d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], 0
jmp 0x1005eec9
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
jge 0x1005f2ae
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0xc], 0
je 0x1005f2a9
lfence
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
push 0x40
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005f266
lfence
lea eax, [ebp - 8]
push eax
push 0x40
push 0x74
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005f220
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
add eax, 0x2c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
jmp 0x1005ef6e
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + edx + 8]
jae 0x1005efb5
lfence
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov cl, byte [ecx + eax]
mov byte [edx], cl
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dl, byte [edx]
mov byte [ecx + eax + 0x4c], dl
jmp 0x1005ef65
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x68], 0
jne 0x1005efd1
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
cmp dword [eax + edx + 0x6c], 0
je 0x1005eff0
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1005f2f0
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x1005f004
lfence
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + edx + 8]
mov dword [ebp - 0x24], ecx
imul edx, dword [ebp - 0x1c], 0x70
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + edx]
mov ecx, dword [ebp - 0x18]
add edx, dword [ecx + eax + 8]
push edx
mov edx, dword [ebp - 0x24]
push edx
call fcn.1005e7e0
add esp, 8
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x10]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0x2c
push edx
call fcn.10023c10
add esp, 0xc
imul eax, dword [ebp - 0x1c], 0x70
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov eax, dword [edx + eax + 4]
cmp eax, dword [esi + ecx]
jae 0x1005f088
imul ecx, dword [ebp - 0x1c], 0x70
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov ecx, dword [eax + ecx]
sub ecx, dword [esi + edx + 4]
mov dword [ebp - 0x30], ecx
jmp 0x1005f0a0
imul edx, dword [ebp - 0x1c], 0x70
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov edx, dword [ecx + edx + 4]
sub edx, dword [esi + eax]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x7fff0000
jbe 0x1005f13f
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
add eax, 0xc
mov dword [ebp - 0x24], eax
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1005e7e0
add esp, 8
mov dword [ebp - 0x24], eax
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
add ecx, 0xc
mov edx, dword [ebp - 0x24]
sub edx, ecx
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x24], edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.1005e7e0
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x1005f16a
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x24], eax
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1005e7e0
add esp, 8
mov dword [ebp - 0x24], eax
imul edx, dword [ebp - 0x1c], 0x70
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + eax + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + edx + 8]
mov dword [eax + 4], edx
imul eax, dword [ebp - 0x1c], 0x70
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + ecx + 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + eax]
mov dword [ecx], eax
imul ecx, dword [ebp - 0x1c], 0x70
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + edx + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + ecx + 4]
mov dword [edx + 8], ecx
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
cmp dword [ecx], 0
je 0x1005f1df
lfence
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
add ecx, 0x2c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*8]
mov dword [edx], ecx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x74
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
cmp dword [edx], 0
je 0x1005f281
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x1005f2a9
lfence
push 1
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
push eax
call fcn.1005fc30
add esp, 8
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 0xc], 0
jmp 0x1005eec0
call fcn.1005f630
mov eax, dword [ebp - 0x14]
push eax
call fcn.1005e570
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10106340
add esp, 4
call fcn.1005eb30
mov eax, dword [ebp - 0x2c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e560
mov esp, ebp
pop ebp
ret