Function at 0x100321f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x300
mov dword [esp + 0x18], edx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esp + 8], ecx
mov dword [ecx + 8], 0
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov eax, 9
cmp ebp, 0xffffffff
je 0x1003257e
mov dword [esp + 0x34], 0x1c
lea eax, [esp + 0x34]
push eax
push ebp
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10032572
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], ebp
jmp 0x100322c7
mov dword [ebx + 4], 0x80
push 0x200
push 0
push dword [0x100eba84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [esp + 8]
mov dword [ebx], eax
test eax, eax
je 0x10032572
mov ecx, dword [esp + 0x3c]
mov ebp, esi
mov esi, edi
mov edi, ebx
mov edx, dword [ebx + 8]
lea ebx, [edx + 1]
mov dword [edi + 8], ebx
mov edi, esi
mov esi, ebp
mov ebp, dword [esp + 0xc]
mov dword [eax + edx*4], ecx
nop word cs:[eax + eax]
mov dword [esp + 0x34], 0x1c
lea eax, [esp + 0x34]
push eax
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x10032320
cmp dword [esp + 0x34], 0x10
jb 0x100322b0
mov ebx, dword [esp + 0x40]
call esi
cmp ebx, eax
jne 0x100322b0
mov ebx, dword [esp + 0x3c]
call edi
cmp ebx, eax
je 0x100322b0
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1003225c
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
jb 0x10032284
lea edx, [ecx + ecx]
mov dword [ebx + 4], edx
shl ecx, 3
push ecx
push eax
push 0
push dword [0x100eba84]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10032557
mov dword [ebx], eax
jmp 0x10032284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov ebx, dword [esp + 8]
jne 0x10032557
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebx], 0
je 0x1003257e
cmp dword [ebx + 8], 0
je 0x1003257e
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov ecx, eax
inc ecx
mov dword [esp + 0x2c], ecx
cmove eax, ebp
mov dword [esp + 0x14], eax
imul eax, eax, 0x2c
lea ecx, [eax + 0x24]
mov dword [esp + 0x24], ecx
add eax, 0x1c
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x314]
jmp 0x1003239c
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x30]
inc ebp
mov ebx, dword [esp + 8]
cmp ebp, dword [ebx + 8]
jae 0x10032589
mov eax, dword [ebx]
push dword [eax + ebp*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x1003238e
mov dword [esp + 0x30], ebp
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [esp + 0x34], 0x10001
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x20], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10032380
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x18], 0xffffffff
jne 0x100323e9
mov ebx, dword [0x100eba90]
cmp dword [esp + 0x14], ebx
jae 0x10032380
mov edi, dword [0x100eba88]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x14]
mov dword [esp + 4], ebx
jmp 0x10032427
mov ebx, dword [esp + 4]
inc ebp
add dword [esp + 0xc], 0x2c
add dword [esp + 0x20], 0x2c
cmp ebp, ebx
je 0x10032380
imul ecx, ebp, 0x2c
mov eax, esi
test esi, esi
je 0x1003244a
cmp esi, 1
jne 0x10032440
mov eax, 1
jmp 0x1003244a
mov eax, dword [edi + ecx + 0x14]
shr eax, 2
and eax, 1
mov ebx, dword [edi + ecx + 0x14]
bt ebx, 1
mov edx, eax
sbb edx, 0
je 0x10032410
lea edx, [edi + ecx]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xec]
test eax, eax
je 0x100324ab
mov eax, dword [edi + ecx + 0x18]
and eax, 0xf
je 0x10032410
mov esi, dword [esp + 0x10]
mov ebx, dword [esi]
mov esi, dword [esp + 0xc]
mov dword [esp], edi
add esi, edi
nop word cs:[eax + eax]
movzx edi, byte [esi - 8]
add edi, ebx
cmp edi, edx
je 0x1003250d
inc esi
dec eax
jne 0x10032490
mov esi, dword [esp + 0x314]
mov ebx, dword [esp + 4]
jmp 0x10032505
mov dword [esp], edi
test bl, 1
mov ebx, dword [esp + 4]
je 0x100324cb
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
lea esi, [eax - 5]
cmp esi, edx
mov esi, dword [esp + 0x314]
je 0x1003252b
mov edi, dword [esp]
mov eax, dword [edi + ecx + 0x18]
and eax, 0xf
je 0x10032414
mov ecx, dword [edi + ecx + 8]
mov esi, dword [esp + 0x20]
add esi, edi
nop word cs:[eax + eax]
movzx edi, byte [esi + 8]
add edi, ecx
cmp edi, edx
je 0x1003251b
inc esi
dec eax
jne 0x100324f0
mov esi, dword [esp + 0x314]
mov edi, dword [esp]
jmp 0x10032414
mov eax, dword [esp]
add ecx, eax
add ecx, 8
mov ebx, dword [esp + 4]
jmp 0x1003251f
mov ecx, dword [esp + 0x10]
movzx eax, byte [esi]
add eax, dword [ecx]
mov esi, dword [esp + 0x314]
test eax, eax
mov edi, dword [esp]
je 0x10032414
mov dword [esp + 0xec], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edi, dword [0x100eba88]
jmp 0x10032414
mov eax, dword [ebx]
test eax, eax
je 0x10032572
push eax
push 0
push dword [0x100eba84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], 0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
add esp, 0x300
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x1003257e