Function at 0x10007e20
Capabilities:
Allocate or change rwx memory
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005176d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1006a800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
cmp byte [ebp + 8], 0
mov ecx, dword [edi + 0x70]
je 0x1000813a
test ecx, ecx
jne 0x100080ef
push dword [edi]
call fcn.100057d0
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.10006030
mov dword [edi + 0x70], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x3c], esi
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
push ebx
push 4
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x100080ba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10007f22
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x2c], 0x10
jb 0x10007f05
cmp dword [ebp - 0x20], esi
jne 0x10007f05
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x30]
je 0x10007f05
cmp edi, ebx
je 0x10007ef2
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x4c], edi
jmp 0x10007f05
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x50]
call fcn.10001490
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1c
push eax
push dword [ebp - 0x44]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10007ed1
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x3c], esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x10007f5a
nop
push dword [esi]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10007f53
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x10007f30
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x30]
push eax
push 0x40
push dword [esi + 0x30]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100080b7
push dword [esi + 0x30]
lea eax, [ebp - 0x30]
push eax
call fcn.10001de0
add esp, 8
lea ecx, [esi + 4]
push eax
call fcn.10001430
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10007f9e
push eax
call fcn.1002eaa9
add esp, 4
push dword [esi + 0x30]
push dword [esi]
push dword [esi + 4]
call fcn.10030610
mov esi, dword [esi]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x30], 0xe9
mov eax, dword [esi]
mov edx, dword [edx + 0x70]
sub edx, esi
movzx ecx, al
mov dword [ebp - 0x38], eax
sub edx, 5
cmp al, 0xe8
mov dword [ebp - 0x37], edx
cmovne ecx, dword [ebp - 0x30]
mov byte [ebp - 0x38], cl
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
movzx eax, byte [ebp - 0x34]
mov byte [esi + 4], al
mov esi, dword [ebp - 0x40]
mov eax, dword [esi + 0x30]
sub eax, 5
push eax
mov eax, dword [esi]
add eax, 5
push 0x90
push eax
call fcn.10030b90
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
push 0x20
push dword [esi + 0x30]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100080b7
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
cmp esi, edi
je 0x1000804d
nop
push dword [esi]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10008043
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x10008020
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1000807e
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x10008074
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008165
push ebx
push ecx
call fcn.1002ea92
add esp, 8
mov edi, dword [ebp - 0x40]
mov eax, dword [edi + 0x68]
push dword [eax + 0x20]
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002efd1
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x100080eb
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x100080e1
mov esi, dword [eax - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008165
push ebx
push esi
call fcn.1002ea92
add esp, 8
xor al, al
jmp 0x10008099
mov eax, dword [edi + 0x68]
mov ebx, dword [edi + 0x3c]
mov edx, dword [edi + 0x38]
mov ecx, edx
mov esi, dword [eax + 0x1c]
mov eax, ebx
shrd ecx, eax, 8
mov eax, ebx
mov byte [esi + 1], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, ebx
mov byte [esi], dl
shrd edx, eax, 0x18
mov eax, ebx
mov byte [esi + 4], bl
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
shr ebx, 0x18
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov byte [esi + 6], al
mov byte [esi + 7], bl
jmp 0x10008081
test ecx, ecx
je 0x10008081
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x68]
mov dword [edi + 0x3c], ecx
mov eax, dword [eax + 0x1c]
mov dword [eax], 0x90909090
mov dword [eax + 4], 0x90909090
jmp 0x10008081
call fcn.1003421f
int3