Function at 0x10012210
Capabilities:
Enumerate threads
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007363e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x1044a964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x1a0], edi
cmp edi, 0xffffffff
jne 0x1001225a
xor al, al
jmp 0x1001237c
lea eax, [ebp - 0x144]
mov dword [ebp - 0x194], 0x1c
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
push eax
movq qword [ebp - 0x144], xmm0
call fcn.10012630
add esp, 4
lea eax, [ebp - 0x194]
mov dword [ebp - 4], 0
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1001235d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x188], eax
je 0x10012348
push dword [ebp - 0x18c]
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x1a8], eax
test eax, eax
je 0x10012348
push eax
call fcn.10012760
mov esi, eax
add esp, 4
test esi, esi
je 0x1001233c
mov ecx, dword [ebp - 0x144]
mov edi, dword [ebp - 0x140]
cmp ecx, edi
je 0x10012306
nop
mov edx, dword [ecx]
cmp esi, edx
jb 0x100122ff
mov eax, dword [ecx + 4]
add eax, edx
cmp esi, eax
jb 0x1001232c
add ecx, 0xc
cmp ecx, edi
jne 0x100122f0
xor al, al
test al, al
jne 0x10012336
push 0x1c
lea eax, [ebp - 0x178]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10012330
test byte [ebp - 0x164], 0xf0
setne al
jmp 0x10012332
mov al, 1
jmp 0x10012308
xor al, al
test al, al
jne 0x10012397
mov edi, dword [ebp - 0x1a0]
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x194]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100122a4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x195], 0
lea ecx, [ebp - 0x144]
call fcn.100116f0
mov al, byte [ebp - 0x195]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ce42
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x140]
mov edi, dword [ebp - 0x144]
mov dword [ebp - 0x19c], ecx
cmp edi, ecx
je 0x100123e7
mov eax, ecx
nop
mov ecx, dword [edi]
cmp esi, ecx
jb 0x100123e0
mov eax, dword [edi + 4]
add eax, ecx
cmp esi, eax
jae 0x100123da
push 0x104
lea eax, [ebp - 0x138]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10012487
mov eax, dword [ebp - 0x19c]
add edi, 0xc
cmp edi, eax
jne 0x100123b0
push esi
push str.0x_p
lea eax, [ebp - 0x28]
push 0x14
push eax
call fcn.100136a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x15c], 0
add esp, 0x10
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x15c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012426
lea eax, [ebp - 0x28]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.10005040
mov eax, 0x100787ec
lea ecx, [ebp - 0x34]
sub eax, 0x2218797d
push eax
call fcn.100114d0
mov dword [ebp - 0x1ac], eax
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10012461
sub esi, ecx
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x14c]
sub eax, ecx
mov dword [ebp - 0x1b0], ecx
cmp eax, esi
jb 0x10012620
jmp 0x100124c7
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x14c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100124b5
lea eax, [ebp - 0x138]
jmp 0x10012430
lfence
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
mov edi, 0xf
mov dword [ebp - 0x174], 0
cmovae eax, dword [ebp - 0x15c]
add ecx, esi
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x174]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x19c], eax
cmp ecx, edi
jbe 0x10012569
mov edi, ecx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x10012533
mov edi, SysReAllocString
jmp 0x1001253d
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x174]
call fcn.10004fe0
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x174], eax
push esi
push dword [ebp - 0x1ac]
mov dword [ebp - 0x164], ecx
push eax
mov dword [ebp - 0x160], edi
call fcn.1004eb90
mov edi, dword [ebp - 0x19c]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
lea eax, [edi + esi]
push eax
call fcn.1004eb90
mov eax, dword [ebp - 0x1a4]
mov byte [edi + eax], 0
cmp dword [ebp - 0x160], 0x10
lea eax, [ebp - 0x174]
xorps xmm0, xmm0
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x174]
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.10041dc0
add esp, 0x1c
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x174]
call fcn.100037b0
lea ecx, [ebp - 0x15c]
call fcn.100037b0
mov byte [ebp - 0x195], 1
jmp 0x1001236b
call fcn.10004fc0
int3