Function at 0x10007410
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x1003e020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
push 4
mov dword [ebp - 0x2f4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007567
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10007589
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x2fc], 1
nop dword [eax + eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1000751d
call edi
cmp dword [ebp - 0x14], eax
jne 0x1000751d
call ebx
cmp dword [ebp - 0x18], eax
je 0x1000751d
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ecx]
test edx, edx
jne 0x100074dd
push 0x200
push edx
push dword [0x10040bcc]
mov dword [ecx + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x2f4]
mov edx, eax
mov dword [ecx], edx
test edx, edx
je 0x10007542
jmp 0x1000750b
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
jb 0x1000750b
add eax, eax
mov dword [ecx + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10040bcc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10007542
mov ecx, dword [ebp - 0x2f4]
mov dword [ecx], edx
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x2f4]
inc dword [eax + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10007490
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000757d
mov ebx, dword [ebp - 0x2f4]
xor edi, edi
mov eax, dword [ebx]
test eax, eax
je 0x10007589
push eax
push edi
push dword [0x10040bcc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d62d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x2fc]
mov ebx, dword [ebp - 0x2f4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10007567
cmp dword [ebx], 0
je 0x100076c2
xor esi, esi
mov dword [ebp - 0x300], esi
cmp dword [ebx + 8], esi
jbe 0x100076c2
nop
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 0x2f8], edi
test edi, edi
je 0x100076b2
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 0x10001
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100076ab
mov esi, dword [0x10040d28]
mov dword [ebp - 0x2f0], esi
test esi, esi
je 0x100076a5
xor ecx, ecx
mov dword [ebp - 0x2fc], ecx
mov edx, dword [0x10040d20]
mov eax, dword [ebp + 8]
add edx, ecx
sub eax, 0
je 0x1000763a
sub eax, 1
je 0x10007633
movzx ecx, byte [edx + 0x14]
shr ecx, 2
and ecx, 1
jmp 0x1000763c
mov ecx, 1
jmp 0x1000763c
xor ecx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x1000767b
test ecx, ecx
je 0x100076df
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x10007675
mov edi, dword [edx]
mov ebx, dword [ebp - 0x234]
movzx eax, byte [edx + ecx + 0x1c]
add eax, edi
cmp ebx, eax
je 0x100076d5
inc ecx
cmp ecx, esi
jb 0x10007665
mov esi, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2fc]
mov edi, dword [ebp - 0x2f8]
add ecx, 0x2c
sub esi, 1
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2f0], esi
jne 0x10007612
mov ebx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x300]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x300], esi
cmp esi, dword [ebx + 8]
jb 0x100075b0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d62d
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x10007720
test bl, 1
mov ebx, dword [ebp - 0x234]
je 0x100076f3
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp ebx, eax
je 0x1000772c
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x10007675
mov edi, dword [edx + 8]
movzx ecx, byte [edx + eax + 0x24]
add ecx, edi
cmp ebx, ecx
je 0x10007719
inc eax
cmp eax, esi
jb 0x10007704
jmp 0x10007675
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
mov edi, dword [ebp - 0x2f8]
mov esi, dword [ebp - 0x2f0]
test ecx, ecx
je 0x1000767b
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x234], ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1000767b