Function at 0x1007ff10
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x100b6040]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x3c], ebx
test edi, edi
jne 0x1007ff55
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10082777
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100b7b5c], eax
je 0x1007ff7f
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10082777
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x100b7b60]
test eax, eax
jne 0x1008039f
test ebx, ebx
je 0x1007ffa6
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1007ffc2
mov dword [0x100b7b60], 6
mov dword [0x100b7b54], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10082777
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.1007f9c0
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.1007f9c0
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x18]
jne 0x1007fff5
cmp dword [0x100b7b44], ebx
jne 0x10080394
jmp 0x100803bd
push 0x18
call fcn.10082878
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.1007f530
mov ecx, dword [0x100b7b58]
add esp, 4
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x100b7b50]
test ecx, ecx
jne 0x1008003d
test eax, eax
je 0x10080050
mov ecx, eax
mov dword [0x100b7b58], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10080050
cmp edx, ebx
jb 0x10080050
cmp edx, edi
jbe 0x100800e4
mov ecx, eax
mov dword [0x100b7b58], ecx
test eax, eax
je 0x1008007e
mov edx, eax
mov eax, dword [edx + 8]
test eax, eax
je 0x1008006d
cmp eax, ebx
jb 0x1008006d
cmp eax, edi
jbe 0x100800e4
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x100b7b58], ecx
mov edx, ecx
test eax, eax
jne 0x1008005e
mov ecx, esi
mov edx, ebx
push edi
and ecx, 0xffff0000
call fcn.1007f800
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100803b6
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x100b7b50]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x100b7b58], ecx
mov dword [0x100b7b50], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x100800d0
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [esp + 0x1c]
jb 0x100803b6
cmp ebx, edi
ja 0x100803b6
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x100803b8
lea eax, [ebx + 0x38]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
movq qword [eax], xmm0
mov edx, ebx
lea eax, [ebx + 0x1e]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x6c]
mov dword [esp + 0x50], 0
test edx, edx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x6c], 0
cmovne ecx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], 0
mov edi, esi
movups xmmword [esp + 0x40], xmm0
test esi, esi
jne 0x1008019b
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100801b7
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x100b9824]
lea eax, [eax*8 + 0x100b9820]
push esi
push ecx
push eax
lea ecx, [esp + 0x4c]
call edx
mov esi, eax
mov edx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
mov ebx, esi
add eax, dword [esp + 0x30]
sub ebx, dword [esp + 0x18]
add edx, eax
mov cl, dl
mov dword [esp + 0x28], edx
sub cl, byte [esp + 0x13]
mov al, bl
shl cl, 3
and al, 7
or cl, al
mov eax, dword [esp + 0x34]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
cmp ecx, 8
jae 0x1008024c
mov al, byte [edi]
cmp al, 0xeb
je 0x1008024c
cmp al, 0xe9
je 0x1008024c
cmp al, 0xe0
je 0x1008024c
cmp al, 0xc2
je 0x1008024c
cmp al, 0xc3
je 0x1008024c
cmp al, 0xcc
je 0x1008024c
cmp al, 0xf3
jne 0x100802b4
cmp byte [edi + 1], 0xc3
je 0x1008024c
cmp al, 0x26
je 0x10080237
cmp al, 0x2e
je 0x10080237
cmp al, 0x36
je 0x10080237
cmp al, 0x3e
je 0x10080237
cmp al, 0x64
je 0x10080237
cmp al, 0x65
jne 0x10080243
cmp byte [edi + 1], 0xff
jne 0x10080243
cmp byte [edi + 2], 0x25
je 0x1008024c
cmp ebx, 5
jb 0x10080142
mov edi, dword [esp + 0x18]
cmp ebx, 5
jae 0x10080277
mov ecx, esi
call fcn.1007f5c0
test eax, eax
je 0x10080368
add esi, eax
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x10080255
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ecx, 8
ja 0x10080368
cmp edx, dword [esp + 0x24]
jbe 0x10080287
int3
mov eax, dword [esp + 0x14]
sub dl, al
push ebx
push edi
mov byte [eax + 0x1e], dl
mov byte [eax + 0x36], bl
add eax, 0x20
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x100802c5
mov ebx, dword [esp + 0x14]
mov esi, 6
jmp 0x100803bd
cmp al, 0xff
jne 0x1008021f
cmp byte [edi + 1], 0x25
jmp 0x10080241
mov eax, dword [esp + 0x14]
lea esi, [ebx + edi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x44], ecx
movzx ecx, byte [eax + 0x1e]
add ecx, eax
mov dword [eax + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.1007f500
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1008031f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x14]
mov esi, eax
jmp 0x100803bd
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], edi
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x14], eax
mov eax, dword [0x100b7b40]
mov dword [ecx], eax
xor eax, eax
mov dword [0x100b7b40], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10082777
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x100b7b44], 0
mov esi, 9
mov ebx, dword [esp + 0x14]
je 0x100803bd
mov edi, dword [esp + 0x20]
mov ecx, ebx
call fcn.1007f990
test edi, edi
je 0x10080394
push 0x18
push edi
call fcn.1008278a
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [0x100b7b54], eax
mov eax, esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10082777
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov esi, 8
mov edi, dword [esp + 0x20]
mov dword [0x100b7b60], esi
test ebx, ebx
je 0x10080385
jmp 0x1008037e