Function at 0x477620
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ccd6
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x5f5ea4]
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 dword [ebp - 0x470], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x46c], ebx
test ebx, ebx
je 0x47798c
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x477985
nop
push dword [ebp - 0x45c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x47796f
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x104
push ecx
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x477963
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.0047df10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
lea ebx, [ebp - 0x234]
mov edx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x224]
cmovae eax, edx
cmovae ebx, edx
lea eax, [eax + esi*2]
lea esi, [ebp - 0x234]
mov ecx, eax
cmovae esi, edx
xor edi, edi
sub ecx, esi
inc ecx
shr ecx, 1
cmp esi, eax
cmova ecx, edi
mov dword [ebp - 0x468], ecx
test ecx, ecx
je 0x477762
sub ebx, esi
nop dword [eax]
movzx eax, word [esi]
push eax
call fcn.00553e6a
inc edi
mov word [ebx + esi], ax
add esp, 4
lea esi, [esi + 2]
cmp edi, dword [ebp - 0x468]
jne 0x477740
mov edx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x234]
mov ebx, dword [ebp - 0x224]
cmp esi, 8
push 3
cmovae ecx, edx
mov edx, ebx
push 0x5e730c
push 0
call fcn.00454750
add esp, 0xc
cmp eax, 0xffffffff
jne 0x477824
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
push 6
cmp esi, 8
mov edx, ebx
push str.backup
cmovae ecx, edi
push 0
call fcn.00454750
add esp, 0xc
cmp eax, 0xffffffff
jne 0x477824
push 8
cmp esi, 8
lea ecx, [ebp - 0x234]
push str.database
cmovae ecx, edi
mov edx, ebx
push 0
call fcn.00454750
add esp, 0xc
cmp eax, 0xffffffff
jne 0x477824
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea eax, [ebp - 0x218]
push 0x5e730c
push eax
call ebx
test eax, eax
jne 0x477824
push str.backup
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x477824
push str.database
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x47791a
xor eax, eax
mov dword [ebp - 0x478], 0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x474], 7
mov word [ebp - 0x488], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477850
sub ecx, edx
lea eax, [ebp - 0x440]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x488]
call fcn.0044b730
mov ebx, dword [ebp - 0x470]
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 1
push eax
mov esi, dword [ebx]
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0045ba90
mov edx, dword [ebx + 4]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x4779a8
lea ecx, [edx + 1]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x474]
mov dword [ebx + 4], ecx
mov dword [esi + 4], eax
mov dword [edi], eax
cmp edx, 8
jb 0x4778f1
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4778e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4779b2
push edx
push ecx
call fcn.00536ae6
add esp, 8
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
push str.___Added_process:__s___s_
call fcn.0046adc0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x47795d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477953
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4779b2
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov ebx, dword [ebp - 0x46c]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x464]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x477690
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.005368a5
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00533cfe
call fcn.00552581
int3