Function at 0x10125f80
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d702e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10205ac8]
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 0x1012607b
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 0x10126074
cmp dword [ebp - 0x38], 0x10
jb 0x10126059
cmp dword [ebp - 0x2c], edi
jne 0x10126059
cmp ebx, dword [ebp - 0x4c]
je 0x10126043
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x18], ebx
jmp 0x10126059
lea eax, [ebp - 0x30]
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.100b6820
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 0x10126026
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 0x10126120
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x101260ae
mov ecx, dword [edi]
nop dword [eax]
cmp ecx, dword [eax]
je 0x1012610f
add eax, 4
cmp eax, ebx
jne 0x101260a0
mov ecx, dword [ebp - 0x44]
mov esi, dword [edx]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x10126112
mov ebx, dword [ebp - 0x40]
nop word [eax + eax]
lea edx, [eax + 0xc]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x101260ff
mov edi, dword [esi + 4]
cmp edx, edi
je 0x101260f0
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 0x101260d3
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 0x10126101
mov eax, edx
add eax, 0xc
cmp eax, dword [esi + 4]
jne 0x101260c0
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 0x10126094
mov edx, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x10126168
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 0x1012615e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10126184
push ecx
push edx
call fcn.101b44e7
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.101b4a00
mov esp, ebp
pop ebp
ret
call fcn.100ecc9c
int3