Function at 0x409760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455195
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x468100]
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
xor edi, edi
mov dword [ebp - 0x274], edi
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x4690e4
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x24c], 0xa
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x260], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
push 0x20
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x268], edi
call fcn.0043e884
add esp, 4
cmp eax, edi
je 0x409d9c
mov dword [ebp - 0x26c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x26c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x26c]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x26c]
mov byte [ecx + 0x1c], 1
mov edx, dword [ebp - 0x26c]
mov byte [edx + 0x1d], 1
push edi
push 2
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
jne 0x4098c3
push esi
mov ecx, 0x45a7a4
call fcn.004086c0
mov dword [ebp - 0x274], 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x254]
lea esi, [ebp - 0x270]
call fcn.0040aaa0
mov eax, dword [ebp - 0x26c]
push eax
call fcn.0043e7d7
lea eax, [ebx - 0x10]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40989f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x25c]
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.0043e1c4
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409b9c
lea esi, [ebp - 0x218]
shr esi, 0x10
mov dword [ebp - 0x28c], esi
jmp 0x4098f6
mov esi, dword [ebp - 0x28c]
mov edx, dword [0x4690e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4690e4
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x240], ebx
mov byte [ebp - 4], 4
test esi, esi
jne 0x409939
lea ecx, [ebp - 0x218]
movzx edi, cx
call fcn.00407200
test eax, eax
je 0x40996c
push eax
mov eax, edi
lea edi, [ebp - 0x240]
call fcn.004089e0
jmp 0x409966
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409942
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x240]
push ecx
mov ebx, eax
call fcn.004088c0
mov ebx, dword [ebp - 0x240]
push 0x5c
mov byte [ebp - 4], 5
mov esi, dword [ebx - 0xc]
push ebx
call fcn.0043f35f
add esp, 8
test eax, eax
jne 0x409987
or eax, 0xffffffff
jmp 0x40998b
sub eax, ebx
sar eax, 1
lea edx, [ebp - 0x240]
lea ecx, [eax + 1]
push edx
mov eax, esi
lea edx, [ebp - 0x288]
call fcn.0040a7f0
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4099ff
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4099e9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4099e9
call fcn.00408970
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4099de
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x240], ebx
jmp 0x4099ff
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x240]
push ecx
call fcn.004088c0
mov ebx, dword [ebp - 0x240]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409a25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4690e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4690e4
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x224]
lea eax, [ebx - 0x10]
lea edi, [esi - 0x10]
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x244], eax
cmp eax, edi
je 0x409ab7
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x409aa1
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x409aa1
call fcn.00408970
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x409a96
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea esi, [ebx + 0x10]
mov dword [ebp - 0x278], esi
jmp 0x409ab7
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [ebp - 0x278]
push ecx
call fcn.004088c0
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x280]
lea ebx, [ebp - 0x270]
call fcn.0040a8a0
mov edx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x27c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edi, dword [eax + 8]
add eax, 8
lea ebx, [esi - 0x10]
sub edi, 0x10
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x258], ebx
cmp ebx, edi
je 0x409b40
cmp dword [edi + 0xc], 0
jl 0x409b30
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x409b30
mov eax, ebx
call fcn.00408970
mov esi, eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409b23
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x250]
add esi, 0x10
mov dword [ecx], esi
jmp 0x409b40
mov ebx, dword [esi - 0xc]
push esi
push eax
call fcn.004088c0
mov ebx, dword [ebp - 0x258]
mov byte [ebp - 4], 5
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x409b5d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x284]
lea ecx, [ebp - 0x23c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4098f0
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 4]
dec dword [ebp - 0x24c]
mov ecx, eax
cmp byte [ecx + 0x1d], 0
mov esi, edx
jne 0x409bcf
mov edi, dword [ecx + 0xc]
cmp edi, dword [ebp - 0x248]
jae 0x409bc5
mov ecx, dword [ecx + 8]
jmp 0x409bc9
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0x1d], 0
je 0x409bb5
mov dword [ebp - 0x244], esi
cmp esi, edx
je 0x409bec
mov ecx, dword [ebp - 0x248]
cmp ecx, dword [esi + 0xc]
jb 0x409bec
lea ecx, [ebp - 0x244]
jmp 0x409bf8
mov dword [ebp - 0x258], edx
lea ecx, [ebp - 0x258]
mov ecx, dword [ecx]
cmp ecx, edx
je 0x409d11
cmp byte [eax + 0x1d], 0
mov ecx, dword [ecx + 0x14]
mov esi, edx
jne 0x409c24
lea ecx, [ecx]
cmp dword [eax + 0xc], ecx
jae 0x409c1a
mov eax, dword [eax + 8]
jmp 0x409c1e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0x1d], 0
je 0x409c10
mov dword [ebp - 0x244], esi
cmp esi, edx
je 0x409c3b
cmp ecx, dword [esi + 0xc]
jb 0x409c3b
lea eax, [ebp - 0x244]
jmp 0x409c47
mov dword [ebp - 0x250], edx
lea eax, [ebp - 0x250]
mov esi, dword [eax]
cmp esi, edx
je 0x409d11
mov edi, dword [esi + 0x18]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x409c7a
cmp eax, dword [edi - 0x10]
jne 0x409c7a
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409cb2
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x409d97
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0043f17f
add esp, 0x10
lea edi, [ebx + 0x10]
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 8
mov eax, dword [edi - 0xc]
push eax
push edi
lea ebx, [ebp - 0x260]
call fcn.0040ab60
push 1
push 0x45af74
call fcn.0040ab60
mov ecx, dword [esi + 0xc]
add edi, 0xfffffff0
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x409d04
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
cmp dword [ebp - 0x24c], 0
jne 0x409b9c
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x260]
add ebx, 0xfffffff0
mov eax, ebx
call fcn.00408970
mov edx, dword [ebp - 0x25c]
add eax, 0x10
mov dword [edx], eax
mov dword [ebp - 0x274], 1
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x254]
lea esi, [ebp - 0x270]
call fcn.0040aaa0
mov eax, dword [ebp - 0x26c]
push eax
call fcn.0043e7d7
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40989f
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40989f
call fcn.0040e7a0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x254], edi
call fcn.0043e26c
push 0x463258
lea ecx, [ebp - 0x298]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004428e2
int3