Function at 0x140001da5
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
sub rsp, 0x9d8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x970], rcx
mov qword [rbp + 0x978], rdx
mov qword [rbp + 0x980], r8
mov qword [rbp + 0x940], 0
lea rdx, [rbp + 0x7d0]
mov eax, 0
mov ecx, 0x26
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x7d0], 0x130
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x940], rax
cmp qword [rbp + 0x940], 0xffffffffffffffff
jne 0x140001e36
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
mov rcx, rax
call dbg.printf
jmp 0x140002069
lea rdx, [rbp + 0x7d0]
mov rax, qword [rbp + 0x940]
mov rcx, rax
call sym.Process32First
test eax, eax
jne 0x140001e6f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Process32First_Failed_With_Error_:__d__n
mov rcx, rax
call dbg.printf
jmp 0x140002069
lea rax, [rbp + 0x7d0]
add rax, 0x2c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
mov dword [rbp + 0x93c], eax
mov dword [rbp + 0x94c], 0
lea rax, [rbp - 0x50]
mov qword [rbp + 0x930], rax
mov qword [rbp + 0x928], 0x208
mov rax, qword [rbp + 0x930]
mov qword [rbp + 0x920], rax
mov rax, qword [rbp + 0x920]
mov qword [rbp + 0x918], rax
mov byte [rbp + 0x917], 0
mov rax, qword [rbp + 0x928]
mov qword [rbp + 0x908], rax
movzx eax, byte [rbp + 0x917]
mov rcx, qword [rbp + 0x918]
mov rdx, qword [rbp + 0x908]
mov r8, rcx
mov rdi, r8
mov rcx, rdx
rep stosb byte [rdi], al
mov rdx, rcx
mov r8, rdi
mov qword [rbp + 0x918], r8
mov qword [rbp + 0x908], rdx
cmp dword [rbp + 0x93c], 0x207
ja 0x140001f75
jmp 0x140001f4f
mov eax, dword [rbp + 0x94c]
movzx eax, byte [rbp + rax + 0x7fc]
movsx eax, al
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
call rax
mov edx, eax
mov eax, dword [rbp + 0x94c]
mov word [rbp + rax*2 - 0x50], dx
add dword [rbp + 0x94c], 1
mov eax, dword [rbp + 0x94c]
cmp eax, dword [rbp + 0x93c]
jb 0x140001f1f
mov eax, dword [rbp + 0x94c]
lea edx, [rax + 1]
mov dword [rbp + 0x94c], edx
mov eax, eax
mov word [rbp + rax*2 - 0x50], 0
mov rax, qword [rbp + 0x970]
mov rcx, rax
call dbg.printf
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.:_s_n
mov rcx, rax
call sym.wprintf
mov rdx, qword [rbp + 0x970]
mov dword [rsp + 0x28], 0x208
lea rax, [rbp + 0x3c0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
lea rdx, [rbp + 0x3c0]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.wcscmp
test eax, eax
jne 0x140002048
mov edx, dword [rbp + 0x7d8]
mov rax, qword [rbp + 0x978]
mov dword [rax], edx
mov eax, dword [rbp + 0x7d8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov rdx, qword [rbp + 0x980]
mov qword [rdx], rax
mov rax, qword [rbp + 0x980]
mov rax, qword [rax]
test rax, rax
jne 0x140002068
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____OpenProcess_Failed_With_Error_:__d__n
mov rcx, rax
call dbg.printf
jmp 0x140002069
lea rdx, [rbp + 0x7d0]
mov rax, qword [rbp + 0x940]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x140001e6f
jmp 0x140002069
nop
cmp qword [rbp + 0x940], 0
je 0x140002086
mov rax, qword [rbp + 0x940]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x978]
mov eax, dword [rax]
test eax, eax
je 0x1400020a2
mov rax, qword [rbp + 0x980]
mov rax, qword [rax]
test rax, rax
jne 0x1400020a9
mov eax, 0
jmp 0x1400020ae
mov eax, 1
add rsp, 0x9d8
pop rdi
pop rbp
ret