Function at 0x1001cde0
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 [0x1011f124]
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 0x1001ce1c
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a83ea
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10123450], eax
je 0x1001ce42
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a83ea
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1012340c]
test eax, eax
jne 0x1001d307
test ebx, ebx
jne 0x1001ce69
lea eax, [ebx + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a83ea
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1001ce81
mov dword [0x1012340c], 6
lea eax, [ecx + 6]
jmp 0x1001d301
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
call fcn.1001c820
mov ecx, esi
mov dword [ebp - 0x88], eax
call fcn.1001c820
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x1001cec2
cmp dword [0x10122f3c], edi
jne 0x1001d2ff
jmp 0x1001d2b6
push 0x18
call fcn.100a8406
add esp, 4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x90]
mov ecx, esi
lea edx, [ebp - 0x8c]
push eax
call fcn.1001c380
mov ecx, dword [0x10123454]
add esp, 4
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [0x1012345c]
test ecx, ecx
jne 0x1001cf10
test eax, eax
je 0x1001cf23
mov ecx, eax
mov dword [0x10123454], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1001cf23
cmp edx, ebx
jb 0x1001cf23
cmp edx, edi
jbe 0x1001cfb6
mov ecx, eax
mov dword [0x10123454], ecx
test eax, eax
je 0x1001cf4f
test ecx, ecx
je 0x1001cf42
mov eax, dword [ecx + 8]
test eax, eax
je 0x1001cf42
cmp eax, ebx
jb 0x1001cf42
cmp eax, edi
jbe 0x1001cfb6
mov ecx, dword [ecx + 4]
mov dword [0x10123454], ecx
test ecx, ecx
jne 0x1001cf33
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.1001c680
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1001d2b1
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x1012345c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x10123454], ecx
mov dword [0x1012345c], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x1001cfa0
mov esi, dword [ebp - 0x88]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x94], edx
cmp edx, ebx
jb 0x1001d2b1
cmp edx, edi
ja 0x1001d2b1
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.100aa780
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 0x1001d0a8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001d0c3
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x1012481c]
lea eax, [eax*8 + 0x10124818]
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 0x1001d182
mov al, byte [edi]
cmp al, 0xeb
je 0x1001d182
cmp al, 0xe9
je 0x1001d182
cmp al, 0xe0
je 0x1001d182
cmp al, 0xc2
je 0x1001d182
cmp al, 0xc3
je 0x1001d182
cmp al, 0xcc
je 0x1001d182
cmp al, 0xf3
jne 0x1001d178
cmp byte [edi + 1], 0xc3
je 0x1001d182
cmp al, 0x26
je 0x1001d15c
cmp al, 0x2e
je 0x1001d15c
cmp al, 0x36
je 0x1001d15c
cmp al, 0x3e
je 0x1001d15c
cmp al, 0x64
je 0x1001d15c
cmp al, 0x65
jne 0x1001d168
cmp byte [edi + 1], 0xff
jne 0x1001d168
cmp byte [edi + 2], 0x25
je 0x1001d182
cmp ebx, 5
jae 0x1001d1ba
mov ebx, dword [ebp - 0x90]
jmp 0x1001d066
cmp al, 0xff
jne 0x1001d144
cmp byte [edi + 1], 0x25
jmp 0x1001d166
cmp ebx, 5
jae 0x1001d1b1
mov ecx, esi
call fcn.1001c410
test eax, eax
je 0x1001d2a1
add esi, eax
mov ebx, esi
sub ebx, dword [ebp - 0x88]
cmp ebx, 5
jb 0x1001d187
mov ah, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
ja 0x1001d2a1
lea edi, [edx + 0x1e]
cmp dword [ebp - 0x90], edi
jbe 0x1001d1c6
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.100aa200
add esp, 0xc
cmp ebx, 0x19
jbe 0x1001d1ee
mov edi, 6
jmp 0x1001d2b6
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 0x1001d234
push eax
push 0xcc
push ecx
call fcn.100aa780
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 0x1001d257
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001d2b6
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 [0x10123464]
mov dword [ecx], eax
xor eax, eax
mov dword [0x10123464], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a83ea
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10122f3c], 0
mov edi, 9
jne 0x1001d2bc
jmp 0x1001d2b6
mov edi, 8
mov dword [0x1012340c], edi
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x1001d2e4
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100aa780
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 0x1001d2f9
push 0x18
push eax
call fcn.100a83f8
add esp, 8
mov ebx, dword [ebp - 0xa0]
mov eax, edi
mov dword [0x10123458], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a83ea
mov esp, ebp
pop ebp
ret 0xc