Function at 0x18000d5d0
Capabilities:
Enumerate processes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x400
mov rax, qword [0x18040b070]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov byte [rsp + 0x30], 0
cmp dword [rsp + 0x418], 0
je 0x18000d60d
cmp qword [rsp + 0x410], 0
jne 0x18000d617
movzx eax, byte [rsp + 0x30]
jmp 0x18000da58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x50], 0xffffffff
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x90], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x18000da53
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x18000da48
mov eax, 2
imul rax, rax, 9
mov ecx, 0x65
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 0xa
mov ecx, 0x78
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 0
mov ecx, 0x65
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 7
mov ecx, WSACleanup
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 1
mov ecx, 0x78
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 2
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 8
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 6
mov ecx, 0x65
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 5
mov ecx, WSACleanup
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 0xc
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0x1a
jae 0x18000d76c
jmp 0x18000d771
call fcn.1801340d8
xor eax, eax
mov rcx, qword [rsp + 0x78]
mov word [rsp + rcx + 0x3d0], ax
mov eax, 2
imul rax, rax, 3
mov ecx, WSAGetLastError
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 0xb
mov ecx, 0x65
mov word [rsp + rax + 0x3d0], cx
mov eax, 2
imul rax, rax, 4
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + rax + 0x3d0], cx
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x3d0]
call fcn.1801426a4
test eax, eax
jne 0x18000da2d
mov qword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18000da2d
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000da11
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
lea r8, [rsp + 0x4c]
mov edx, ntohl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000d9bd
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x18000d983
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x2d0], 0
lea rax, [rsp + 0x2d4]
mov rdi, rax
xor eax, eax
mov ecx, 0xfc
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x2d0]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000d944
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x2d0]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x18000d944
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
cmp word [rax + rcx*2], 0
jne 0x18000d8e8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x418]
cmp rax, rcx
jae 0x18000d939
mov eax, dword [rsp + 0x418]
mov r9, qword [rsp + 0x70]
lea r8, [0x18015b5b4]
mov edx, eax
mov rcx, qword [rsp + 0x410]
call fcn.180013950
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x38], 0
je 0x18000d960
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x40], 0
je 0x18000d97c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0
jmp 0x18000da48
cmp qword [rsp + 0x38], 0
je 0x18000d99f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x40], 0
je 0x18000d9bb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0
jmp 0x18000d9f5
cmp qword [rsp + 0x38], 0
je 0x18000d9d9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x40], 0
je 0x18000d9f5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x38], 0
je 0x18000da11
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x40], 0
je 0x18000da2d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x18000d68e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.180133f80
add rsp, 0x400
pop rdi
ret