Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x280
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x27c], eax
push esi
push edi
nop dword [eax]
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4010a5
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4010a5
nop word [eax + eax]
mov ecx, 0x403128
lea eax, [esp + 0x74]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401086
test dx, dx
je 0x401082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401086
add eax, 4
add ecx, 4
test dx, dx
jne 0x401060
xor eax, eax
jmp 0x40108b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4010a1
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401050
jmp 0x4010a5
mov edi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, eax
push 0
push 4
lea eax, [esp + 0x30]
push eax
push 0xb6f5f0
push edi
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401020
push 0
push 4
lea ecx, [esp + 0x18]
add eax, 0x14
push ecx
push eax
push edi
mov dword [esp + 0x24], eax
call esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push 0
push 4
push ecx
lea esi, [eax + 0x34]
add eax, 0x30
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call eax
push 0
push 4
lea eax, [esp + 0x48]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call esi
push 0
push 4
lea eax, [esp + 0x3c]
push eax
push 0xb6f9cc
push edi
call esi
push 0
push 4
lea eax, [esp + 0x40]
push eax
push 0xb6f9d0
push edi
call esi
push 0
push 4
lea eax, [esp + 0x34]
push eax
push 0xb6f3b8
push edi
call esi
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push 0
push 4
add eax, 0x79c
push ecx
push eax
push edi
mov dword [esp + 0x20], eax
call esi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 0
push 4
add eax, 0x534
push ecx
push eax
push edi
mov dword [esp + 0x2c], eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401020
push 0
push 4
lea esi, [eax + 0x48]
add eax, 0x44
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call eax
push 0
push 4
lea eax, [esp + 0x54]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call esi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push 4
add eax, 0x14
push ecx
push eax
push edi
mov dword [esp + 0x28], eax
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push 0
push 4
push ecx
lea esi, [eax + 0x34]
add eax, 0x30
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call eax
push 0
push 4
lea eax, [esp + 0x28]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call esi
push 0
push 4
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
add eax, 0x540
push eax
push edi
call esi
movss xmm0, dword [esp + 0x30]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x401020
movss xmm2, dword [esp + 0x34]
movss xmm1, dword [esp + 0x38]
subss xmm1, dword [esp + 0x20]
subss xmm2, dword [esp + 0x24]
movss xmm0, dword [0x403150]
andps xmm1, xmm0
andps xmm2, xmm0
mulss xmm1, xmm1
movaps xmm0, xmm2
movss dword [esp + 8], xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x40127c
sqrtsd xmm0, xmm0
jmp 0x401281
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 8]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [esp + 8], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_asin_precise
movss xmm1, dword [esp + 8]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x1c], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm4, dword [esp + 0x3c]
movss xmm1, dword [esp + 0x24]
comiss xmm4, xmm1
movss xmm3, dword [esp + 0x40]
movss xmm2, dword [esp + 0x20]
movss xmm5, dword [0x403160]
cvtsd2ss xmm0, xmm0
jbe 0x4012e6
comiss xmm2, xmm3
jbe 0x4012e6
xorps xmm0, xmm5
comiss xmm1, xmm4
jbe 0x401320
comiss xmm3, xmm2
movss xmm1, dword [esp + 0x1c]
movsd xmm4, qword [0x403148]
jbe 0x401309
cvtps2pd xmm0, xmm1
addsd xmm0, xmm4
cvtpd2ps xmm0, xmm0
comiss xmm2, xmm3
jbe 0x401320
xorps xmm0, xmm0
xorps xmm1, xmm5
cvtss2sd xmm0, xmm1
subsd xmm0, xmm4
cvtpd2ps xmm0, xmm0
cvtss2sd xmm0, xmm0
push 0
push 4
lea eax, [esp + 0x4c]
push eax
push 0xb7347a
addsd xmm0, qword [0x403140]
push edi
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x30], xmm0
call esi
cmp dword [esp + 0x44], 0
jle 0x401020
cmp dword [esp + 0x18], 6
jne 0x401020
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0xb6f258
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x401020