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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, edx
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebp
mov edi, ecx
call fcn.1007cca0
cmp dword [0x1015690c], ebx
je 0x1007cf7f
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 0x1c]
push 0x1c
push eax
push edi
call esi
cmp dword [esp + 0x2c], 0x1000
jne 0x1007cf78
test byte [esp + 0x30], 0xf0
je 0x1007cf78
push 0x1c
lea eax, [esp + 0x20]
push eax
push ebp
call esi
cmp dword [esp + 0x2c], 0x1000
jne 0x1007cf78
test byte [esp + 0x30], 0xf0
je 0x1007cf78
mov edx, dword [0x1015d138]
xor eax, eax
test edx, edx
je 0x1007cd80
mov ecx, dword [0x1015d130]
cmp edi, dword [ecx]
je 0x1007ce83
inc eax
add ecx, 0x2c
cmp eax, edx
jb 0x1007cd70
mov eax, dword [0x1015d13c]
test eax, eax
je 0x1007cd9b
nop dword [eax]
cmp dword [eax + 4], ebx
jne 0x1007ce13
mov eax, dword [eax]
test eax, eax
jne 0x1007cd90
push 0x40
push 0x3000
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000
push eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1007cf71
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007cf71
lea edx, [eax + 0x20]
mov dword [eax + 4], ebx
mov esi, edx
mov dword [eax + 8], ebx
sub esi, eax
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x1007cde8
mov ecx, dword [0x1015d13c]
mov dword [eax], ecx
mov dword [0x1015d13c], eax
test eax, eax
je 0x1007cf71
mov ebp, dword [eax + 4]
mov ecx, dword [ebp]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
call fcn.1007d050
test eax, eax
je 0x1007cf63
mov ecx, dword [0x1015d130]
test ecx, ecx
jne 0x1007ce96
push 0x580
push ecx
push dword [0x1015690c]
mov dword [0x1015d134], 0x20
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [0x1015d130], ecx
test ecx, ecx
jne 0x1007ced0
mov ecx, ebp
mov ebx, 9
call fcn.1007bfd0
jmp 0x1007cf84
cmp eax, 0xffffffff
je 0x1007cd80
mov ebx, 3
jmp 0x1007cf84
mov eax, dword [0x1015d138]
mov edx, dword [0x1015d134]
cmp eax, edx
jb 0x1007ced5
imul eax, edx, 0x58
push eax
push ecx
push 0
push dword [0x1015690c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
test ecx, ecx
je 0x1007ce72
mov eax, dword [0x1015d134]
add eax, eax
mov dword [0x1015d130], ecx
mov dword [0x1015d134], eax
mov eax, dword [0x1015d138]
imul esi, eax, 0x2c
inc eax
mov dword [0x1015d138], eax
add esi, ecx
je 0x1007ce72
mov eax, dword [esp + 0x1c]
mov cl, byte [esi + 0x14]
mov edx, dword [esp + 0x28]
and cl, 0xf8
mov ebp, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov al, dl
and al, 1
mov dword [esi + 8], ebp
or cl, al
mov eax, dword [esi + 0x18]
xor eax, dword [esp + 0x2c]
and eax, 0xf
mov byte [esi + 0x14], cl
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
test edx, edx
je 0x1007cf4c
mov eax, dword [edi - 5]
mov dword [esi + 0xc], eax
mov ax, word [edi - 1]
mov word [esi + 0x10], ax
mov al, byte [edi + 1]
mov byte [esi + 0x12], al
jmp 0x1007cf57
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1007cf84
mov dword [eax], ebp
jmp 0x1007cf84
mov ecx, ebp
mov ebx, 8
call fcn.1007bfd0
jmp 0x1007cf84
mov ebx, 9
jmp 0x1007cf84
mov ebx, 7
jmp 0x1007cf84
mov ebx, 2
xor ecx, ecx
mov eax, 0x10156910
xchg dword [eax], ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret 4