Function at 0x100d02b0
Capabilities:
Enumerate threads

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x1010eeb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10177468]
push esi
push edi
test eax, eax
jne 0x100d0482
push 0xc
lea eax, [ebp - 0x6c]
xor edi, edi
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x64], edi
push edi
movq qword [ebp - 0x6c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
push 0
cmovne edi, dword [ebp - 0x64]
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x50], esi
cmp esi, 0xffffffff
je 0x100d046e
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x60], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x4c]
movlpd qword [ebp - 0x48], xmm0
push eax
push esi
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x4c], 0x1c
call sub.KERNEL32.dll_Thread32First
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100d0469
nop
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x40], eax
jne 0x100d0455
push dword [ebp - 0x44]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100d044f
test edi, edi
je 0x100d03f3
cmp byte [0x10177464], 0
mov dword [ebp - 0x54], 0
jne 0x100d03d0
push str.ntdll.dll
mov byte [0x10177464], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100d03f3
push str.NtQueryInformationThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10177460], eax
jmp 0x100d03d5
mov eax, dword [0x10177460]
test eax, eax
je 0x100d03f3
push 0
push 4
lea ecx, [ebp - 0x54]
push ecx
push 9
push esi
call eax
test eax, eax
jne 0x100d03f3
cmp dword [ebp - 0x54], edi
je 0x100d0495
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
movaps xmmword [ebp - 0x30], xmm0
push eax
lea eax, [ebp - 0x28]
movaps xmmword [ebp - 0x20], xmm0
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x100d0444
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
add ecx, dword [ebp - 0x30]
mov eax, ecx
adc edx, 0
or eax, edx
je 0x100d0444
cmp edx, dword [ebp - 0x5c]
ja 0x100d0444
jb 0x100d0436
cmp ecx, dword [ebp - 0x58]
jae 0x100d0444
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
mov dword [0x10177468], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x100d0455
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100d0370
push dword [ebp - 0x50]
call esi
mov eax, dword [0x10177468]
test eax, eax
jne 0x100d0482
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10177468], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100de133
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x44]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10177468], eax
call esi
push dword [ebp - 0x50]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x10177468]
xor ecx, ebp
pop edi
pop esi
call fcn.100de133
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret