Function at 0x47e1a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf4b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x580
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], edi
call fcn.00486620
push 0xffffffffffffffff
lea eax, [esi + 0x3c14]
push edi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.004ada90
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x44c0], edi
je 0x47e1fe
cmp dword [esi + 0x3cbc], edi
jne 0x47e1fe
mov dword [ebp - 0x1c], 1
push ebx
push 0x9c
lea eax, [ebp - 0xc8]
push edi
push eax
mov dword [ebp - 0xcc], edi
call fcn.004b03e0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp ebx, 0x28
jbe 0x47e22a
mov ebx, 0x28
mov dword [ebp + 0xc], ebx
cmp dword [esi + 0x48c], edi
je 0x47e24b
cmp dword [esi + 0x488], edi
jne 0x47e24b
cmp ebx, 1
seta cl
movzx edx, cl
push edx
mov ecx, esi
call fcn.0047ce50
mov edi, dword [esi + 0x488]
test edi, edi
je 0x47e293
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, 1
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edi
mov edx, 2
cmp dword [ebp + 0xc], ecx
jbe 0x47e28e
mov eax, dword [ebx + ecx*4]
test eax, eax
je 0x47e288
cmp eax, edi
je 0x47e288
mov dword [ebp + edx*4 - 0xcc], eax
inc edx
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x47e275
mov dword [ebp + 0xc], edx
jmp 0x47e2ae
mov edx, dword [ebp + 8]
lea ecx, [ebx*4]
push ecx
push edx
lea eax, [ebp - 0xcc]
push eax
call fcn.004b0bb0
add esp, 0xc
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], edx
jbe 0x47e2f2
lea ebx, [esi + 0x3ecc]
mov edi, dword [ebp + edx*4 - 0xcc]
xor eax, eax
mov ecx, ebx
nop
cmp dword [ecx], edi
je 0x47e2e1
inc eax
add ecx, 4
cmp eax, 0x80
jb 0x47e2d0
jmp 0x47e2ec
mov dword [ebp + edx*4 - 0xcc], 0
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x47e2c4
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp dword [esi + 0x3ec4], edi
jbe 0x47e331
lea edx, [esi + 0x3cc4]
mov ecx, dword [edx]
test ecx, ecx
je 0x47e325
xor eax, eax
test ebx, ebx
jbe 0x47e31f
cmp dword [ebp + eax*4 - 0xcc], ecx
je 0x47e325
inc eax
cmp eax, ebx
jb 0x47e311
mov dword [edx], 0
inc edi
add edx, 4
cmp edi, dword [esi + 0x3ec4]
jb 0x47e305
mov ecx, dword [esi + 0x3cac]
xor eax, eax
test ecx, ecx
jle 0x47e35a
xor ecx, ecx
nop
mov edx, dword [esi + 0x3cb8]
mov byte [edx + ecx + 0x12], 0
inc eax
add ecx, 0x94
cmp eax, dword [esi + 0x3cac]
jl 0x47e340
cmp dword [esi + 0x3cac], 0
mov dword [ebp - 0x10], 0
jle 0x47e3ba
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi + 0x3cb8]
add ecx, edi
xor eax, eax
test ebx, ebx
jbe 0x47e3a5
mov edi, edi
mov edx, dword [ebp + eax*4 - 0xcc]
test edx, edx
je 0x47e38f
cmp edx, dword [ecx]
je 0x47e396
inc eax
cmp eax, ebx
jb 0x47e380
jmp 0x47e3a5
mov byte [ecx + 0x12], 1
mov dword [ebp + eax*4 - 0xcc], 0
mov eax, dword [ebp - 0x10]
inc eax
add edi, 0x94
cmp eax, dword [esi + 0x3cac]
mov dword [ebp - 0x10], eax
jl 0x47e370
xor eax, eax
test ebx, ebx
jbe 0x47e3d8
cmp dword [ebp + eax*4 - 0xcc], 0
jne 0x47e3d1
inc eax
cmp eax, ebx
jb 0x47e3c0
jmp 0x47e3d8
mov dword [ebp - 0x18], 1
xor eax, eax
cmp dword [esi + 0x3cac], eax
jle 0x47e40d
mov ecx, dword [esi + 0x3cb8]
add ecx, 0x12
jmp 0x47e3f0
cmp byte [ecx], 0
je 0x47e406
inc eax
add ecx, 0x94
cmp eax, dword [esi + 0x3cac]
jl 0x47e3f0
jmp 0x47e40d
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x18], 0
jne 0x47e41d
cmp dword [ebp - 0x14], 0
je 0x47e6bb
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x47e465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58c]
push str.Cant_create_process_snapshoot__ErrCode0x_08X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
lea ecx, [ebp - 0x58c]
push ecx
mov ecx, dword [0x50b39c]
call fcn.00415da0
jmp 0x47e6bb
xor eax, eax
cmp dword [esi + 0x3cac], eax
jle 0x47e48b
xor ecx, ecx
mov edx, dword [esi + 0x3cb8]
mov byte [ecx + edx + 0x11], 0
inc eax
add ecx, 0x94
cmp eax, dword [esi + 0x3cac]
jl 0x47e471
push 0x22c
lea eax, [ebp - 0x38c]
push 0
push eax
call fcn.004b03e0
push 0x200
lea ecx, [ebp - 0x58c]
push 0
push ecx
mov dword [ebp - 0x38c], 0x22c
call fcn.004b03e0
add esp, 0x18
lea edx, [ebp - 0x38c]
push edx
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47e6b0
jmp 0x47e4e0
mov edx, dword [ebp - 0x384]
xor eax, eax
lea ecx, [esi + 0x3ecc]
mov edi, edi
cmp dword [ecx], edx
je 0x47e60b
inc eax
add ecx, 4
cmp eax, 0x80
jb 0x47e4f0
test edx, edx
je 0x47e672
cmp dword [ebp - 0x18], 0
je 0x47e5fc
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x47e5fc
mov edi, dword [ebp + ebx*4 - 0xcc]
test edi, edi
je 0x47e5ec
cmp edi, edx
jne 0x47e5ec
cmp dword [ebp + 8], 0
jne 0x47e544
mov dword [ebp + 8], 1
push 0x94
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.004b03e0
mov ecx, dword [ebp - 0x374]
add esp, 0xc
lea edx, [ebp - 0x368]
push edx
lea eax, [ebp - 0x160]
mov dword [ebp - 0x15c], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x160], edi
call fcn.00477220
push 0x12c
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x14f], 1
mov byte [ebp - 0x14e], 1
call fcn.004ae3d0
cmp dword [esi + 0x3ca8], 0
lea edi, [esi + 0x3ca8]
je 0x47e5ec
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jg 0x47e5c7
cmp eax, 0x100
jge 0x47e5bf
mov eax, 0x100
push eax
mov ecx, edi
call fcn.00403b80
mov eax, dword [edi + 4]
mov edx, dword [edi]
lea ecx, [eax + 1]
imul eax, eax, 0x94
add eax, dword [edi + 0x10]
mov dword [edi + 4], ecx
push edx
lea ecx, [ebp - 0x160]
push ecx
push eax
call fcn.004b0bb0
add esp, 0xc
mov edx, dword [ebp - 0x384]
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x47e520
xor ebx, ebx
cmp dword [esi + 0x3cac], ebx
jle 0x47e672
mov dword [ebp - 0x10], ebx
jmp 0x47e626
mov dword [ebp + eax*4 - 0x58c], 1
jmp 0x47e672
mov edx, dword [ebp - 0x384]
mov edi, dword [esi + 0x3cb8]
add edi, dword [ebp - 0x10]
cmp dword [edi], edx
jne 0x47e662
cmp byte [edi + 0xf], 0
mov byte [edi + 0x11], 1
jne 0x47e662
cmp dword [ebp + 8], 0
jne 0x47e64a
mov dword [ebp + 8], 1
lea edx, [ebp - 0x368]
push edx
push edi
mov ecx, esi
call fcn.00477220
mov eax, dword [ebp - 0x374]
mov dword [edi + 4], eax
add dword [ebp - 0x10], 0x94
inc ebx
cmp ebx, dword [esi + 0x3cac]
jl 0x47e620
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x38c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47e4e0
lea ecx, [esi + 0x3ecc]
cmp dword [ecx], 0
je 0x47e6a5
cmp dword [ebp + eax*4 - 0x58c], 0
jne 0x47e6a5
mov dword [ecx], 0
inc eax
add ecx, 4
cmp eax, 0x80
jb 0x47e690
test edi, edi
je 0x47e6bb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esi + 0x3cac], edi
jle 0x47e771
xor ebx, ebx
jmp 0x47e6d0
mov eax, dword [esi + 0x3cb8]
add eax, ebx
cmp byte [eax + 0x11], 0
je 0x47e6ed
cmp byte [eax + 0x12], 0
je 0x47e6ed
inc edi
add ebx, 0x94
jmp 0x47e765
cmp dword [ebp + 8], 0
jne 0x47e6fa
mov dword [ebp + 8], 1
push 0x12c
lea ecx, [ebp - 0x28]
call fcn.004ae3d0
mov eax, dword [esi + 0x3cac]
lea edx, [edi + 1]
cmp edx, eax
jge 0x47e75f
mov ecx, dword [esi + 0x3cb8]
sub eax, edi
dec eax
imul eax, dword [esi + 0x3ca8]
add ecx, ebx
push eax
lea edx, [ecx + 0x94]
push edx
push ecx
call fcn.004b0bb0
mov ecx, dword [esi + 0x3cac]
mov eax, dword [esi + 0x3ca8]
imul ecx, ecx, 0x94
mov edx, dword [esi + 0x3cb8]
push eax
lea eax, [ecx + edx - 0x94]
push 0
push eax
call fcn.004b03e0
add esp, 0x18
dec dword [esi + 0x3cac]
cmp edi, dword [esi + 0x3cac]
jl 0x47e6d0
push 1
lea ecx, [ebp - 0x28]
call fcn.004adb20
pop ebx
test eax, eax
je 0x47e79b
lea ecx, [ebp - 0x28]
call fcn.004adaf0
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x3c14]
push eax
lea ecx, [ebp - 0x28]
call fcn.004ada90
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.0047a700
mov edi, 1
test eax, eax
jne 0x47e7b2
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], 0
je 0x47e7c2
mov dword [esi + 0x44c0], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004ae3a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8