Function at 0x1007e0e0
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, 0xac
mov eax, dword [0x100b3040]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x3c], ebx
test edi, edi
jne 0x1007e125
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10080947
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100b4aac], eax
je 0x1007e14f
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10080947
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x100b4ab0]
test eax, eax
jne 0x1007e56f
test ebx, ebx
je 0x1007e176
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1007e192
mov dword [0x100b4ab0], 6
mov dword [0x100b4aa4], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10080947
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.1007dc20
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.1007dc20
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x18]
jne 0x1007e1c5
cmp dword [0x100b4a94], ebx
jne 0x1007e564
jmp 0x1007e58d
push 0x18
call fcn.10080a48
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.1007d790
mov ecx, dword [0x100b4aa8]
add esp, 4
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x100b4aa0]
test ecx, ecx
jne 0x1007e20d
test eax, eax
je 0x1007e220
mov ecx, eax
mov dword [0x100b4aa8], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1007e220
cmp edx, ebx
jb 0x1007e220
cmp edx, edi
jbe 0x1007e2b4
mov ecx, eax
mov dword [0x100b4aa8], ecx
test eax, eax
je 0x1007e24e
mov edx, eax
mov eax, dword [edx + 8]
test eax, eax
je 0x1007e23d
cmp eax, ebx
jb 0x1007e23d
cmp eax, edi
jbe 0x1007e2b4
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x100b4aa8], ecx
mov edx, ecx
test eax, eax
jne 0x1007e22e
mov ecx, esi
mov edx, ebx
push edi
and ecx, 0xffff0000
call fcn.1007da60
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1007e586
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x100b4aa0]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x100b4aa8], ecx
mov dword [0x100b4aa0], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x1007e2a0
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [esp + 0x1c]
jb 0x1007e586
cmp ebx, edi
ja 0x1007e586
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x1007e588
lea eax, [ebx + 0x38]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
movq qword [eax], xmm0
mov edx, ebx
lea eax, [ebx + 0x1e]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x6c]
mov dword [esp + 0x50], 0
test edx, edx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x6c], 0
cmovne ecx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], 0
mov edi, esi
movups xmmword [esp + 0x40], xmm0
test esi, esi
jne 0x1007e36b
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1007e387
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x100b6824]
lea eax, [eax*8 + 0x100b6820]
push esi
push ecx
push eax
lea ecx, [esp + 0x4c]
call edx
mov esi, eax
mov edx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
mov ebx, esi
add eax, dword [esp + 0x30]
sub ebx, dword [esp + 0x18]
add edx, eax
mov cl, dl
mov dword [esp + 0x28], edx
sub cl, byte [esp + 0x13]
mov al, bl
shl cl, 3
and al, 7
or cl, al
mov eax, dword [esp + 0x34]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
cmp ecx, 8
jae 0x1007e41c
mov al, byte [edi]
cmp al, 0xeb
je 0x1007e41c
cmp al, 0xe9
je 0x1007e41c
cmp al, 0xe0
je 0x1007e41c
cmp al, 0xc2
je 0x1007e41c
cmp al, 0xc3
je 0x1007e41c
cmp al, 0xcc
je 0x1007e41c
cmp al, 0xf3
jne 0x1007e484
cmp byte [edi + 1], 0xc3
je 0x1007e41c
cmp al, 0x26
je 0x1007e407
cmp al, 0x2e
je 0x1007e407
cmp al, 0x36
je 0x1007e407
cmp al, 0x3e
je 0x1007e407
cmp al, 0x64
je 0x1007e407
cmp al, 0x65
jne 0x1007e413
cmp byte [edi + 1], 0xff
jne 0x1007e413
cmp byte [edi + 2], 0x25
je 0x1007e41c
cmp ebx, 5
jb 0x1007e312
mov edi, dword [esp + 0x18]
cmp ebx, 5
jae 0x1007e447
mov ecx, esi
call fcn.1007d820
test eax, eax
je 0x1007e538
add esi, eax
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x1007e425
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ecx, 8
ja 0x1007e538
cmp edx, dword [esp + 0x24]
jbe 0x1007e457
int3
mov eax, dword [esp + 0x14]
sub dl, al
push ebx
push edi
mov byte [eax + 0x1e], dl
mov byte [eax + 0x36], bl
add eax, 0x20
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x1007e495
mov ebx, dword [esp + 0x14]
mov esi, 6
jmp 0x1007e58d
cmp al, 0xff
jne 0x1007e3ef
cmp byte [edi + 1], 0x25
jmp 0x1007e411
mov eax, dword [esp + 0x14]
lea esi, [ebx + edi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x44], ecx
movzx ecx, byte [eax + 0x1e]
add ecx, eax
mov dword [eax + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.1007d760
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1007e4ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x14]
mov esi, eax
jmp 0x1007e58d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], edi
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x14], eax
mov eax, dword [0x100b4a90]
mov dword [ecx], eax
xor eax, eax
mov dword [0x100b4a90], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10080947
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x100b4a94], 0
mov esi, 9
mov ebx, dword [esp + 0x14]
je 0x1007e58d
mov edi, dword [esp + 0x20]
mov ecx, ebx
call fcn.1007dbf0
test edi, edi
je 0x1007e564
push 0x18
push edi
call fcn.1008095a
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [0x100b4aa4], eax
mov eax, esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10080947
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov esi, 8
mov edi, dword [esp + 0x20]
mov dword [0x100b4ab0], esi
test ebx, ebx
je 0x1007e555
jmp 0x1007e54e