Function at 0x10006290
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x1002a040]
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 - 0x2f0], 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 0x100065a1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100063e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10006395
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10006395
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10006395
mov ecx, dword [ebp - 0x2f0]
mov edx, dword [ecx]
test edx, edx
jne 0x10006355
push 0x200
push edx
push dword [0x1002c904]
mov dword [ecx + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x2f0]
mov edx, eax
mov dword [ecx], edx
test edx, edx
je 0x100063ba
jmp 0x10006383
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
jb 0x10006383
add eax, eax
mov dword [ecx + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1002c904]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100063ba
mov ecx, dword [ebp - 0x2f0]
mov dword [ecx], edx
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x2f0]
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 0x10006300
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100063da
mov ebx, dword [ebp - 0x2f0]
xor edi, edi
mov eax, dword [ebx]
test eax, eax
je 0x100063e0
push eax
push edi
push dword [0x1002c904]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], edi
jmp 0x100063e0
mov ebx, dword [ebp - 0x2f0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x100065a1
cmp dword [ebx], 0
je 0x10006533
xor edi, edi
mov dword [ebp - 0x300], edi
cmp dword [ebx + 8], edi
jbe 0x10006533
nop dword [eax]
mov eax, dword [ebx]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov dword [ebp - 0x2f4], esi
test esi, esi
je 0x10006523
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 0x10001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000651c
mov eax, dword [0x1002ca88]
mov dword [ebp - 0x2fc], eax
test eax, eax
je 0x1000651c
xor ecx, ecx
mov dword [ebp - 0x2f8], ecx
mov edx, dword [0x1002ca80]
mov eax, dword [ebp + 8]
add edx, ecx
sub eax, 0
je 0x10006499
sub eax, 1
je 0x10006492
movzx ecx, byte [edx + 0x14]
shr ecx, 2
and ecx, 1
jmp 0x1000649b
mov ecx, 1
jmp 0x1000649b
xor ecx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x100064f4
test ecx, ecx
je 0x10006550
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x100064d4
mov edi, dword [edx]
mov ebx, dword [ebp - 0x234]
movzx eax, byte [edx + ecx + 0x1c]
add eax, edi
cmp ebx, eax
je 0x10006546
inc ecx
cmp ecx, esi
jb 0x100064c4
xor ecx, ecx
mov esi, dword [ebp - 0x2f4]
test ecx, ecx
je 0x100064f4
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x234], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x2f8]
add ecx, 0x2c
sub dword [ebp - 0x2fc], 1
mov dword [ebp - 0x2f8], ecx
jne 0x10006471
mov ebx, dword [ebp - 0x2f0]
mov edi, dword [ebp - 0x300]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov dword [ebp - 0x300], edi
cmp edi, dword [ebx + 8]
jb 0x10006410
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c824
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x100064d6
test bl, 1
mov ebx, dword [ebp - 0x234]
je 0x10006568
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp ebx, eax
je 0x100064d6
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x100064d4
mov edi, dword [edx + 8]
nop dword [eax]
movzx ecx, byte [edx + eax + 0x24]
add ecx, edi
cmp ebx, ecx
je 0x10006595
inc eax
cmp eax, esi
jb 0x10006580
jmp 0x100064d4
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
jmp 0x100064d6
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c824
mov esp, ebp
pop ebp
ret