Function at 0x100068a0
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, 0xa4
mov eax, dword [0x1002a040]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x34], ebx
test edi, edi
jne 0x100068e5
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000764c
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1002b53c], eax
je 0x1000690f
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000764c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1002b540]
test eax, eax
jne 0x10006d3f
test ebx, ebx
je 0x10006936
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10006952
mov dword [0x1002b540], 6
mov dword [0x1002b534], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000764c
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.100063d0
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.100063d0
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jne 0x10006985
cmp dword [0x1002b524], ebx
jne 0x10006d34
jmp 0x10006d5d
push 0x18
call fcn.1000770f
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x14]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.10005fb0
mov ecx, dword [0x1002b538]
add esp, 4
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [0x1002b530]
test ecx, ecx
jne 0x100069cd
test eax, eax
je 0x100069e0
mov ecx, eax
mov dword [0x1002b538], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x100069e0
cmp edx, edi
jb 0x100069e0
cmp edx, ebx
jbe 0x10006a8b
mov ecx, eax
mov dword [0x1002b538], ecx
test eax, eax
je 0x10006a26
mov edx, eax
mov esi, eax
mov edi, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x10006a07
mov edx, esi
cmp eax, dword [esp + 0x10]
jb 0x10006a07
mov edx, edi
cmp eax, ebx
jbe 0x10006a83
mov ecx, dword [edx + 4]
mov eax, ecx
mov dword [0x1002b538], ecx
test eax, eax
je 0x10006a1e
mov edx, ecx
mov esi, ecx
mov edi, ecx
jmp 0x100069f2
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, edi
push ebx
and ecx, 0xffff0000
call fcn.10006210
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10006d56
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x1002b530]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1002b538], ecx
mov dword [0x1002b530], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006a71
mov dword [ecx + 8], edx
jmp 0x10006a87
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
cmp ebx, edi
jb 0x10006d56
cmp ebx, dword [esp + 0x18]
ja 0x10006d56
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.10008d70
add esp, 0xc
test ebx, ebx
je 0x10006d58
lea eax, [ebx + 0x38]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], eax
mov ecx, ebx
movq qword [eax], xmm0
mov dword [esp + 0x1c], ecx
nop
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
test ebx, ebx
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x50], 0
cmovne ecx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov edi, esi
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x38], xmm0
test esi, esi
jne 0x10006b3d
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10006b59
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x1002c824]
lea eax, [eax*8 + 0x1002c820]
push esi
push ecx
push eax
lea ecx, [esp + 0x44]
call edx
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, esi
sub eax, edi
add eax, dword [esp + 0x28]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, esi
sub ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov al, bl
sub cl, dl
and al, 7
shl cl, 3
or cl, al
mov eax, dword [esp + 0x2c]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
cmp ecx, 8
jae 0x10006bee
mov al, byte [edi]
cmp al, 0xeb
je 0x10006bee
cmp al, 0xe9
je 0x10006bee
cmp al, 0xe0
je 0x10006bee
cmp al, 0xc2
je 0x10006bee
cmp al, 0xc3
je 0x10006bee
cmp al, 0xcc
je 0x10006bee
cmp al, 0xf3
jne 0x10006c57
cmp byte [edi + 1], 0xc3
je 0x10006bee
cmp al, 0x26
je 0x10006bd9
cmp al, 0x2e
je 0x10006bd9
cmp al, 0x36
je 0x10006bd9
cmp al, 0x3e
je 0x10006bd9
cmp al, 0x64
je 0x10006bd9
cmp al, 0x65
jne 0x10006be5
cmp byte [edi + 1], 0xff
jne 0x10006be5
cmp byte [edi + 2], 0x25
je 0x10006bee
cmp ebx, 5
jb 0x10006ae0
mov edi, dword [esp + 0x14]
cmp ebx, 5
jae 0x10006c19
mov ecx, esi
call fcn.10006040
test eax, eax
je 0x10006d08
add esi, eax
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x10006bf7
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
ja 0x10006d08
mov eax, dword [esp + 0x1c]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x10006c2e
int3
sub al, dl
mov byte [edx + 0x36], bl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push edi
push eax
call fcn.1000a260
add esp, 0xc
cmp ebx, 0x19
jbe 0x10006c68
mov ebx, dword [esp + 0x10]
mov esi, 6
jmp 0x10006d5d
cmp al, 0xff
jne 0x10006bc1
cmp byte [edi + 1], 0x25
jmp 0x10006be3
mov eax, dword [esp + 0x24]
lea esi, [ebx + edi]
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi + 0x1e]
lea edx, [edi + 0x1e]
add ecx, edi
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.10005f80
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0x40
push ebx
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10006cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, edi
jmp 0x10006d5d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], ebx
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1002b520]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1002b520], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000764c
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1002b524], 0
mov esi, 9
mov ebx, dword [esp + 0x10]
je 0x10006d5d
mov edi, dword [esp + 0x20]
mov ecx, ebx
call fcn.100063a0
test edi, edi
je 0x10006d34
push 0x18
push edi
call fcn.10007a5e
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [0x1002b534], eax
mov eax, esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000764c
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov esi, 8
mov edi, dword [esp + 0x20]
mov dword [0x1002b540], esi
test ebx, ebx
je 0x10006d25
jmp 0x10006d1e