Function at 0x100204b0
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 [0x10129124]
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 0x100204ec
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100af1bd
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1012dfa8], eax
je 0x10020512
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100af1bd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1012df64]
test eax, eax
jne 0x100209d7
test ebx, ebx
jne 0x10020539
lea eax, [ebx + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100af1bd
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10020551
mov dword [0x1012df64], 6
lea eax, [ecx + 6]
jmp 0x100209d1
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
call fcn.1001fef0
mov ecx, esi
mov dword [ebp - 0x88], eax
call fcn.1001fef0
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x10020592
cmp dword [0x1012d06c], edi
jne 0x100209cf
jmp 0x10020986
push 0x18
call fcn.100af516
add esp, 4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x90]
mov ecx, esi
lea edx, [ebp - 0x8c]
push eax
call fcn.1001fa50
mov ecx, dword [0x1012dfac]
add esp, 4
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [0x1012dfb4]
test ecx, ecx
jne 0x100205e0
test eax, eax
je 0x100205f3
mov ecx, eax
mov dword [0x1012dfac], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x100205f3
cmp edx, ebx
jb 0x100205f3
cmp edx, edi
jbe 0x10020686
mov ecx, eax
mov dword [0x1012dfac], ecx
test eax, eax
je 0x1002061f
test ecx, ecx
je 0x10020612
mov eax, dword [ecx + 8]
test eax, eax
je 0x10020612
cmp eax, ebx
jb 0x10020612
cmp eax, edi
jbe 0x10020686
mov ecx, dword [ecx + 4]
mov dword [0x1012dfac], ecx
test ecx, ecx
jne 0x10020603
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.1001fd50
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10020981
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x1012dfb4]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1012dfac], ecx
mov dword [0x1012dfb4], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x10020670
mov esi, dword [ebp - 0x88]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x94], edx
cmp edx, ebx
jb 0x10020981
cmp edx, edi
ja 0x10020981
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.100b1550
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 0x10020778
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10020793
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x1012f81c]
lea eax, [eax*8 + 0x1012f818]
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 0x10020852
mov al, byte [edi]
cmp al, 0xeb
je 0x10020852
cmp al, 0xe9
je 0x10020852
cmp al, 0xe0
je 0x10020852
cmp al, 0xc2
je 0x10020852
cmp al, 0xc3
je 0x10020852
cmp al, 0xcc
je 0x10020852
cmp al, 0xf3
jne 0x10020848
cmp byte [edi + 1], 0xc3
je 0x10020852
cmp al, 0x26
je 0x1002082c
cmp al, 0x2e
je 0x1002082c
cmp al, 0x36
je 0x1002082c
cmp al, 0x3e
je 0x1002082c
cmp al, 0x64
je 0x1002082c
cmp al, 0x65
jne 0x10020838
cmp byte [edi + 1], 0xff
jne 0x10020838
cmp byte [edi + 2], 0x25
je 0x10020852
cmp ebx, 5
jae 0x1002088a
mov ebx, dword [ebp - 0x90]
jmp 0x10020736
cmp al, 0xff
jne 0x10020814
cmp byte [edi + 1], 0x25
jmp 0x10020836
cmp ebx, 5
jae 0x10020881
mov ecx, esi
call fcn.1001fae0
test eax, eax
je 0x10020971
add esi, eax
mov ebx, esi
sub ebx, dword [ebp - 0x88]
cmp ebx, 5
jb 0x10020857
mov ah, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
ja 0x10020971
lea edi, [edx + 0x1e]
cmp dword [ebp - 0x90], edi
jbe 0x10020896
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.100b0fd0
add esp, 0xc
cmp ebx, 0x19
jbe 0x100208be
mov edi, 6
jmp 0x10020986
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 0x10020904
push eax
push 0xcc
push ecx
call fcn.100b1550
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 0x10020927
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10020986
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 [0x1012dfbc]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1012dfbc], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100af1bd
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1012d06c], 0
mov edi, 9
jne 0x1002098c
jmp 0x10020986
mov edi, 8
mov dword [0x1012df64], edi
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x100209b4
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100b1550
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 0x100209c9
push 0x18
push eax
call fcn.100af1ee
add esp, 8
mov ebx, dword [ebp - 0xa0]
mov eax, edi
mov dword [0x1012dfb0], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100af1bd
mov esp, ebp
pop ebp
ret 0xc