Function at 0x1003a090
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 [0x1019d128]
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 - 0xa8], ebx
test esi, esi
jne 0x1003a0cc
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101a2070], eax
je 0x1003a0f2
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x101a202c]
test eax, eax
jne 0x1003a5a8
test ebx, ebx
je 0x1003a119
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1003a131
mov dword [0x101a202c], 6
mov dword [0x101a2078], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x90], eax
call fcn.10039ad0
mov ecx, esi
mov dword [ebp - 0x8c], eax
call fcn.10039ad0
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
cmp eax, esi
jne 0x1003a16e
cmp dword [0x101a1704], ebx
jne 0x1003a59b
jmp 0x1003a552
push 0x18
call fcn.100cd563
add esp, 4
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa0]
mov ecx, esi
lea edx, [ebp - 0x84]
push eax
call fcn.10039640
mov ecx, dword [0x101a2074]
add esp, 4
mov edi, dword [ebp - 0xa0]
mov eax, dword [0x101a207c]
test ecx, ecx
jne 0x1003a1b6
test eax, eax
je 0x1003a1d1
mov ecx, eax
mov dword [0x101a2074], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [ebp - 0x84]
test edx, edx
je 0x1003a1d7
cmp edx, ebx
jb 0x1003a1d7
cmp edx, edi
jbe 0x1003a266
jmp 0x1003a1d7
mov ebx, dword [ebp - 0x84]
mov ecx, eax
mov dword [0x101a2074], ecx
test eax, eax
je 0x1003a206
mov edx, eax
cmp dword [edx + 8], 0
je 0x1003a1f5
cmp dword [edx + 8], ebx
jb 0x1003a1f5
cmp dword [edx + 8], edi
jbe 0x1003a266
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x101a2074], ecx
mov edx, ecx
test eax, eax
jne 0x1003a1e5
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.10039930
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003a54b
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x101a207c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x101a2074], ecx
mov dword [0x101a207c], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x1003a250
mov esi, dword [ebp - 0x8c]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp - 0x84]
jb 0x1003a54b
cmp ebx, edi
ja 0x1003a54b
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100cf890
add esp, 0xc
test ebx, ebx
je 0x1003a54d
lea eax, [ebx + 0x38]
mov dword [ebp - 0x98], ebx
xorps xmm0, xmm0
mov dword [ebp - 0xa0], eax
movq qword [eax], xmm0
lea eax, [ebx + 0x1e]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0x85], bl
mov dword [ebp - 0x84], ebx
push 0x70
lea eax, [ebp - 0x7c]
mov edi, esi
push 0
push eax
call fcn.100cf890
mov ebx, dword [ebp - 0x98]
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 esi, esi
jne 0x1003a318
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003a333
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x101a381c]
lea eax, [eax*8 + 0x101a3818]
push esi
push ecx
push eax
lea ecx, [ebp - 0x7c]
call edx
mov esi, eax
inc dword [ebp - 0x9c]
mov eax, esi
sub eax, edi
add eax, dword [ebp - 0x80]
add ebx, eax
mov dword [ebp - 0x98], ebx
mov ebx, esi
mov edx, dword [ebp - 0x98]
mov ch, dl
sub ch, byte [ebp - 0x85]
sub ebx, dword [ebp - 0x8c]
mov cl, ch
mov al, bl
shl cl, 3
and al, 7
mov byte [ebp - 0x86], ch
or cl, al
mov eax, dword [ebp - 0xa0]
mov byte [eax], cl
inc eax
cmp dword [ebp - 0x9c], 8
mov dword [ebp - 0xa0], eax
jae 0x1003a3ea
mov cl, byte [edi]
cmp cl, 0xeb
je 0x1003a3ea
cmp cl, 0xe9
je 0x1003a3ea
cmp cl, 0xe0
je 0x1003a3ea
cmp cl, 0xc2
je 0x1003a3ea
cmp cl, 0xc3
je 0x1003a3ea
cmp cl, 0xcc
je 0x1003a3ea
lea eax, [edi + 1]
cmp cl, 0xf3
jne 0x1003a45d
cmp byte [eax], 0xc3
je 0x1003a3ea
cmp cl, 0x26
je 0x1003a3d6
cmp cl, 0x2e
je 0x1003a3d6
cmp cl, 0x36
je 0x1003a3d6
cmp cl, 0x3e
je 0x1003a3d6
cmp cl, 0x64
je 0x1003a3d6
cmp cl, 0x65
jne 0x1003a3e1
cmp byte [eax], 0xff
jne 0x1003a3e1
cmp byte [edi + 2], 0x25
je 0x1003a3ea
cmp ebx, 5
jb 0x1003a2d0
mov edi, dword [ebp - 0x8c]
cmp ebx, 5
jae 0x1003a41b
mov ecx, esi
call fcn.100396d0
test eax, eax
je 0x1003a535
add esi, eax
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x1003a3f5
mov edx, dword [ebp - 0x98]
mov ch, byte [ebp - 0x86]
cmp dword [ebp - 0x9c], 8
ja 0x1003a535
mov eax, dword [ebp - 0xa4]
cmp edx, eax
jbe 0x1003a433
int3
mov esi, dword [ebp - 0x84]
push ebx
mov byte [eax], ch
push edi
lea eax, [esi + 0x20]
mov byte [esi + 0x36], bl
push eax
call fcn.100cf310
add esp, 0xc
cmp ebx, 0x19
jbe 0x1003a46e
mov edi, 6
mov ebx, esi
jmp 0x1003a552
cmp cl, 0xff
jne 0x1003a3b8
cmp byte [eax], 0x25
jmp 0x1003a3df
mov eax, dword [ebp - 0x94]
lea edx, [ebx + edi]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xa4]
mov dword [esi + 0x40], edx
mov dword [ebp - 0x94], 0
movzx ecx, byte [eax]
add ecx, esi
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 - 0x94]
test eax, eax
je 0x1003a4c8
push eax
push 0xcc
push ecx
call fcn.100cf890
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003a4f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x84]
mov edi, eax
jmp 0x1003a552
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xa8]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], esi
mov dword [ecx + 0xc], edi
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [0x101a2084]
mov dword [ecx], eax
xor eax, eax
mov dword [0x101a2084], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x101a1704], 0
mov edi, 9
mov ebx, dword [ebp - 0x84]
jne 0x1003a568
jmp 0x1003a552
xor ebx, ebx
mov edi, 8
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x90], eax
mov dword [0x101a202c], edi
test ebx, ebx
je 0x1003a58c
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100cf890
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 8], ebx
test eax, eax
je 0x1003a59b
push 0x18
push eax
call fcn.100cd550
add esp, 8
mov eax, dword [ebp - 0xa8]
mov dword [0x101a2078], eax
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cd51f
mov esp, ebp
pop ebp
ret 0xc