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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x5c
push ebx
mov ebx, ecx
test eax, eax
je 0x1000f30a
cmp dword [ebx + 0xc], 0
mov edx, dword [ebp + 0xc]
je 0x1000f156
test dl, 4
je 0x1000f30a
xor ecx, ecx
push esi
mov dword [ebx + 0xc], ecx
lea esi, [eax + 1]
cmp byte [eax], 0xfc
push edi
cmovne esi, eax
mov dword [ebp + 8], ecx
mov eax, edx
mov dword [ebp - 4], esi
and eax, 2
mov dword [ebp - 0xc], eax
mov edi, eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.10006130
add dword [ebx + 0xc], eax
mov al, byte [esi]
mov dword [ebp - 0x10], edi
cmp al, 0xe9
jne 0x1000f1b5
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1000f1e2
mov eax, dword [esi + 1]
mov edi, ecx
add esi, 5
mov byte [ebp - 0x5c], 0
add esi, eax
mov dword [ebx + 0xc], 0
mov edx, esi
mov dword [ebp + 8], 0
mov dword [ebp - 4], edx
jmp 0x1000f22c
cmp al, 0xeb
jne 0x1000f1df
test edi, edi
je 0x1000f1e7
movzx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov byte [ebp - 0x5c], 0
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], edx
mov dword [ebp + 8], 0
jmp 0x1000f22c
mov ecx, dword [ebp - 0xc]
mov edi, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
lea edx, [ecx + 0x20]
add edx, ebx
cmp byte [ebp - 0x51], 0xe8
jne 0x1000f214
movzx eax, byte [ebp - 0x5c]
sub eax, ecx
mov byte [edx], 0xe8
sub eax, ebx
add eax, 0xffffffdb
add eax, dword [ebp - 0x47]
add eax, esi
mov dword [ecx + ebx + 0x21], eax
add ecx, 5
mov dword [ebp + 8], ecx
jmp 0x1000f229
movzx edi, byte [ebp - 0x5c]
push edi
push esi
push edx
call fcn.10003440
add esp, 0xc
add dword [ebp + 8], edi
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx eax, byte [ebp - 0x5c]
add esi, eax
cmp dword [ebx + 0xc], 5
jb 0x1000f176
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x20]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x14]
mov dword [ebx + 4], edx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x14], 5
mov dword [ebp - 8], 0
call edi
test byte [ebp + 0xc], 1
mov esi, dword [ebp - 4]
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebx + 0x10], xmm0
je 0x1000f29b
push dword [ebx + 0xc]
lea eax, [ebp - 0x34]
push 0x90
push eax
call fcn.100034a0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x34], 0xe9
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x60
mov byte [ecx + ebx + 0x20], 0xe9
mov eax, dword [ebx + 0xc]
sub eax, ecx
mov dword [ebp - 0x1c], 0
sub eax, ebx
add eax, 0xffffffdb
add eax, esi
mov dword [ecx + ebx + 0x21], eax
mov eax, dword [ebx + 8]
sub eax, esi
sub eax, 5
mov dword [ebp - 0x33], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
call edi
movups xmm0, xmmword [ebp - 0x34]
lea eax, [ebp - 8]
push eax
movups xmmword [esi], xmm0
lea eax, [ebp - 0x14]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc