Function at 0x180004894
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov r13, rdx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
or rdi, 0xffffffffffffffff
mov rsi, rax
cmp rax, rdi
je 0x180004c0c
mov r14d, 0x130
mov ecx, r14d
call fcn.1800113b4
xor edx, edx
lea r8d, [r14 - 4]
mov rbx, rax
lea rcx, [rax + 4]
call sub.msvcrt.dll_memset
mov rdx, rbx
mov dword [rbx], r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x180004bf8
mov rcx, qword [0x181778740]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r8d, dword [rbx + 8]
cmp al, 6
sbb ecx, ecx
xor edx, edx
and ecx, 0xfffff400
add ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x400
mov rdi, rax
call qword [sym.imp.msvcrt.dll_malloc]
xor r12d, r12d
xor r15b, r15b
mov r14, rax
test rdi, rdi
je 0x180004b8e
and dword [rbp + 0x77], r12d
lea r15d, [r12 + 0x40]
mov r8d, r15d
lea rcx, [rbp - 0x69]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, str.kernel
mov edx, r15d
lea rcx, [rbp - 0x69]
call fcn.18000d2d0
lea r8, [0x18001356c]
mov edx, r15d
lea rcx, [rbp - 0x69]
call fcn.18000d2d0
mov r8d, r15d
lea rcx, [rbp - 0x29]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [0x180013570]
mov edx, r15d
lea rcx, [rbp - 0x69]
call fcn.18000d2d0
lea r8, [0x180013574]
mov edx, r15d
lea rcx, [rbp - 0x69]
call fcn.18000d2d0
lea r8, [0x180013578]
mov edx, r15d
lea rcx, [rbp - 0x69]
call fcn.18000d2d0
lea r8, str.Process
mov edx, r15d
lea rcx, [rbp - 0x69]
call fcn.18000d2d0
lea rcx, [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004a19
lea rdx, [rbp + 0x77]
mov rcx, rdi
call rax
test eax, eax
jne 0x180004a19
xor r15b, r15b
jmp 0x180004a21
cmp dword [rbp + 0x77], 1
sete r15b
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov r12d, dword [rsp + 0x40]
xor edx, edx
mov r8d, 0x400
mov dword [rbp + 0x77], r12d
mov rcx, r14
call sub.msvcrt.dll_memset
lea r8, [rbp - 0x79]
mov edx, 8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x180004b85
and dword [rsp + 0x44], 0
mov eax, 0x200
mov ecx, eax
mov dword [rbp + 0x67], eax
mov dword [rbp + 0x7f], eax
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, dword [rbp + 0x7f]
xor edx, edx
mov rcx, rax
mov r12, rax
call sub.msvcrt.dll_memset
mov ecx, dword [rbp + 0x67]
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, dword [rbp + 0x67]
xor edx, edx
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_memset
mov ecx, 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x48]
lea rax, [rbp - 0x71]
mov rcx, qword [rbp - 0x79]
mov r9d, 0x1000
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
jne 0x180004b56
lea rax, [rsp + 0x44]
mov r8, r12
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp + 0x67]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], r13
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
cmp eax, 1
jne 0x180004b56
mov r8, r13
mov edx, 0x400
mov rcx, r14
call fcn.18000d2d0
lea r8, [0x180013588]
mov edx, 0x400
mov rcx, r14
call fcn.18000d2d0
mov r8, r12
mov edx, 0x400
mov rcx, r14
call fcn.18000d2d0
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, dword [rbp + 0x77]
mov r13, qword [rbp + 0x6f]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r10, qword [r13]
lea rax, [rbx + 0x2c]
mov r9d, dword [rbx + 8]
test rdi, rdi
mov qword [rsp + 0x38], r14
mov r8d, r12d
mov qword [rsp + 0x30], rax
setne dl
mov eax, dword [rbx + 0x20]
mov rcx, r13
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], eax
call qword [r10]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
lea rcx, [rbx + 4]
xor edx, edx
mov r8d, 0x12c
call sub.msvcrt.dll_memset
mov r14d, 0x130
mov rdx, rbx
mov rcx, rsi
mov dword [rbx], r14d
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x18000490b
xor edi, edi
mov rdx, r14
mov rcx, rbx
call fcn.1800113f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret