Function at 0x1400010e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r15, rdx
mov ecx, 2
xor edx, edx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001139
lea rcx, str.Failed_to_create_process_snapshot._n
call fcn.140001020
xor eax, eax
jmp 0x140001354
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14000116f
lea rcx, str.Failed_to_retrieve_the_first_process._n
call fcn.140001020
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001354
mov qword [rsp + 0x6e0], rbx
mov qword [rsp + 0x6f0], rdi
nop
lea rdx, str.SoD.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400012d6
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400012d6
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400012cd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], r14d
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 r9d, dword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x48]
mov rdi, rax
lea rax, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400012b9
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x1400012b9
mov rdx, qword [rdi]
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x1a4]
lea rax, [rbp + 0x1a0]
mov dword [rbp + 0x1a4], 0x100
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x1b0]
lea rax, [rbp + 0x3b0]
mov dword [rbp + 0x1a0], 0x100
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x1400012ae
mov rdx, r15
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400012ee
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
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, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001180
jmp 0x140001338
mov r8d, dword [rsp + 0x68]
lea r9, [rbp + 0x1b0]
lea rdx, str.SoD.exe
mov r14d, r8d
lea rcx, str.Found_process__s__PID:__lu__running_under_user:__s_n
call fcn.140001020
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
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, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x6f0]
mov eax, r14d
mov rbx, qword [rsp + 0x6e0]
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140001500
mov rsi, qword [rsp + 0x6f8]
add rsp, 0x6c0
pop r15
pop r14
pop rbp
ret