Function at 0x1400010e0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov rbx, rdx
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140001139
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_process_snapshot._Error:__lu_n
call fcn.140001020
xor eax, eax
jmp 0x14000139c
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001177
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_retrieve_the_first_process._Error:__lu_n
call fcn.140001020
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000139c
mov qword [rsp + 0x6e8], r15
xor r15d, r15d
mov qword [rsp + 0x6d0], rsi
mov qword [rsp + 0x6e0], rdi
lea rdx, str.SoD.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001363
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001363
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001346
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], r15d
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140001317
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov r8, rdi
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001317
mov rdx, qword [rdi]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x194]
lea rax, [rbp + 0x190]
mov dword [rbp + 0x194], 0x100
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x1a0]
lea rax, [rbp + 0x3a0]
mov dword [rbp + 0x190], 0x100
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x140001301
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001330
mov ebx, dword [rsp + 0x58]
lea r9, [rbp + 0x1a0]
mov r8d, ebx
lea rdx, str.SoD.exe
lea rcx, str.Found_process__s__PID:__lu__running_under_user:__s_n
call fcn.140001020
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140001384
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupAccountSid_failed._Error:__lu_n
call fcn.140001020
jmp 0x140001330
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation_failed._Error:__lu_n
call fcn.140001020
test rdi, rdi
je 0x140001339
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000135a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_process_token._Error:__lu_n
call fcn.140001020
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001192
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x6e0]
mov rsi, qword [rsp + 0x6d0]
mov r15, qword [rsp + 0x6e8]
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140001780
add rsp, 0x6b0
pop r14
pop rbx
pop rbp
ret