Function at 0x10002470
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005412
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x10008004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x470], edi
mov esi, ecx
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x21c], esi
xor eax, eax
mov dword [ebp - 0x494], esi
push eax
push 2
mov dword [ebp - 0x474], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x46c], eax
push ecx
push eax
mov dword [ebp - 0x460], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10002875
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x10002875
mov byte [ebp - 0x21c], 0
push dword [ebp - 0x21c]
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x234]
call fcn.10003ba0
add esp, 4
lea eax, [ebp - 0x4ac]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x234]
call fcn.100019b0
push eax
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 1
call fcn.10002cf0
or dword [ebp - 0x474], 0x40
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x10002566
mov edx, dword [edi]
cmp dword [ebp - 0x47c], 8
lea edi, [ebp - 0x490]
mov ecx, dword [ebp - 0x470]
mov eax, dword [ebp - 0x490]
setae byte [ebp - 0x462]
mov esi, dword [ebp - 0x480]
cmovae edi, eax
mov dword [ebp - 0x478], eax
cmp esi, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x47c]
jne 0x100025db
test esi, esi
je 0x100025c6
sub edi, edx
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x100025cf
add edx, 2
sub esi, 1
jne 0x100025a6
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp - 0x47c]
mov byte [ebp - 0x461], 1
jmp 0x100025e2
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp - 0x47c]
mov byte [ebp - 0x461], 0
cmp byte [ebp - 0x462], 0
je 0x10002620
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10002610
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000285b
jmp 0x10002616
mov edx, dword [ebp - 0x478]
push ecx
push edx
call fcn.10004738
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x498]
cmp ecx, 8
jb 0x10002664
mov edx, dword [ebp - 0x4ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000265a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000285b
push ecx
push edx
call fcn.10004738
add esp, 8
cmp byte [ebp - 0x461], 0
jne 0x100026da
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x100026b4
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100026aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000285b
push ecx
push edx
call fcn.10004738
add esp, 8
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1000286f
mov edi, dword [ebp - 0x470]
jmp 0x10002512
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x458]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov edi, dword [ebp - 0x468]
mov ecx, edi
push 0
push 0x10006318
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.10003300
mov eax, dword [ebp - 0x474]
push esi
push 0
or eax, 0x80
push 0x410
mov dword [ebp - 0x474], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x468], esi
test esi, esi
je 0x10002829
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x100027a0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x100027a0
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x10002822
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100027b0
sub ecx, edx
mov edx, dword [edi + 0x14]
sar ecx, 1
cmp ecx, edx
ja 0x10002806
mov dword [ebp - 0x470], edi
mov eax, edi
cmp edx, 8
jb 0x100027db
mov eax, dword [edi]
mov dword [ebp - 0x470], eax
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
lea ecx, [ebp - 0x218]
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x470]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebp - 0x468]
jmp 0x10002822
lea eax, [ebp - 0x218]
mov byte [ebp - 0x468], 0
push eax
push dword [ebp - 0x468]
push ecx
mov ecx, edi
call fcn.10003610
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x1000286b
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002861
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002861
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10004738
add esp, 8
mov eax, edi
jmp 0x100028a5
mov esi, dword [ebp - 0x468]
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push 0x10006318
mov dword [esi + 0x14], 0
call fcn.10003300
mov eax, esi
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.100043e0
mov esp, ebp
pop ebp
ret