Function at 0x4102b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f0b76
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6b7e40]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004106c0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4104f9
push 0x228
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.005c26e0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x2c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4104f2
lea esp, [esp]
push 0x63bfdc
lea ecx, [esp + 0x18]
call fcn.004021e0
push 0x63bfdc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x26c], 0
call fcn.004021e0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x268], 1
push dword [esp + 0x2c]
push 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x410493
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push 0x63ef48
push eax
call fcn.00404520
mov edx, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [edx - 0xc]
test esi, esi
js 0x410527
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4103e6
push esi
lea ecx, [esp + 0x18]
call fcn.00401f90
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.005bec67
mov eax, dword [esp + 0x1c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x410527
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [esp + 0x48]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410414
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00402090
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x410527
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x410460
push esi
lea ecx, [esp + 0x1c]
call fcn.00401f90
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.005bec67
mov eax, dword [esp + 0x20]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x410527
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
call fcn.00410720
mov dword [esp + 0x268], 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4104bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4104da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x410340
mov byte [edi + 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 4
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402040
int3