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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov al, byte [0x1006ef10]
test al, al
je 0x10040f35
mov ecx, edi
sete byte [0x1006ef10]
mov dword [0x1006ef2c], ecx
jmp 0x10040f3b
mov ecx, dword [0x1006ef2c]
cmp byte [0x1006ef11], 0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x1004108d
mov eax, edi
sub eax, ecx
cmp eax, 0xc8
jb 0x1004108d
mov eax, dword [0x1006efc4]
cmp dword [eax], 0
je 0x1004115d
mov eax, dword [0x1006ef64]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 8]
push eax
push 0x40
push 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call ebx
movq xmm0, qword [esi + 0x1d0]
movq qword [ebp - 0x14], xmm0
mov eax, dword [esi + 0x1d8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push 0xc
push eax
call ebx
movss xmm1, dword [0x1006eea8]
subss xmm1, dword [ebp - 0x10]
movss xmm0, dword [0x10062f60]
comiss xmm0, xmm1
jbe 0x10041022
comiss xmm1, dword [0x1006307c]
jbe 0x10041022
cmp byte [0x1006ef11], 0
lea eax, [ebp - 8]
mov esi, dword [0x1006ef90]
push eax
push 0x40
push 2
push esi
sete byte [0x1006ef11]
call ebx
mov eax, 0x974
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1006ef64]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 8]
push eax
push 0x40
push 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call ebx
movq xmm0, qword [esi + 0x1d0]
movq qword [ebp - 0x14], xmm0
mov eax, dword [esi + 0x1d8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push 0xc
push eax
call ebx
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movq qword [0x1006eea4], xmm0
mov dword [0x1006eeac], eax
mov dword [0x1006ef2c], edi
mov cl, byte [0x1006ef0f]
test cl, cl
je 0x100410ec
mov eax, edi
sub eax, dword [0x1006ef28]
cmp eax, 0x1388
jb 0x100410e3
mov esi, dword [0x1006ef9c]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
sub esi, 0xffffff80
push esi
call ebx
lea eax, [ebp - 8]
mov dword [esi], 0x10001
push eax
push dword [ebp - 8]
push 4
push esi
call ebx
mov eax, dword [0x1006ef9c]
call dword [0x1006ef84]
mov cl, byte [0x1006ef0f]
mov dword [0x1006ef28], edi
test cl, cl
sete byte [0x1006ef0f]
cmp byte [0x1006ef0e], 0
je 0x1004115d
mov esi, dword [0x1006ef50]
cmp dword [esi + 0xb0], 0
jne 0x1004115d
mov edi, dword [esi + 0x20c]
lea eax, [ebp - 8]
push eax
push 0x40
add esi, 0x20c
push 1
push esi
call ebx
lea eax, [ebp - 8]
mov byte [esi], 0
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
test edi, edi
je 0x1004114f
sub esp, 0x18
mov ecx, esp
push str.TESTED
call fcn.100429d0
movss xmm0, dword [0x10062f9c]
xor cl, cl
call fcn.10045ec0
add esp, 0x18
cmp byte [0x1006ef0e], 0
sete byte [0x1006ef0e]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005465b
mov esp, ebp
pop ebp
ret