Function at 0x10001da0
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
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x34], ebx
test edi, edi
jne 0x10001de5
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000306e
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10017388], eax
je 0x10001e0f
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000306e
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10017384]
test eax, eax
jne 0x1000223b
test ebx, ebx
je 0x10001e36
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10001e52
mov dword [0x10017384], 6
mov dword [0x10017390], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000306e
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.100018d0
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.100018d0
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jne 0x10001e85
cmp dword [0x10017370], ebx
jne 0x10002230
jmp 0x10002259
push 0x18
call fcn.100033df
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x14]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.100014b0
mov ecx, dword [0x1001738c]
add esp, 4
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [0x10017394]
test ecx, ecx
jne 0x10001ecd
test eax, eax
je 0x10001ee0
mov ecx, eax
mov dword [0x1001738c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10001ee0
cmp edx, edi
jb 0x10001ee0
cmp edx, ebx
jbe 0x10001f8b
mov ecx, eax
mov dword [0x1001738c], ecx
test eax, eax
je 0x10001f26
mov edx, eax
mov esi, eax
mov edi, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x10001f07
mov edx, esi
cmp eax, dword [esp + 0x10]
jb 0x10001f07
mov edx, edi
cmp eax, ebx
jbe 0x10001f83
mov ecx, dword [edx + 4]
mov eax, ecx
mov dword [0x1001738c], ecx
test eax, eax
je 0x10001f1e
mov edx, ecx
mov esi, ecx
mov edi, ecx
jmp 0x10001ef2
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, edi
push ebx
and ecx, 0xffff0000
call fcn.10001710
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10002252
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x10017394]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1001738c], ecx
mov dword [0x10017394], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x10001f71
mov dword [ecx + 8], edx
jmp 0x10001f87
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
cmp ebx, edi
jb 0x10002252
cmp ebx, dword [esp + 0x18]
ja 0x10002252
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100046e0
add esp, 0xc
test ebx, ebx
je 0x10002254
lea eax, [ebx + 0x38]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], eax
mov ecx, ebx
movq qword [eax], xmm0
mov dword [esp + 0x1c], ecx
nop
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
test ebx, ebx
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x50], 0
cmovne ecx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov edi, esi
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x38], xmm0
test esi, esi
jne 0x1000203d
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002055
movzx eax, byte [esi]
push esi
push ecx
lea ecx, [esp + 0x40]
lea eax, [eax*8 + 0x10018820]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, esi
sub eax, edi
add eax, dword [esp + 0x28]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, esi
sub ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov al, bl
sub cl, dl
and al, 7
shl cl, 3
or cl, al
mov eax, dword [esp + 0x2c]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
cmp ecx, 8
jae 0x100020ea
mov al, byte [edi]
cmp al, 0xeb
je 0x100020ea
cmp al, 0xe9
je 0x100020ea
cmp al, 0xe0
je 0x100020ea
cmp al, 0xc2
je 0x100020ea
cmp al, 0xc3
je 0x100020ea
cmp al, 0xcc
je 0x100020ea
cmp al, 0xf3
jne 0x10002153
cmp byte [edi + 1], 0xc3
je 0x100020ea
cmp al, 0x26
je 0x100020d5
cmp al, 0x2e
je 0x100020d5
cmp al, 0x36
je 0x100020d5
cmp al, 0x3e
je 0x100020d5
cmp al, 0x64
je 0x100020d5
cmp al, 0x65
jne 0x100020e1
cmp byte [edi + 1], 0xff
jne 0x100020e1
cmp byte [edi + 2], 0x25
je 0x100020ea
cmp ebx, 5
jb 0x10001fe0
mov edi, dword [esp + 0x14]
cmp ebx, 5
jae 0x10002115
mov ecx, esi
call fcn.10001540
test eax, eax
je 0x10002204
add esi, eax
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x100020f3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
ja 0x10002204
mov eax, dword [esp + 0x1c]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x1000212a
int3
sub al, dl
mov byte [edx + 0x36], bl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push edi
push eax
call fcn.10005c60
add esp, 0xc
cmp ebx, 0x19
jbe 0x10002164
mov ebx, dword [esp + 0x10]
mov esi, 6
jmp 0x10002259
cmp al, 0xff
jne 0x100020bd
cmp byte [edi + 1], 0x25
jmp 0x100020df
mov eax, dword [esp + 0x24]
lea esi, [ebx + edi]
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi + 0x1e]
lea edx, [edi + 0x1e]
add ecx, edi
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.10001480
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0x40
push ebx
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100021bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, edi
jmp 0x10002259
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], ebx
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1001739c]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1001739c], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1000306e
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10017370], 0
mov esi, 9
mov ebx, dword [esp + 0x10]
je 0x10002259
mov edi, dword [esp + 0x20]
mov ecx, ebx
call fcn.100018a0
test edi, edi
je 0x10002230
push 0x18
push edi
call fcn.1000340f
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [0x10017390], eax
mov eax, esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000306e
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov esi, 8
mov edi, dword [esp + 0x20]
mov dword [0x10017384], esi
test ebx, ebx
je 0x10002221
jmp 0x1000221a