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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100290c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100426b8], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
jne 0x1000b08c
mov edi, dword [0x10042120]
test edi, edi
je 0x1000b08a
lea eax, [edi + 7]
mov dword [0x1004228c], eax
test eax, eax
je 0x1000b08a
cmp byte [0x100422f9], 1
jne 0x1000b058
push 6
mov edx, 0x1000afc0
mov ecx, edi
call fcn.100020a0
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x1000b08c
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push edi
call esi
push 6
push 0x1000afe0
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push edi
call esi
mov edi, dword [ebp - 0x24]
jmp 0x1000b08c
mov edi, ecx
cmp dword [0x10042610], 0
je 0x1000b0f1
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x1000b0f6
call fcn.10006490
cmp eax, 0xffffffff
je 0x1000b0ce
cmp dword [0x10042714], 1
jne 0x1000b0c2
push 0
push 0
push 0
push 0
push 2
call dword [sym.imp.USER32.dll_mouse_event]
mov dword [0x10042714], 1
jmp 0x1000b0f1
cmp dword [0x10042714], 1
jne 0x1000b0f1
push 0
push 0
push 0
push 0
push 4
call dword [sym.imp.USER32.dll_mouse_event]
mov dword [0x10042714], 0
mov eax, dword [0x10042688]
cmp dword [0x10042414], 0
je 0x1000b249
mov dword [0x100422dc], 0
mov dword [0x10042728], 0
cmp dword [eax], 0
jbe 0x1000b22f
mov eax, dword [0x11dd6adc]
test eax, eax
jne 0x1000b135
mov dword [0x10042134], 7
jmp 0x1000b144
cmp eax, 1
jne 0x1000b144
mov dword [0x10042134], 5
mov ecx, edi
call fcn.1000aca0
mov ecx, dword [0x100421f0]
mov esi, eax
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov ecx, dword [0x10042644]
mov ecx, dword [ecx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x11dd6998]
mov ecx, dword [ecx]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea ecx, [eax + edx]
mov dword [ebp - 0x2c], ecx
mov eax, dword [0x100422ac]
mov ecx, 0x11dd7b14
mov edx, dword [ebp - 0x2c]
push 7
mov edx, dword [edx + eax]
call fcn.10006180
add esp, 4
cmp esi, 0xffffffff
je 0x1000b22f
push dword [0x10042134]
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.10006180
add esp, 4
test al, al
je 0x1000b215
movss xmm1, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
addss xmm1, dword [0x10026554]
movss xmm2, dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x18]
push edi
push eax
sub esp, 0xc
unpcklps xmm2, xmm1
mov ecx, esp
movss dword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x38]
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
call fcn.10004510
test al, al
je 0x1000b215
movq xmm0, qword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movq qword [0x11dd7b08], xmm0
movss xmm0, dword [ebp - 0x18]
mov dword [0x11dd7b10], eax
movss dword [0x11dd67b0], xmm0
mov al, 1
mov byte [0x100422f9], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020ae5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor al, al
mov byte [0x100422f9], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020ae5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [0x100422dc], 0
je 0x1000b2d0
mov dword [0x10042414], 0
mov dword [0x10042728], 0
cmp dword [eax], 0
jbe 0x1000b36c
call fcn.10006490
mov ecx, dword [0x100421f0]
mov esi, eax
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x10042644]
mov ecx, dword [ecx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x11dd6998]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
lea ecx, [eax + edx]
mov dword [ebp - 0x24], ecx
mov eax, dword [0x100422ac]
mov ecx, 0x11dd7b14
mov edx, dword [ebp - 0x24]
push 7
mov edx, dword [edx + eax]
call fcn.10006180
add esp, 4
cmp esi, 0xffffffff
je 0x1000b22f
push 7
jmp 0x1000b352
cmp dword [0x10042728], 0
je 0x1000b36c
mov dword [0x10042414], 0
mov dword [0x100422dc], 0
cmp dword [eax], 0
jbe 0x1000b36c
call fcn.10006490
mov ecx, dword [0x100421f0]
mov esi, eax
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x10042644]
mov ecx, dword [ecx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x11dd6998]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
lea ecx, [eax + edx]
mov dword [ebp - 0x24], ecx
mov eax, dword [0x100422ac]
mov ecx, 0x11dd7b14
mov edx, dword [ebp - 0x24]
push 7
mov edx, dword [edx + eax]
call fcn.10006180
add esp, 4
cmp esi, 0xffffffff
je 0x1000b22f
push 5
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.10006180
add esp, 4
test al, al
je 0x1000b22f
jmp 0x1000b1b7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov byte [0x100422f9], 0
pop esi
call fcn.10020ae5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret