Function at 0x1000ba88
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x1000ba9a
mov dword [eax], esi
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x1000baa3
mov dword [edi], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1000baac
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1004715c], eax
je 0x1000bac4
mov eax, 0x10dd
jmp 0x1000bc9d
mov eax, dword [0x10047160]
cmp eax, esi
jne 0x1000bc9d
mov ecx, dword [ebp + 8]
cmp ecx, esi
jne 0x1000bae0
push 6
pop eax
jmp 0x1000bc9d
mov eax, dword [ecx]
cmp eax, esi
push ebx
jne 0x1000baf4
push 6
pop eax
mov dword [0x10047160], eax
jmp 0x1000bc51
push eax
call fcn.1000b6b8
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp + 0x14], ebx
call fcn.1000b6b8
test edi, edi
mov dword [ebp + 0xc], eax
je 0x1000bb10
mov dword [edi], ebx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1000bb19
mov dword [ecx], eax
push 0x18
call fcn.10010b12
mov edi, eax
test edi, edi
pop ecx
jne 0x1000bb2f
push 8
pop ebx
jmp 0x1000bc29
push ebx
call fcn.1000b5eb
mov esi, eax
test esi, esi
pop ecx
je 0x1000bb27
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000bb45
mov dword [eax], esi
mov eax, ebx
xor ebx, ebx
jmp 0x1000bb4e
mov eax, dword [ebp + 0x10]
and dword [ebp + 0x18], 0
lea ecx, [ebp + 0x18]
push ecx
push 0
push eax
mov dword [ebp - 8], eax
lea eax, [ebx + esi]
push eax
call fcn.1000c864
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x10], eax
jne 0x1000bb85
push dword [ebp - 8]
mov ebx, eax
sub ebx, dword [ebp + 0x14]
call fcn.1000b59c
test eax, eax
pop ecx
jne 0x1000bb85
cmp ebx, 5
jl 0x1000bb4b
cmp ebx, 5
jge 0x1000bb9f
cmp dword [0x10047158], 0
push 9
pop ebx
jne 0x1000bc2f
jmp 0x1000bc29
cmp ebx, 0x12
jbe 0x1000bba8
push 6
jmp 0x1000bb29
mov eax, dword [ebp + 0x14]
add eax, ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
lea eax, [ebx + esi]
lea edx, [eax + 5]
lea ecx, [esi + 0x17]
mov byte [ecx], bl
mov byte [eax], 0xe9
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 0x18]
sub edx, dword [ebp + 0xc]
inc eax
mov dword [eax], edx
push ecx
add eax, 4
push eax
call fcn.1000b545
and dword [ebp - 4], 0
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [ebp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x1000bc21
push dword [ebp + 0x14]
call fcn.1000b655
test eax, eax
pop ecx
mov dword [ebp + 0x18], eax
je 0x1000bc74
cmp word [eax + 0x1c], 0x6544
je 0x1000bc74
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
push ecx
push 0x40
push 0x40
push eax
call ebx
test eax, eax
jne 0x1000bc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x10047160], ebx
test esi, esi
je 0x1000bc41
mov eax, dword [0x10047154]
mov dword [esi + 0x18], eax
mov dword [0x10047154], esi
test edi, edi
je 0x1000bc4c
push edi
call fcn.100103f6
pop ecx
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dword [0x10047164], ecx
jmp 0x1000bc9c
mov eax, dword [ebp + 0x18]
mov word [eax + 0x1c], 0x6544
mov word [eax + 0x1e], 0x6f74
mov word [eax + 0x20], 0x7275
mov word [eax + 0x22], 0x2173
mov eax, dword [ebp + 8]
and dword [edi + 4], 0
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x1004716c]
mov dword [edi], eax
mov dword [0x1004716c], edi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x14