Function at 0x1000b730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x1000b762
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x1000b74e
mov byte [ebp - 1], 1
jmp 0x1000b752
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1000b769
mov edx, dword [ebp + 0xc]
and edx, 4
jne 0x1000b769
xor al, al
jmp 0x1000ba07
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
cmp dword [ebp + 8], 0
jne 0x1000b789
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
cmp ecx, 0xfc
jne 0x1000b7a0
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x1000b7b2
movzx ecx, byte [ebp - 0x60]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 5
jae 0x1000b8f3
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x60]
call fcn.10005090
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx]
cmp eax, 0xe9
jne 0x1000b830
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x1000b830
mov byte [ebp - 0x60], 0
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 5]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x1000b7a8
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
cmp ecx, 0xeb
jne 0x1000b87f
mov edx, dword [ebp + 0xc]
and edx, 2
je 0x1000b87f
mov byte [ebp - 0x60], 0
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 2]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x1000b7a8
movzx ecx, byte [ebp - 0x55]
cmp ecx, 0xe8
jne 0x1000b8c8
movzx edx, byte [ebp - 0x60]
add edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x4b]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov byte [eax + 0x20], pe_nt_image_headers32
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x25]
sub eax, dword [ebp - 0x28]
neg eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov dword [ecx + 0x21], eax
mov edx, dword [ebp - 0x10]
add edx, 5
mov dword [ebp - 0x10], edx
jmp 0x1000b7a8
movzx eax, byte [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x20]
push ecx
call fcn.10001c80
add esp, 0xc
movzx edx, byte [ebp - 0x60]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
jmp 0x1000b7a8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x20
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x40
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ecx, dword [ebp + 8]
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x38], xmm0
mov edx, dword [ebp - 8]
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x1000b96f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
push 0x90
lea eax, [ebp - 0x38]
push eax
call fcn.10001d60
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx + 0x20], 0xe9
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
lea ecx, [edx + ecx + 0x25]
sub ecx, eax
neg ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [edx + 0x21], ecx
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x38], 0xe9
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
add eax, 5
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 8]
neg eax
mov dword [ebp + edx - 0x38], eax
movups xmm0, xmmword [ebp - 0x38]
mov edx, dword [ebp + 8]
movups xmmword [edx], xmm0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0x60
lea edx, [ebp - 0x14]
push edx
push 0x40
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov al, 1
mov esp, ebp
pop ebp
ret 0xc