Function at 0x100019e0
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
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
test eax, eax
jne 0x10001a29
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10003277
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10018390], eax
je 0x10001a53
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10003277
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1001838c]
test eax, eax
jne 0x10001f91
test ebx, ebx
je 0x10001a7a
mov esi, dword [ebx]
test esi, esi
jne 0x10001a96
mov dword [0x1001838c], 6
mov dword [0x10018398], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10003277
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
cmp byte [esi], 0xff
mov dword [esp + 0x20], eax
jne 0x10001ac3
cmp byte [esi + 1], 0x25
jne 0x10001ac3
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [esp + 0x18], eax
call fcn.10001010
test al, al
je 0x10001ac3
mov esi, dword [esp + 0x18]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x10001b06
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x10001afc
cmp byte [eax], 0x25
jne 0x10001afc
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [esp + 0x18], eax
call fcn.10001010
test al, al
je 0x10001b06
mov esi, dword [esp + 0x18]
mov esi, dword [esi]
jmp 0x10001b06
cmp cl, 0xe9
jne 0x10001b06
add esi, 5
add esi, dword [eax]
mov edx, dword [esp + 0x14]
cmp byte [edx], 0xff
jne 0x10001b3b
cmp byte [edx + 1], 0x25
jne 0x10001b3b
mov eax, dword [edx + 2]
mov edx, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.10001010
test al, al
je 0x10001b37
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x10001b3b
mov edx, dword [esp + 0x14]
cmp byte [edx], 0xeb
jne 0x10001b92
movsx eax, byte [edx + 1]
add eax, 2
add edx, eax
mov dword [esp + 0x14], edx
mov cl, byte [edx]
lea eax, [edx + 1]
cmp cl, 0xff
jne 0x10001b7e
cmp byte [eax], 0x25
jne 0x10001b7e
mov eax, dword [edx + 2]
mov edx, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.10001010
test al, al
je 0x10001b8e
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x10001b92
cmp cl, 0xe9
jne 0x10001b92
add edx, 5
add edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x10001b92
mov edx, dword [esp + 0x14]
cmp edx, esi
jne 0x10001ba7
cmp dword [0x10018378], ebx
jne 0x10001f86
jmp 0x10001f43
push 0x18
call fcn.10003285
mov dword [esp + 0x24], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.100010e0
mov ecx, dword [0x10018394]
add esp, 8
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x1001839c]
test ecx, ecx
jne 0x10001be8
test eax, eax
je 0x10001bfb
mov ecx, eax
mov dword [0x10018394], ecx
mov edi, dword [ecx + 8]
test edi, edi
je 0x10001bfb
cmp edi, ebx
jb 0x10001bfb
cmp edi, edx
jbe 0x10001ca5
mov ecx, eax
mov dword [0x10018394], ecx
test eax, eax
je 0x10001c46
mov edx, eax
mov edi, eax
mov ebx, eax
nop dword [eax]
mov eax, dword [eax + 8]
test eax, eax
je 0x10001c27
mov edx, edi
cmp eax, dword [esp + 0x1c]
jb 0x10001c27
mov edx, ebx
cmp eax, dword [esp + 0x10]
jbe 0x10001ca1
mov ecx, dword [edx + 4]
mov eax, ecx
mov dword [0x10018394], ecx
test eax, eax
je 0x10001c3e
mov edx, ecx
mov edi, ecx
mov ebx, ecx
jmp 0x10001c10
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push edx
mov ecx, esi
mov edx, ebx
and ecx, 0xffff0000
call fcn.10001340
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10001f3c
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov edi, 0x38b
mov eax, dword [0x1001839c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x10018394], ecx
mov dword [0x1001839c], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub edi, 1
jne 0x10001c91
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x1c]
jb 0x10001f3c
cmp ebx, edx
ja 0x10001f3c
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100049e0
add esp, 0xc
test ebx, ebx
je 0x10001f3e
lea eax, [ebx + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov edi, esi
movq qword [eax], xmm0
mov eax, ebx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x28], eax
push 0x70
lea eax, [esp + 0x3c]
mov ebx, edi
push 0
push eax
mov dword [esp + 0x30], ebx
call fcn.100049e0
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x74]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
add esp, 0xc
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
cmovne ecx, eax
test edi, edi
jne 0x10001d4a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001d62
movzx eax, byte [edi]
push edi
push ecx
lea ecx, [esp + 0x40]
lea eax, [eax*8 + 0x10019820]
push eax
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov edx, dword [esp + 0x10]
sub eax, ebx
add eax, dword [esp + 0x30]
mov ebx, edi
add ecx, eax
sub ebx, esi
mov dword [esp + 0x1c], ecx
mov al, bl
sub cl, dl
and al, 7
shl cl, 3
or cl, al
mov eax, dword [esp + 0x18]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
cmp ecx, 8
jae 0x10001df9
mov ecx, dword [esp + 0x24]
mov al, byte [ecx]
cmp al, 0xeb
je 0x10001df9
cmp al, 0xe9
je 0x10001df9
cmp al, 0xe0
je 0x10001df9
cmp al, 0xc2
je 0x10001df9
cmp al, 0xc3
je 0x10001df9
cmp al, 0xcc
je 0x10001df9
cmp al, 0xf3
jne 0x10001e5e
cmp byte [ecx + 1], 0xc3
je 0x10001df9
cmp al, 0x26
je 0x10001de4
cmp al, 0x2e
je 0x10001de4
cmp al, 0x36
je 0x10001de4
cmp al, 0x3e
je 0x10001de4
cmp al, 0x64
je 0x10001de4
cmp al, 0x65
jne 0x10001df0
cmp byte [ecx + 1], 0xff
jne 0x10001df0
cmp byte [ecx + 2], 0x25
je 0x10001df9
cmp ebx, 5
jb 0x10001cf8
cmp ebx, 5
jae 0x10001e1e
nop
mov ecx, edi
call fcn.10001170
test eax, eax
je 0x10001f28
add edi, eax
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x10001e00
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x28], 8
ja 0x10001f28
mov eax, dword [esp + 0x1c]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x10001e35
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.10005eb0
add esp, 0xc
cmp ebx, 0x19
jbe 0x10001e6c
mov ebx, dword [esp + 0x10]
mov edi, 6
jmp 0x10001f43
cmp al, 0xff
jne 0x10001dcc
cmp byte [ecx + 1], 0x25
jmp 0x10001dee
mov edi, dword [esp + 0x10]
lea edx, [esi + ebx]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
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 eax, edx
sub eax, ecx
cmp ecx, edx
cmova eax, dword [esp + 0x24]
test eax, eax
je 0x10001eba
push eax
push 0xcc
push ecx
call fcn.100049e0
add esp, 0xc
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x10]
mov edi, eax
jmp 0x10001f43
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x14], eax
mov eax, dword [0x100183a4]
mov dword [ecx], eax
xor eax, eax
mov dword [0x100183a4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10003277
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10018378], 0
mov edi, 9
mov ebx, dword [esp + 0x10]
jne 0x10001f55
jmp 0x10001f43
xor ebx, ebx
mov edi, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [0x1001838c], edi
test ebx, ebx
je 0x10001f77
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100049e0
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], ebx
test eax, eax
je 0x10001f86
push 0x18
push eax
call fcn.100032b5
add esp, 8
mov eax, dword [esp + 0x2c]
mov dword [0x10018398], eax
mov eax, edi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003277
mov esp, ebp
pop ebp
ret 0xc