Function at 0x10020d10
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 0x10020d4c
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b06c8
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10130258], eax
je 0x10020d72
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b06c8
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10130214]
test eax, eax
jne 0x10021237
test ebx, ebx
jne 0x10020d99
lea eax, [ebx + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b06c8
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10020db1
mov dword [0x10130214], 6
lea eax, [ecx + 6]
jmp 0x10021231
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
call fcn.10020750
mov ecx, esi
mov dword [ebp - 0x88], eax
call fcn.10020750
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x10020df2
cmp dword [0x1012f130], edi
jne 0x1002122f
jmp 0x100211e6
push 0x18
call fcn.100b0a21
add esp, 4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x90]
mov ecx, esi
lea edx, [ebp - 0x8c]
push eax
call fcn.100202b0
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 0x10020e40
test eax, eax
je 0x10020e53
mov ecx, eax
mov dword [0x1013025c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10020e53
cmp edx, ebx
jb 0x10020e53
cmp edx, edi
jbe 0x10020ee6
mov ecx, eax
mov dword [0x1013025c], ecx
test eax, eax
je 0x10020e7f
test ecx, ecx
je 0x10020e72
mov eax, dword [ecx + 8]
test eax, eax
je 0x10020e72
cmp eax, ebx
jb 0x10020e72
cmp eax, edi
jbe 0x10020ee6
mov ecx, dword [ecx + 4]
mov dword [0x1013025c], ecx
test ecx, ecx
jne 0x10020e63
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.100205b0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100211e1
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 0x10020ed0
mov esi, dword [ebp - 0x88]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x94], edx
cmp edx, ebx
jb 0x100211e1
cmp edx, edi
ja 0x100211e1
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.100b2a60
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 0x10020fd8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10020ff3
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 0x100210b2
mov al, byte [edi]
cmp al, 0xeb
je 0x100210b2
cmp al, 0xe9
je 0x100210b2
cmp al, 0xe0
je 0x100210b2
cmp al, 0xc2
je 0x100210b2
cmp al, 0xc3
je 0x100210b2
cmp al, 0xcc
je 0x100210b2
cmp al, 0xf3
jne 0x100210a8
cmp byte [edi + 1], 0xc3
je 0x100210b2
cmp al, 0x26
je 0x1002108c
cmp al, 0x2e
je 0x1002108c
cmp al, 0x36
je 0x1002108c
cmp al, 0x3e
je 0x1002108c
cmp al, 0x64
je 0x1002108c
cmp al, 0x65
jne 0x10021098
cmp byte [edi + 1], 0xff
jne 0x10021098
cmp byte [edi + 2], 0x25
je 0x100210b2
cmp ebx, 5
jae 0x100210ea
mov ebx, dword [ebp - 0x90]
jmp 0x10020f96
cmp al, 0xff
jne 0x10021074
cmp byte [edi + 1], 0x25
jmp 0x10021096
cmp ebx, 5
jae 0x100210e1
mov ecx, esi
call fcn.10020340
test eax, eax
je 0x100211d1
add esi, eax
mov ebx, esi
sub ebx, dword [ebp - 0x88]
cmp ebx, 5
jb 0x100210b7
mov ah, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
ja 0x100211d1
lea edi, [edx + 0x1e]
cmp dword [ebp - 0x90], edi
jbe 0x100210f6
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.100b24e0
add esp, 0xc
cmp ebx, 0x19
jbe 0x1002111e
mov edi, 6
jmp 0x100211e6
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 0x10021164
push eax
push 0xcc
push ecx
call fcn.100b2a60
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 0x10021187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100211e6
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.100b06c8
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1012f130], 0
mov edi, 9
jne 0x100211ec
jmp 0x100211e6
mov edi, 8
mov dword [0x10130214], edi
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x10021214
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100b2a60
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 0x10021229
push 0x18
push eax
call fcn.100b06f9
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.100b06c8
mov esp, ebp
pop ebp
ret 0xc