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

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x6c
mov ecx, dword [0x6bb07024]
mov dword [esp + 0x1c], edx
test ecx, ecx
jle 0x6bac1e42
mov eax, dword [0x6bb07020]
xor esi, esi
mov edx, dword [eax + 4]
cmp ebx, edx
jb 0x6bac1c99
mov edi, dword [eax + 8]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6bac1d70
add esi, 1
add eax, 0xc
cmp esi, ecx
jne 0x6bac1c84
mov dword [esp], ebx
call fcn.6bac26a0
test eax, eax
mov edi, eax
je 0x6bac1e69
lea edx, [esi + esi*2]
mov esi, dword [0x6bb07020]
shl edx, 2
add esi, edx
mov dword [esi + 8], eax
mov dword [esi], 0
mov dword [esp + 0x18], edx
call fcn.6bac2780
mov edx, dword [esp + 0x18]
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [esp + 4], eax
mov eax, dword [0x6bb07020]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + edx + 4]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
mov edx, dword [esp + 0x18]
je 0x6bac1e49
mov eax, dword [esp + 0x54]
cmp eax, 4
jne 0x6bac1df1
add dword [0x6bb07024], 1
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x6bac1e79
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x6bac1d78
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x6bac1d26
cmp eax, 0x40
je 0x6bac1d4f
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call esi
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6bac1d63
cmp eax, 4
je 0x6bac1d63
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call esi
sub esp, 0x10
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x6bac1d1f
mov eax, dword [esp + 0x4c]
add edx, dword [0x6bb07020]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6bac1d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6bac1c00
xor esi, esi
jmp 0x6bac1ca3
mov eax, dword [0x6bb07020]
mov eax, dword [eax + edx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6bac1c00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6bac1c00
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6bac1c00
jmp fcn.6bac1ea0