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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
imul eax, dword [ebp + 8], 0x30
add eax, dword [0x10145bc0]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
cmp dword [ebp + 0xc], 0
je 0x10068427
mov eax, dword [ebp + 8]
push eax
call fcn.10068290
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10068427
mov eax, dword [ebp - 0x1c]
jmp 0x10068600
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x18]
and dl, 1
movzx eax, dl
test eax, eax
je 0x10068449
mov ecx, dword [ebp - 0x18]
sub ecx, 5
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], 0
jne 0x100684ba
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
cmp edx, 0xe9
jne 0x100684ba
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 1]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 5]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
add edx, 8
cmp edx, dword [ebp - 0x24]
je 0x100684ba
mov eax, dword [ebp - 0x24]
sub eax, 8
mov dword [ebp - 0x28], eax
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
push fcn.100683d0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
call edx
cmp esi, esp
call fcn.1005d076
jmp 0x10068600
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1005d076
test eax, eax
jne 0x100684e5
mov eax, 0xa
jmp 0x10068600
cmp dword [ebp + 0xc], 0
je 0x10068536
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, 8
mov ecx, dword [ebp - 0x18]
add ecx, 5
sub eax, ecx
mov edx, dword [ebp - 0x2c]
mov dword [edx + 1], eax
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x18]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10068534
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov byte [edx], 0xeb
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 0xf9
jmp 0x10068572
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x18]
and dl, 1
movzx eax, dl
test eax, eax
je 0x1006855d
push 7
mov ecx, dword [ebp - 4]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1005dba7
add esp, 0xc
jmp 0x10068572
push 5
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1005dba7
add esp, 0xc
mov esi, esp
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1005d076
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1005d076
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.1005d076
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10068100
add esp, 0xc
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 1
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x18]
and cl, 0xfd
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x18], cl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x18]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 4]
mov byte [eax + 0x18], dl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x10068624]
call fcn.1005cb49
pop eax
pop edx
pop edi
pop esi
add esp, 0x30
cmp ebp, esp
call fcn.1005d076
mov esp, ebp
pop ebp
ret 0xc