Function at 0x18d27110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push 0x1e
call fcn.18d33770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x18d2779c
mov dword [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x40
push 0x1e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 0x11c], pe_nt_image_headers32
mov dword [ebp - 0x11b], 0
mov byte [ebp - 0x110], 0xe9
mov dword [ebp - 0x10f], 0
mov edx, 0x800f
mov word [ebp - 0x100], dx
mov dword [ebp - 0xfe], 0
mov dword [ebp - 0xf8], 0
push 0xec
push 0
lea eax, [ebp - 0xf4]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x11d], 0
movzx ecx, byte [ebp - 0x11d]
test ecx, ecx
jne 0x18d276de
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0x144], edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.18d27f20
add esp, 8
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x128]
and edx, 0x1000
je 0x18d2721d
jmp 0x18d276de
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp + 8]
cmp ecx, 5
jb 0x18d272c5
mov dword [ebp - 0x150], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.18d27090
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0x18d272a3
jmp 0x18d276de
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], 5
mov byte [ebp - 0x11d], 1
jmp 0x18d27674
movzx edx, byte [ebp - 0x13a]
cmp edx, 0xe8
jne 0x18d2736b
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x124]
imul eax, eax, 0xc
lea ecx, [ebp + eax - 0xf8]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x178]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.18d27000
add esp, 8
push eax
call fcn.18d27090
add esp, 0x14
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x14
jle 0x18d27350
jmp 0x18d276de
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 5
jmp 0x18d27674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xfd
cmp ecx, 0xe9
jne 0x18d2748d
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.18d27000
add esp, 8
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.18d27020
add esp, 8
movzx eax, al
test eax, eax
je 0x18d273f3
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp - 0x158]
jbe 0x18d273d6
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x17c], edx
jmp 0x18d273e2
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x114], ecx
jmp 0x18d27488
mov dword [ebp - 0x15c], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.18d27090
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0x18d2745b
jmp 0x18d276de
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], 5
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x114]
sbb eax, eax
add eax, 1
mov byte [ebp - 0x11d], al
jmp 0x18d27674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xf0
cmp ecx, 0x70
je 0x18d274c5
movzx edx, byte [ebp - 0x13a]
cmp edx, 0xe3
je 0x18d274c5
movzx eax, byte [ebp - 0x139]
and eax, 0xf0
cmp eax, 0x80
jne 0x18d275ed
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.18d27000
add esp, 8
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.18d27020
add esp, 8
movzx edx, al
test edx, edx
je 0x18d27534
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x160]
jbe 0x18d27517
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x184], ecx
jmp 0x18d27523
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x114], eax
jmp 0x18d275e8
movzx ecx, byte [ebp - 0x13a]
cmp ecx, 0xe3
jne 0x18d27554
mov byte [ebp - 0x11d], 0
jmp 0x18d276de
mov dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x188]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.18d27060
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0x18d275bc
jmp 0x18d276de
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x140]
push edx
call fcn.18d270c0
add esp, 8
lea eax, [ebp - 0x100]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 6
jmp 0x18d27674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xfe
cmp ecx, 0xc2
je 0x18d2765d
movzx edx, byte [ebp - 0x13a]
and edx, 0xfd
cmp edx, 0xe9
je 0x18d2765d
movzx eax, byte [ebp - 0x138]
and eax, 0xc7
cmp eax, 5
jne 0x18d27643
movzx ecx, byte [ebp - 0x13a]
cmp ecx, 0xff
jne 0x18d27643
movzx edx, byte [ebp - 0x136]
cmp edx, 4
je 0x18d2765d
movzx eax, byte [ebp - 0x13a]
cmp eax, 0xff
jne 0x18d27674
movzx ecx, byte [ebp - 0x139]
cmp ecx, 0x25
jne 0x18d27674
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x114]
sbb eax, eax
add eax, 1
mov byte [ebp - 0x11d], al
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp - 0x114]
jae 0x18d2769a
movzx edx, byte [ebp - 0x140]
cmp dword [ebp - 0x14c], edx
je 0x18d2769a
mov byte [ebp - 0x11d], 0
jmp 0x18d276de
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x108]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
movzx eax, byte [ebp - 0x140]
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x108], ecx
jmp 0x18d271d3
movzx edx, byte [ebp - 0x11d]
test edx, edx
je 0x18d27789
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 0x168], 0
jmp 0x18d27724
mov edx, dword [ebp - 0x168]
add edx, 1
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x124]
jge 0x18d27787
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0xf8]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 4]
add edx, dword [ebp + ecx - 0xf0]
mov eax, dword [ebp - 0x16c]
sub eax, edx
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0xf4]
mov ecx, dword [ebp - 0x170]
mov dword [ecx + edx], eax
jmp 0x18d27715
jmp 0x18d2779c
mov edx, dword [ebp - 4]
push edx
call fcn.18d33970
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret