Function at 0x100c86e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov eax, edx
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
push edi
test eax, eax
jne 0x100c8705
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c9ba0], eax
je 0x100c8721
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x101c9ba8]
test eax, eax
jne 0x100c89c1
test ebx, ebx
je 0x100c8748
mov ecx, dword [ebx]
test ecx, ecx
jne 0x100c8756
mov dword [0x101c9ba8], 6
mov dword [0x101c9b88], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 8], esi
xor edi, edi
call fcn.100c7be0
mov ecx, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 4], ebx
call fcn.100c7be0
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x100c8785
cmp dword [0x101c9ba4], esi
jne 0x100c89b7
jmp 0x100c8996
push 0x18
call fcn.101161a1
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c879d
lea esi, [eax + 8]
jmp 0x100c8996
mov ecx, ebx
call fcn.100c8030
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x100c87b5
lea esi, [eax + 8]
jmp 0x100c8996
mov esi, dword [ebp - 4]
lea eax, [ebx + 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movq qword [eax], xmm0
mov edx, ebx
lea eax, [ebx + 0x1e]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
mov ebx, esi
mov ecx, edx
push esi
mov dword [ebp - 0x24], ebx
call fcn.100c8b00
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub eax, ebx
mov ebx, esi
sub ebx, dword [ebp - 4]
add eax, esi
add ecx, eax
mov al, bl
mov dl, cl
mov dword [ebp - 0xc], ecx
sub dl, byte [ebp - 8]
and al, 7
mov ecx, dword [ebp - 0x20]
shl dl, 3
xor dl, al
mov eax, dword [ebp - 0x10]
mov byte [ecx + eax], dl
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 8
jae 0x100c883b
mov ecx, dword [ebp - 0x24]
call fcn.100c7c50
test eax, eax
jne 0x100c883b
mov edx, dword [ebp - 0xc]
cmp ebx, 5
jb 0x100c87d5
jmp 0x100c886a
cmp ebx, 5
jae 0x100c8867
mov ecx, esi
call fcn.100c7cb0
test eax, eax
je 0x100c885e
mov ecx, dword [ebp - 4]
add esi, eax
mov ebx, esi
sub ebx, ecx
cmp ebx, 5
jb 0x100c8840
mov edx, dword [ebp - 0xc]
jmp 0x100c886d
cmp ebx, 5
jb 0x100c8988
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x10], 8
ja 0x100c8988
mov esi, dword [ebp - 0x28]
cmp edx, esi
jbe 0x100c887f
int3
mov eax, dword [ebp - 8]
sub dl, al
push ebx
push ecx
mov byte [esi], dl
mov byte [eax + 0x36], bl
add eax, 0x20
push eax
call fcn.10118c80
add esp, 0xc
cmp ebx, 0x19
jbe 0x100c88a6
mov esi, 6
jmp 0x100c8996
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 0x1e]
mov esi, dword [ebp - 4]
mov dword [eax + 0x5c], 0
add esi, ebx
mov dword [eax + 0x44], ecx
lea ecx, [eax + 0x5c]
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx]
add ecx, eax
mov dword [eax + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.100c7bb0
cmp dword [ebp + 0x14], 0
je 0x100c892e
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
add esi, 0x48
mov edx, esi
mov byte [edx], 0x68
lea ecx, [edx + 0xf]
mov dword [edx + 1], eax
mov eax, dword [ebp + 0x14]
mov byte [edx + 5], 0x68
sub eax, ecx
mov dword [edx + 6], ecx
mov byte [edx + 0xa], 0xe9
mov dword [edx + 0xb], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
lea eax, [edx + 0x14]
sub ecx, eax
mov byte [edx + 0xf], 0xe9
mov dword [edx + 0x10], ecx
lea ecx, [edx + 0x14]
mov edx, dword [ebp - 0x14]
call fcn.100c7bb0
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x40
push ebx
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100c8954
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100c8996
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
mov dword [edi + 4], 0
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [0x101c9b9c]
mov dword [edi], eax
xor eax, eax
mov dword [0x101c9b9c], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x101c9ba4], 0
mov esi, 9
jne 0x100c899c
mov dword [0x101c9ba8], esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x100c89aa
mov ecx, eax
call fcn.100c8140
test edi, edi
je 0x100c89b7
push edi
call fcn.10115284
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x101c9b88], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14