Function at 0x46db70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5713a6
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x5e8ea4]
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 0x46ded3
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46decc
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 0x46deb6
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 0x46deaa
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.00474210
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 0x46dcb2
sub ebx, esi
nop dword [eax]
movzx eax, word [esi]
push eax
call fcn.00549e5a
inc edi
mov word [ebx + esi], ax
add esp, 4
lea esi, [esi + 2]
cmp edi, dword [ebp - 0x468]
jne 0x46dc90
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 0x5db81c
push ecx
call fcn.004515f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46dd71
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
cmp esi, 8
mov edx, ebx
push 6
cmovae ecx, edi
push str.backup
push ecx
call fcn.004515f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46dd71
cmp esi, 8
lea ecx, [ebp - 0x234]
push 8
cmovae ecx, edi
mov edx, ebx
push str.database
push ecx
call fcn.004515f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46dd71
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea eax, [ebp - 0x218]
push 0x5db81c
push eax
call ebx
test eax, eax
jne 0x46dd71
push str.backup
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x46dd71
push str.database
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x46de61
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46dd97
sub ecx, edx
lea eax, [ebp - 0x440]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x488]
call fcn.0044a890
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.00457aa0
mov edx, dword [ebx + 4]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x46deef
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 0x46de38
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46def9
push edx
push ecx
call fcn.0052cac7
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.004612c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x46dea4
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46def9
push edx
push ecx
call fcn.0052cac7
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 0x46dbe0
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.0052c886
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00529cde
call fcn.00548571
int3