Function at 0x10005390
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x10030ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x1003cb10]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003cb10]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
mov ebx, ecx
lea ecx, [esp + 0x3c]
push ecx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, eax
call fcn.1000aaf4
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000540d
push 0x80004005
call fcn.10003120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x174], ebp
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
cmp edi, ebp
mov byte [esp + 0x174], 1
je 0x100055ca
lea edi, [esp + 0x60]
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
add edi, 1
test al, al
jne 0x10005450
sub edi, ecx
jne 0x100054b0
cmp dword [esi - 0xc], ebp
mov edi, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x10005516
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x10005488
cmp dword [esi - 8], ebp
jl 0x10005649
mov dword [esi - 0xc], ebp
mov byte [esi], 0
jmp 0x10005516
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000549e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
jmp 0x10005516
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
lea ebp, [esp + 0x60]
sub eax, edi
sub ebp, esi
or eax, ecx
jge 0x100054d8
push edi
lea ecx, [esp + 0x18]
call fcn.10003170
mov esi, dword [esp + 0x14]
cmp ebp, ebx
push edi
ja 0x100054e9
add ebp, esi
push ebp
push edi
push esi
call fcn.10015ca3
jmp 0x100054f5
lea ecx, [esp + 0x64]
push ecx
push edi
push esi
call fcn.10015aee
add esp, 0x10
test edi, edi
jl 0x10005649
cmp edi, dword [esi - 8]
jg 0x10005649
mov ebx, dword [esp + 0x1c]
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
xor ebp, ebp
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x10005538
push edi
lea ecx, [esp + 0x18]
call fcn.10003170
mov esi, dword [esp + 0x14]
lea edx, [edi + 1]
push edx
push esi
call fcn.1001728a
push eax
call fcn.10004100
add esp, 0xc
cmp edi, ebp
jl 0x10005649
cmp edi, dword [esi - 8]
jg 0x10005649
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x10005580
push ebp
lea ecx, [esp + 0x18]
call fcn.10003170
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10005585
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.10002570
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
call fcn.100072e0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.100022b0
lea edx, [esp + 0x3c]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebp
jne 0x10005445
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 0x10
jb 0x100055e5
mov eax, dword [esp + 0x24]
push eax
call fcn.1000a6ea
add esp, 4
add esi, 0xfffffff0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
mov dword [esp + 0x174], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000561d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.10015adf
add esp, 0x164
ret 4
push 0x80070057
call fcn.10003120
int3