Function at 0x1012bee0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f862e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10252964]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push 4
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1012bfdb
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1012bfd4
cmp dword [ebp - 0x38], 0x10
jb 0x1012bfb9
cmp dword [ebp - 0x2c], edi
jne 0x1012bfb9
cmp ebx, dword [ebp - 0x4c]
je 0x1012bfa3
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x18], ebx
jmp 0x1012bfb9
lea eax, [ebp - 0x30]
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.100c4240
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1012bf86
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], edi
cmp edi, ecx
je 0x1012c080
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x1012c00e
mov ecx, dword [edi]
nop dword [eax]
cmp ecx, dword [eax]
je 0x1012c06f
add eax, 4
cmp eax, ebx
jne 0x1012c000
mov ecx, dword [ebp - 0x44]
mov esi, dword [edx]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x1012c072
mov ebx, dword [ebp - 0x40]
nop word [eax + eax]
lea edx, [eax + 0xc]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x1012c05f
mov edi, dword [esi + 4]
cmp edx, edi
je 0x1012c050
lea eax, [edx - 8]
mov ecx, dword [eax + 0x10]
lea eax, [eax + 0xc]
mov dword [eax - 8], ecx
mov cl, byte [eax]
mov byte [eax - 0xc], cl
mov ecx, dword [edx]
add edx, 0xc
mov dword [eax - 0x10], ecx
cmp edx, edi
jne 0x1012c033
mov edi, dword [esi + 4]
lea eax, [edi - 0xc]
mov edi, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov esi, dword [ebx]
mov eax, dword [esi]
jmp 0x1012c061
mov eax, edx
add eax, 0xc
cmp eax, dword [esi + 4]
jne 0x1012c020
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
add edi, 4
mov dword [ebp - 0x3c], edi
cmp edi, ecx
jne 0x1012bff4
mov edx, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x1012c0c8
mov eax, dword [ebp - 0x4c]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
mov dword [ebp - 4], 1
cmp ecx, 0x1000
jb 0x1012c0be
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012c0e4
push ecx
push edx
call fcn.101c1346
add esp, 8
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.101c1860
mov esp, ebp
pop ebp
ret
call fcn.100f24b4
int3