Function at 0x1003c730
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101911c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ebx
test eax, eax
jne 0x1003c767
pop edi
lea eax, [edx + 0x57]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KeRnEl32.DlL_GetCurrentThreadId]
cmp dword [0x1019645c], eax
je 0x1003c78c
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10196458]
test eax, eax
jne 0x1003cc4e
test ebx, ebx
jne 0x1003c7b2
pop edi
lea eax, [ebx + 6]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebx]
test esi, esi
jne 0x1003c7df
lea eax, [esi + 6]
mov dword [0x10196464], ebx
pop esi
pop edi
mov dword [0x10196458], 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
cmp byte [esi], 0xff
mov dword [ebp - 0x20], eax
jne 0x1003c809
cmp byte [esi + 1], 0x25
jne 0x1003c809
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003bcb0
test al, al
je 0x1003c809
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1003c84a
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x1003c840
cmp byte [eax], 0x25
jne 0x1003c840
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003bcb0
test al, al
je 0x1003c84a
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
jmp 0x1003c84a
cmp cl, 0xe9
jne 0x1003c84a
add esi, 5
add esi, dword [eax]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0xff
jne 0x1003c876
cmp byte [ecx + 1], 0x25
jne 0x1003c876
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003bcb0
test al, al
je 0x1003c873
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
jmp 0x1003c876
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0xeb
jne 0x1003c8c3
movsx eax, byte [ecx + 1]
add eax, 2
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov dl, byte [ecx]
lea eax, [ecx + 1]
cmp dl, 0xff
jne 0x1003c8b1
cmp byte [eax], 0x25
jne 0x1003c8b1
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003bcb0
test al, al
je 0x1003c8c0
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
jmp 0x1003c8c3
cmp dl, 0xe9
jne 0x1003c8c3
add ecx, 5
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x1003c8c3
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
jne 0x1003c8d8
cmp dword [0x10195654], ebx
jne 0x1003cc43
jmp 0x1003cc03
push 0x18
call fcn.100dd060
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1003bd80
mov ecx, dword [0x10196460]
add esp, 8
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x10196468]
test ecx, ecx
jne 0x1003c914
test eax, eax
je 0x1003c927
mov ecx, eax
mov dword [0x10196460], ecx
mov edi, dword [ecx + 8]
test edi, edi
je 0x1003c927
cmp edi, ebx
jb 0x1003c927
cmp edi, edx
jbe 0x1003c9d3
mov ecx, eax
mov dword [0x10196460], ecx
test eax, eax
je 0x1003c972
mov edx, eax
mov edi, eax
mov ebx, eax
nop dword [eax]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003c955
mov edx, edi
cmp eax, dword [ebp - 0x18]
jb 0x1003c955
mov edx, ebx
cmp eax, dword [ebp - 0x10]
jbe 0x1003c9d0
mov ecx, dword [edx + 4]
mov eax, ecx
mov dword [0x10196460], ecx
test eax, eax
je 0x1003c96c
mov edx, ecx
mov edi, ecx
mov ebx, ecx
jmp 0x1003c940
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
push edx
mov ecx, esi
mov edx, ebx
and ecx, 0xffff0000
call fcn.1003c050
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003cbfc
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov edi, 0x38b
mov eax, dword [0x10196468]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x10196460], ecx
mov dword [0x10196468], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub edi, 1
jne 0x1003c9c0
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp - 0x18]
jb 0x1003cbfc
cmp ebx, edx
ja 0x1003cbfc
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100df3c0
add esp, 0xc
test ebx, ebx
je 0x1003cbfe
lea eax, [ebx + 0x38]
xorps xmm0, xmm0
mov ecx, ebx
mov dword [ebp - 0x28], eax
xor edi, edi
movq qword [eax], xmm0
mov eax, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push edx
push ecx
push eax
mov edi, eax
call fcn.1003cc60
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov ebx, ecx
sub eax, edi
mov dword [ebp - 0x14], ecx
add eax, ecx
sub ebx, esi
add edx, eax
mov al, bl
mov cl, dl
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
and al, 7
sub cl, dl
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x28]
mov byte [eax], cl
inc eax
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
cmp ecx, 8
jae 0x1003cacd
mov al, byte [edi]
cmp al, 0xeb
je 0x1003cacd
cmp al, 0xe9
je 0x1003cacd
cmp al, 0xe0
je 0x1003cacd
cmp al, 0xc2
je 0x1003cacd
cmp al, 0xc3
je 0x1003cacd
cmp al, 0xcc
je 0x1003cacd
cmp al, 0xf3
jne 0x1003cb2d
cmp byte [edi + 1], 0xc3
je 0x1003cacd
cmp al, 0x26
je 0x1003cab2
cmp al, 0x2e
je 0x1003cab2
cmp al, 0x36
je 0x1003cab2
cmp al, 0x3e
je 0x1003cab2
cmp al, 0x64
je 0x1003cab2
cmp al, 0x65
jne 0x1003cabe
cmp byte [edi + 1], 0xff
jne 0x1003cabe
cmp byte [edi + 2], 0x25
je 0x1003cacd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp ebx, 5
jb 0x1003ca21
cmp ebx, 5
jae 0x1003caf0
mov ecx, dword [ebp - 0x14]
call fcn.1003be10
test eax, eax
je 0x1003cbe9
add ecx, eax
mov ebx, ecx
sub ebx, esi
cmp ebx, 5
jb 0x1003cad5
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 0x24], 8
ja 0x1003cbe9
mov eax, dword [ebp - 0x18]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x1003cb05
int3
sub al, dl
mov byte [edx + 0x36], bl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push esi
push eax
call fcn.100dee40
add esp, 0xc
cmp ebx, 0x19
jbe 0x1003cb3b
mov ebx, dword [ebp - 0x10]
mov edi, 6
jmp 0x1003cc03
cmp al, 0xff
jne 0x1003ca9a
cmp byte [edi + 1], 0x25
jmp 0x1003cabc
mov edi, dword [ebp - 0x10]
lea edx, [esi + ebx]
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x1e]
add ecx, edi
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov dword [ecx + 1], edx
lea edx, [edi + 0x1e]
add ecx, 5
mov dword [ebp - 8], 0
mov eax, edx
sub eax, ecx
cmp ecx, edx
cmova eax, dword [ebp - 8]
test eax, eax
je 0x1003cb85
push eax
push 0xcc
push ecx
call fcn.100df3c0
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push pe_nt_image_headers32
push ebx
push esi
call dword [sym.imp.KeRnEl32.DlL_VirtualProtect]
test eax, eax
jne 0x1003cbab
call dword [sym.imp.KeRnEl32.DlL_GetLastError]
mov ebx, dword [ebp - 0x10]
mov edi, eax
jmp 0x1003cc03
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], esi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 8]
pop esi
mov dword [ecx + 0x14], eax
mov eax, dword [0x10196470]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x10196470], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10195654], 0
mov edi, 9
mov ebx, dword [ebp - 0x10]
jne 0x1003cc13
jmp 0x1003cc03
xor ebx, ebx
mov edi, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [0x10196458], edi
test ebx, ebx
je 0x1003cc34
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100df3c0
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], ebx
test eax, eax
je 0x1003cc43
push 0x18
push eax
call fcn.100dd04d
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [0x10196464], eax
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100dd01c
mov esp, ebp
pop ebp
ret 0xc