Function at 0x140001070
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x2a0
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010b2
lea rcx, str.Error_calling_CreateToolhelp32Snapshot___r_n
call fcn.140001010
xor eax, eax
jmp 0x1400012d0
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400010e8
lea rcx, str.Error_calling_Process32First___r_n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400012d0
mov qword [rsp + 0x2b0], rbx
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2c0], rdi
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x7c]
lea rcx, str._s_t_u_r_n
call fcn.140001010
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140001149
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._tERROR:_OpenProcess______i_r_n
call fcn.140001010
jmp 0x140001288
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001179
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._tERROR:_OpenProcessToken______i_r_n
call fcn.140001010
jmp 0x14000127f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 0x27]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400011bf
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str._tERROR:_NtQueryInformationToken_1_____ld_r_n
call fcn.140001010
jmp 0x14000127f
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x48]
mov rbx, rax
test rax, rax
jne 0x1400011f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._tERROR:_Cannot_allocate_memory__r_n
call fcn.140001010
jmp 0x14000127f
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 0x27
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov edi, eax
test eax, eax
je 0x140001239
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea rcx, str._tERROR:_NtQueryInformationToken_2_____ld_r_n
call fcn.140001010
jmp 0x14000127f
xor edi, edi
cmp dword [rbx + 4], edi
jbe 0x14000126b
mov rax, qword [rbx + 8]
lea rcx, [rdi + rdi*4]
inc edi
lea r8, [rsp + 0x30]
mov edx, edi
movups xmm0, xmmword [rax + rcx*8]
lea rcx, str._t_lu.__wZ_r_n
movaps xmmword [rsp + 0x30], xmm0
call fcn.140001010
cmp edi, dword [rbx + 4]
jb 0x140001240
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14001d6a4]
call fcn.140001010
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001100
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2c0]
mov eax, 1
mov rsi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140001310
add rsp, 0x2a0
pop rbp
ret