Function at 0x1003c160
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 [0x1017c120]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0xa8], ebx
test eax, eax
jne 0x1003c1a2
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101813b0], eax
je 0x1003c1c8
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1018136c]
test eax, eax
jne 0x1003c788
test ebx, ebx
je 0x1003c1ef
mov esi, dword [ebx]
test esi, esi
jne 0x1003c207
mov dword [0x1018136c], 6
mov dword [0x101813b8], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
cmp byte [esi], 0xff
mov dword [ebp - 0x98], eax
jne 0x1003c23a
cmp byte [esi + 1], 0x25
jne 0x1003c23a
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x8c], eax
call fcn.1003b6b0
test al, al
je 0x1003c23a
mov esi, dword [ebp - 0x8c]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1003c281
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x1003c277
cmp byte [eax], 0x25
jne 0x1003c277
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x8c], eax
call fcn.1003b6b0
test al, al
je 0x1003c281
mov esi, dword [ebp - 0x8c]
mov esi, dword [esi]
jmp 0x1003c281
cmp cl, 0xe9
jne 0x1003c281
add esi, 5
add esi, dword [eax]
mov edx, dword [ebp - 0x88]
cmp byte [edx], 0xff
jne 0x1003c2c2
cmp byte [edx + 1], 0x25
jne 0x1003c2c2
mov eax, dword [edx + 2]
mov edx, eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
call fcn.1003b6b0
test al, al
je 0x1003c2bc
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [ebp - 0x88], edx
jmp 0x1003c2c2
mov edx, dword [ebp - 0x88]
cmp byte [edx], 0xeb
jne 0x1003c327
movsx eax, byte [edx + 1]
add eax, 2
add edx, eax
mov dword [ebp - 0x88], edx
mov cl, byte [edx]
lea eax, [edx + 1]
cmp cl, 0xff
jne 0x1003c30f
cmp byte [eax], 0x25
jne 0x1003c30f
mov eax, dword [edx + 2]
mov edx, eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
call fcn.1003b6b0
test al, al
je 0x1003c321
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [ebp - 0x88], edx
jmp 0x1003c327
cmp cl, 0xe9
jne 0x1003c327
add edx, 5
add edx, dword [eax]
mov dword [ebp - 0x88], edx
jmp 0x1003c327
mov edx, dword [ebp - 0x88]
cmp edx, esi
jne 0x1003c33c
cmp dword [0x10180704], ebx
jne 0x1003c77b
jmp 0x1003c732
push 0x18
call fcn.100d1c23
add esp, 4
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x84]
mov ecx, esi
lea edx, [ebp - 0x90]
push eax
call fcn.1003b780
mov ecx, dword [0x101813b4]
add esp, 4
mov eax, dword [0x101813bc]
test ecx, ecx
jne 0x1003c37e
test eax, eax
je 0x1003c39f
mov ecx, eax
mov dword [0x101813b4], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x84]
test edx, edx
je 0x1003c3ab
cmp edx, ebx
jb 0x1003c3ab
cmp edx, edi
jbe 0x1003c43b
jmp 0x1003c3ab
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x90]
mov ecx, eax
mov dword [0x101813b4], ecx
test eax, eax
je 0x1003c3da
mov edx, eax
cmp dword [edx + 8], 0
je 0x1003c3c9
cmp dword [edx + 8], ebx
jb 0x1003c3c9
cmp dword [edx + 8], edi
jbe 0x1003c43b
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x101813b4], ecx
mov edx, ecx
test eax, eax
jne 0x1003c3b9
mov ecx, esi
mov edx, ebx
push edi
and ecx, 0xffff0000
call fcn.1003ba70
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003c72b
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov edi, 0x38b
mov eax, dword [0x101813bc]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x101813b4], ecx
mov dword [0x101813bc], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub edi, 1
jne 0x1003c425
mov edi, dword [ebp - 0x84]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp - 0x90]
jb 0x1003c72b
cmp ebx, edi
ja 0x1003c72b
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100d3f50
add esp, 0xc
test ebx, ebx
je 0x1003c72d
lea eax, [ebx + 0x38]
mov dword [ebp - 0xa0], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x8c], eax
movq qword [eax], xmm0
mov edi, esi
lea eax, [ebx + 0x1e]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0x91], bl
mov dword [ebp - 0x84], ebx
nop word [eax + eax]
push 0x70
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x9c], edi
push 0
push eax
call fcn.100d3f50
mov ebx, dword [ebp - 0xa0]
lea eax, [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x5c], eax
test ebx, ebx
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
cmovne ecx, ebx
mov dword [ebp - 0x58], eax
test edi, edi
jne 0x1003c4fc
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003c517
movzx eax, byte [edi]
mov edx, dword [eax*8 + 0x10186024]
lea eax, [eax*8 + 0x10186020]
push edi
push ecx
push eax
lea ecx, [ebp - 0x7c]
call edx
mov edi, eax
mov edx, dword [ebp - 0x9c]
mov eax, edi
inc dword [ebp - 0x90]
sub eax, edx
add eax, dword [ebp - 0x80]
add ebx, eax
mov dword [ebp - 0xa0], ebx
mov ebx, edi
mov ch, byte [ebp - 0xa0]
sub ebx, esi
sub ch, byte [ebp - 0x91]
mov al, bl
and al, 7
mov byte [ebp - 0x92], ch
mov cl, ch
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x8c]
mov byte [eax], cl
inc eax
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x8c], eax
jae 0x1003c5ce
mov cl, byte [edx]
cmp cl, 0xeb
je 0x1003c5ce
cmp cl, 0xe9
je 0x1003c5ce
cmp cl, 0xe0
je 0x1003c5ce
cmp cl, 0xc2
je 0x1003c5ce
cmp cl, 0xc3
je 0x1003c5ce
cmp cl, 0xcc
je 0x1003c5ce
lea eax, [edx + 1]
cmp cl, 0xf3
jne 0x1003c63d
cmp byte [eax], 0xc3
je 0x1003c5ce
cmp cl, 0x26
je 0x1003c5ba
cmp cl, 0x2e
je 0x1003c5ba
cmp cl, 0x36
je 0x1003c5ba
cmp cl, 0x3e
je 0x1003c5ba
cmp cl, 0x64
je 0x1003c5ba
cmp cl, 0x65
jne 0x1003c5c5
cmp byte [eax], 0xff
jne 0x1003c5c5
cmp byte [edx + 2], 0x25
je 0x1003c5ce
cmp ebx, 5
jb 0x1003c4b0
cmp ebx, 5
jae 0x1003c5f3
mov ecx, edi
call fcn.1003b810
test eax, eax
je 0x1003c715
add edi, eax
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x1003c5d3
mov ch, byte [ebp - 0x92]
cmp dword [ebp - 0x90], 8
ja 0x1003c715
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 0xa0], eax
jbe 0x1003c60f
int3
mov edi, dword [ebp - 0x84]
push ebx
mov byte [eax], ch
push esi
lea eax, [edi + 0x20]
mov byte [edi + 0x36], bl
push eax
call fcn.100d39d0
add esp, 0xc
cmp ebx, 0x19
jbe 0x1003c64e
mov ebx, dword [ebp - 0x84]
mov edi, 6
jmp 0x1003c732
cmp cl, 0xff
jne 0x1003c59c
cmp byte [eax], 0x25
jmp 0x1003c5c3
mov eax, dword [ebp - 0x88]
lea edx, [esi + ebx]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0xa4]
mov dword [edi + 0x40], edx
mov dword [ebp - 0x9c], 0
movzx ecx, byte [eax]
add ecx, edi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
cmp ecx, dword [ebp - 0xa4]
cmova eax, dword [ebp - 0x9c]
test eax, eax
je 0x1003c6a8
push eax
push 0xcc
push ecx
call fcn.100d3f50
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 0x1003c6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x84]
mov edi, eax
jmp 0x1003c732
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xa8]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [0x101813c4]
mov dword [ecx], eax
xor eax, eax
mov dword [0x101813c4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10180704], 0
mov edi, 9
mov ebx, dword [ebp - 0x84]
jne 0x1003c748
jmp 0x1003c732
xor ebx, ebx
mov edi, 8
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x98], eax
mov dword [0x1018136c], edi
test ebx, ebx
je 0x1003c76c
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100d3f50
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x98]
mov dword [esi + 8], ebx
test eax, eax
je 0x1003c77b
push 0x18
push eax
call fcn.100d1c10
add esp, 8
mov eax, dword [ebp - 0xa8]
mov dword [0x101813b8], eax
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret 0xc