Function at 0x10020cf0
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
sub esp, 0xa8
mov eax, dword [0x1012b124]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0xa0], ebx
test esi, esi
jne 0x10020d2c
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b0698
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10130258], eax
je 0x10020d52
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b0698
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10130214]
test eax, eax
jne 0x10021217
test ebx, ebx
jne 0x10020d79
lea eax, [ebx + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b0698
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10020d91
mov dword [0x10130214], 6
lea eax, [ecx + 6]
jmp 0x10021211
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
call fcn.10020730
mov ecx, esi
mov dword [ebp - 0x88], eax
call fcn.10020730
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x10020dd2
cmp dword [0x1012f130], edi
jne 0x1002120f
jmp 0x100211c6
push 0x18
call fcn.100b09f1
add esp, 4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x90]
mov ecx, esi
lea edx, [ebp - 0x8c]
push eax
call fcn.10020290
mov ecx, dword [0x1013025c]
add esp, 4
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [0x10130264]
test ecx, ecx
jne 0x10020e20
test eax, eax
je 0x10020e33
mov ecx, eax
mov dword [0x1013025c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10020e33
cmp edx, ebx
jb 0x10020e33
cmp edx, edi
jbe 0x10020ec6
mov ecx, eax
mov dword [0x1013025c], ecx
test eax, eax
je 0x10020e5f
test ecx, ecx
je 0x10020e52
mov eax, dword [ecx + 8]
test eax, eax
je 0x10020e52
cmp eax, ebx
jb 0x10020e52
cmp eax, edi
jbe 0x10020ec6
mov ecx, dword [ecx + 4]
mov dword [0x1013025c], ecx
test ecx, ecx
jne 0x10020e43
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.10020590
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100211c1
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x10130264]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1013025c], ecx
mov dword [0x10130264], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x10020eb0
mov esi, dword [ebp - 0x88]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x94], edx
cmp edx, ebx
jb 0x100211c1
cmp edx, edi
ja 0x100211c1
mov eax, dword [edx + 0x40]
xorps xmm0, xmm0
mov dword [ecx + 8], eax
mov ebx, edx
mov dword [edx], 0xcccccccc
lea eax, [edx + 0x38]
mov dword [edx + 4], 0xcccccccc
mov dword [edx + 8], 0xcccccccc
mov dword [edx + 0xc], 0xcccccccc
mov dword [edx + 0x10], 0xcccccccc
mov dword [edx + 0x14], 0xcccccccc
mov dword [edx + 0x18], 0xcccccccc
mov dword [edx + 0x1c], 0xcccccccc
mov dword [edx + 0x20], 0xcccccccc
mov dword [edx + 0x24], 0xcccccccc
mov dword [edx + 0x28], 0xcccccccc
mov dword [edx + 0x2c], 0xcccccccc
mov dword [edx + 0x30], 0xcccccccc
mov dword [edx + 0x34], 0xcccccccc
mov dword [edx + 0x40], 0xcccccccc
mov dword [edx + 0x44], 0xcccccccc
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x98], eax
movq qword [eax], xmm0
mov dword [ebp - 0x8c], 0
push 0x70
lea eax, [ebp - 0x7c]
mov edi, esi
push 0
push eax
call fcn.100b2a30
add esp, 0xc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x80], 0
test ebx, ebx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x80]
cmovne ecx, ebx
mov dword [ebp - 0x58], eax
test esi, esi
jne 0x10020fb8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10020fd3
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x1013181c]
lea eax, [eax*8 + 0x10131818]
push esi
push ecx
push eax
lea ecx, [ebp - 0x7c]
call edx
mov esi, eax
mov edx, dword [ebp - 0x94]
mov eax, esi
sub eax, edi
add eax, dword [ebp - 0x80]
add ebx, eax
mov dword [ebp - 0x90], ebx
mov ebx, esi
mov ah, byte [ebp - 0x90]
sub ebx, dword [ebp - 0x88]
sub ah, dl
mov edx, dword [ebp - 0x98]
mov cl, bl
inc dword [ebp - 0x98]
and cl, 7
mov al, ah
mov byte [ebp - 0x81], ah
shl al, 3
or cl, al
mov byte [edx], cl
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x94]
inc ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, 8
jae 0x10021092
mov al, byte [edi]
cmp al, 0xeb
je 0x10021092
cmp al, 0xe9
je 0x10021092
cmp al, 0xe0
je 0x10021092
cmp al, 0xc2
je 0x10021092
cmp al, 0xc3
je 0x10021092
cmp al, 0xcc
je 0x10021092
cmp al, 0xf3
jne 0x10021088
cmp byte [edi + 1], 0xc3
je 0x10021092
cmp al, 0x26
je 0x1002106c
cmp al, 0x2e
je 0x1002106c
cmp al, 0x36
je 0x1002106c
cmp al, 0x3e
je 0x1002106c
cmp al, 0x64
je 0x1002106c
cmp al, 0x65
jne 0x10021078
cmp byte [edi + 1], 0xff
jne 0x10021078
cmp byte [edi + 2], 0x25
je 0x10021092
cmp ebx, 5
jae 0x100210ca
mov ebx, dword [ebp - 0x90]
jmp 0x10020f76
cmp al, 0xff
jne 0x10021054
cmp byte [edi + 1], 0x25
jmp 0x10021076
cmp ebx, 5
jae 0x100210c1
mov ecx, esi
call fcn.10020320
test eax, eax
je 0x100211b1
add esi, eax
mov ebx, esi
sub ebx, dword [ebp - 0x88]
cmp ebx, 5
jb 0x10021097
mov ah, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
ja 0x100211b1
lea edi, [edx + 0x1e]
cmp dword [ebp - 0x90], edi
jbe 0x100210d6
int3
mov esi, dword [ebp - 0x88]
push ebx
mov byte [edi], ah
lea eax, [edx + 0x20]
push esi
push eax
mov byte [edx + 0x36], bl
call fcn.100b24b0
add esp, 0xc
cmp ebx, 0x19
jbe 0x100210fe
mov edi, 6
jmp 0x100211c6
mov eax, dword [ebp - 0x94]
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0xa8]
mov dword [eax + 0x44], ecx
movzx ecx, byte [edi]
add ecx, eax
mov dword [eax + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
xor edx, edx
cmp ecx, edi
cmova eax, edx
test eax, eax
je 0x10021144
push eax
push 0xcc
push ecx
call fcn.100b2a30
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10021167
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100211c6
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1013026c]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1013026c], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b0698
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1012f130], 0
mov edi, 9
jne 0x100211cc
jmp 0x100211c6
mov edi, 8
mov dword [0x10130214], edi
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x100211f4
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100b2a30
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x10021209
push 0x18
push eax
call fcn.100b06c9
add esp, 8
mov ebx, dword [ebp - 0xa0]
mov eax, edi
mov dword [0x10130260], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b0698
mov esp, ebp
pop ebp
ret 0xc