Function at 0x401b62
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 [0x40e008]
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 - 0xa0], ebx
test esi, esi
jne 0x401b9e
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407d72
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x40e778], eax
je 0x401bc4
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407d72
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x40e774]
test eax, eax
jne 0x402083
test ebx, ebx
jne 0x401beb
lea eax, [ebx + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407d72
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx]
test ecx, ecx
jne 0x401c03
mov dword [0x40e774], 6
lea eax, [ecx + 6]
jmp 0x40207d
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
call fcn.00401520
mov ecx, esi
mov dword [ebp - 0x88], eax
call fcn.00401520
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x401c44
cmp dword [0x40e5b8], edi
jne 0x40207b
jmp 0x402032
push 0x18
call fcn.00407d85
add esp, 4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x90]
mov ecx, esi
lea edx, [ebp - 0x8c]
push eax
call fcn.004010f0
mov ecx, dword [0x40e77c]
add esp, 4
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [0x40e784]
test ecx, ecx
jne 0x401c92
test eax, eax
je 0x401ca5
mov ecx, eax
mov dword [0x40e77c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x401ca5
cmp edx, ebx
jb 0x401ca5
cmp edx, edi
jbe 0x401d36
mov ecx, eax
mov dword [0x40e77c], ecx
test eax, eax
je 0x401cd1
test ecx, ecx
je 0x401cc4
mov eax, dword [ecx + 8]
test eax, eax
je 0x401cc4
cmp eax, ebx
jb 0x401cc4
cmp eax, edi
jbe 0x401d36
mov ecx, dword [ecx + 4]
mov dword [0x40e77c], ecx
test ecx, ecx
jne 0x401cb5
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.00401380
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40202d
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x40e784]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x40e77c], ecx
mov dword [0x40e784], ecx
nop dword [eax + eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x401d20
mov esi, dword [ebp - 0x88]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x94], edx
cmp edx, ebx
jb 0x40202d
cmp edx, edi
ja 0x40202d
mov eax, dword [edx + 0x40]
xorps xmm0, xmm0
mov dword [ecx + 8], eax
mov ebx, edx
mov dword [edx], 0xcccccccc
lea eax, [edx + 0x38]
mov dword [edx + 4], 0xcccccccc
mov dword [edx + 8], 0xcccccccc
mov dword [edx + 0xc], 0xcccccccc
mov dword [edx + 0x10], 0xcccccccc
mov dword [edx + 0x14], 0xcccccccc
mov dword [edx + 0x18], 0xcccccccc
mov dword [edx + 0x1c], 0xcccccccc
mov dword [edx + 0x20], 0xcccccccc
mov dword [edx + 0x24], 0xcccccccc
mov dword [edx + 0x28], 0xcccccccc
mov dword [edx + 0x2c], 0xcccccccc
mov dword [edx + 0x30], 0xcccccccc
mov dword [edx + 0x34], 0xcccccccc
mov dword [edx + 0x40], 0xcccccccc
mov dword [edx + 0x44], 0xcccccccc
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x98], eax
movq qword [eax], xmm0
mov dword [ebp - 0x8c], 0
push 0x70
lea eax, [ebp - 0x7c]
mov edi, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x80], 0
test ebx, ebx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x80]
cmovne ecx, ebx
mov dword [ebp - 0x58], eax
test esi, esi
jne 0x401e28
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401e3f
movzx eax, byte [esi]
push esi
push ecx
lea ecx, [ebp - 0x7c]
lea eax, [eax*8 + 0x40f820]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov edx, dword [ebp - 0x94]
mov eax, esi
sub eax, edi
add eax, dword [ebp - 0x80]
add ebx, eax
mov dword [ebp - 0x90], ebx
mov ebx, esi
mov ah, byte [ebp - 0x90]
sub ebx, dword [ebp - 0x88]
sub ah, dl
mov edx, dword [ebp - 0x98]
mov cl, bl
inc dword [ebp - 0x98]
and cl, 7
mov al, ah
mov byte [ebp - 0x81], ah
shl al, 3
or cl, al
mov byte [edx], cl
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x94]
inc ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, 8
jae 0x401efe
mov al, byte [edi]
cmp al, 0xeb
je 0x401efe
cmp al, 0xe9
je 0x401efe
cmp al, 0xe0
je 0x401efe
cmp al, 0xc2
je 0x401efe
cmp al, 0xc3
je 0x401efe
cmp al, 0xcc
je 0x401efe
cmp al, 0xf3
jne 0x401ef4
cmp byte [edi + 1], 0xc3
je 0x401efe
cmp al, 0x26
je 0x401ed8
cmp al, 0x2e
je 0x401ed8
cmp al, 0x36
je 0x401ed8
cmp al, 0x3e
je 0x401ed8
cmp al, 0x64
je 0x401ed8
cmp al, 0x65
jne 0x401ee4
cmp byte [edi + 1], 0xff
jne 0x401ee4
cmp byte [edi + 2], 0x25
je 0x401efe
cmp ebx, 5
jae 0x401f36
mov ebx, dword [ebp - 0x90]
jmp 0x401de6
cmp al, 0xff
jne 0x401ec0
cmp byte [edi + 1], 0x25
jmp 0x401ee2
cmp ebx, 5
jae 0x401f2d
mov ecx, esi
call fcn.00401180
test eax, eax
je 0x40201d
add esi, eax
mov ebx, esi
sub ebx, dword [ebp - 0x88]
cmp ebx, 5
jb 0x401f03
mov ah, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
ja 0x40201d
lea edi, [edx + 0x1e]
cmp dword [ebp - 0x90], edi
jbe 0x401f42
int3
mov esi, dword [ebp - 0x88]
push ebx
mov byte [edi], ah
lea eax, [edx + 0x20]
push esi
push eax
mov byte [edx + 0x36], bl
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x401f6a
mov edi, 6
jmp 0x402032
mov eax, dword [ebp - 0x94]
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0xa8]
mov dword [eax + 0x44], ecx
movzx ecx, byte [edi]
add ecx, eax
mov dword [eax + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
xor edx, edx
cmp ecx, edi
cmova eax, edx
test eax, eax
je 0x401fb0
push eax
push 0xcc
push ecx
call sub.VCRUNTIME140.dll_memset
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 0x401fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402032
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [0x40e78c]
mov dword [ecx], eax
xor eax, eax
mov dword [0x40e78c], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407d72
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x40e5b8], 0
mov edi, 9
jne 0x402038
jmp 0x402032
mov edi, 8
mov dword [0x40e774], edi
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x402060
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x402075
push 0x18
push eax
call fcn.00407dba
add esp, 8
mov ebx, dword [ebp - 0xa0]
mov eax, edi
mov dword [0x40e780], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407d72
mov esp, ebp
pop ebp
ret 0xc