Function at 0x497660
Capabilities:
Enumerate processes
Hide graphical window
Set current directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510668
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x564040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c0], ecx
mov eax, dword [ebx + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [eax], 1
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
call fcn.00422100
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2b4]
push eax
push dword [ebx + 0x10]
call fcn.004236a0
test al, al
je 0x497b3a
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2a9], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.004169c0
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00417dc0
cmp dword [eax + 0x14], 7
jbe 0x497718
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x74]
call fcn.00415020
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00415020
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.004eda81
add esp, 8
test eax, eax
je 0x497756
cmp eax, 0xd
jne 0x497a61
cmp dword [ebp - 0x18], 7
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
test esi, esi
je 0x4977e0
lea eax, [esi - 1]
or edi, 0xffffffff
cmp eax, edi
mov ecx, edi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea eax, [edx + ecx*2]
je 0x49778d
nop
cmp eax, edx
je 0x4977e0
sub eax, 2
cmp word [eax], 0x2e
jne 0x497780
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x4977e0
lea ecx, [eax + 1]
cmp ecx, esi
jae 0x4977e0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
ja 0x497b94
sub esi, ecx
lea eax, [ebp - 0x2c]
cmp esi, 0xffffffff
cmovb edi, esi
cmp dword [ebp - 0x18], 7
push edi
cmova eax, dword [ebp - 0x2c]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x44]
call fcn.00416e30
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
jmp 0x4977fa
xor edx, edx
xorps xmm0, xmm0
mov edi, 7
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 0x30], edi
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
cmp edi, 7
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x44]
cmova eax, esi
cmp edx, 4
jne 0x497a29
mov ecx, str..exe
test edx, edx
je 0x49784b
sub eax, ecx
mov dword [ebp - 0x2b0], eax
nop dword [eax]
nop dword [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x497a29
mov eax, dword [ebp - 0x2b0]
add ecx, 2
sub edx, 1
jne 0x497830
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
call fcn.0041ae10
test eax, eax
je 0x4979e5
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push 0
movups xmmword [ecx], xmm0
push 0x520f50
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416e30
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x2bc], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp dword [ebp - 0x18], 7
mov eax, dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2b0], eax
cmp eax, 0x7ffffffe
ja 0x497b99
cmp eax, 7
ja 0x4978ed
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
jmp 0x497952
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4978fe
mov eax, 0x7ffffffe
jmp 0x497908
mov edx, 0xa
cmp eax, edx
cmovb eax, edx
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2b8]
push eax
push ecx
call fcn.00417150
mov edx, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2b0]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x2b8]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x2b0]
mov dword [edx], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2b4]
push eax
call fcn.004d6750
add esp, 0x14
xor ecx, ecx
mov byte [ebp - 4], 2
call fcn.00418600
add esp, 0x30
test al, al
je 0x4979a1
cmp edi, 7
jbe 0x497afc
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x497992
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497b9e
push edi
push esi
call fcn.004d1b31
add esp, 8
jmp 0x497afc
mov byte [ebp - 0x2a9], 0
cmp edi, 7
jbe 0x497afc
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x4979d6
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497b9e
push edi
push esi
call fcn.004d1b31
add esp, 8
jmp 0x497afc
mov byte [ebp - 0x2a9], 0
cmp edi, 7
jbe 0x497afc
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x497a1a
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497b9e
push edi
push esi
call fcn.004d1b31
add esp, 8
jmp 0x497afc
mov byte [ebp - 4], 0
cmp edi, 7
jbe 0x497a61
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x497a57
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497b9e
push edi
push esi
call fcn.004d1b31
add esp, 8
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x497ad4
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x497ad4
nop dword [eax]
push dword [ebp - 0x2a0]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x497ac2
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push esi
call dword [sym.imp.KERNEL32.dll_K32EmptyWorkingSet]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x497a90
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
sub esp, 8
push 0
push eax
call fcn.0041af20
add esp, 0x10
mov ecx, 0x20
cmp ecx, eax
sbb al, al
and byte [ebp - 0x2a9], al
cmp dword [0x56fd04], 7
mov eax, 0x56fcf0
cmova eax, dword [0x56fcf0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp - 0x2a9], 0
je 0x497b3a
mov eax, dword [ebp - 0x2c0]
push 0
push dword [eax + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 1
jmp 0x497b3c
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x497b72
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x497b68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497b9e
push ecx
push edx
call fcn.004d1b31
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d1b1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00402980
call fcn.00401630
call fcn.004e183c
int3