Function at 0x140005910
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x4b0
mov rax, qword [0x14003a018]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r15, rcx
mov dword [rsp + 0x270], 0x104
mov rbp, 0xffffffffffffffff
xor edx, edx
lea ecx, [rbp + 3]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, rbp
jne 0x14000595e
mov eax, ebp
jmp 0x140005c1e
mov qword [rsp + 0x4d8], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x4e0], rsi
mov rcx, r14
mov qword [rsp + 0x4e8], rdi
mov qword [rsp + 0x4a8], r12
mov qword [rsp + 0x4a0], r13
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140005bd9
xor r12d, r12d
lea r13, str.HealthService.exe
nop
mov r8d, dword [rsp + 0x38]
test r8d, r8d
je 0x140005bb6
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140005bb6
lea r9, [rsp + 0x270]
mov dword [rsp + 0x270], 0x104
lea r8, [rsp + 0x280]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x140005bad
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], r12
xor edx, edx
lea rcx, [rsp + 0x280]
mov rsi, r12
call fcn.14000aa80
cmp eax, 1
jne 0x140005a55
mov rcx, qword [rsp + 0x20]
lea edx, [rax + 1]
call fcn.14000d400
mov rsi, rax
test rax, rax
je 0x140005a93
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.14000aa80
test eax, eax
jne 0x140005a93
test rsi, rsi
je 0x140005a93
mov ebx, r12d
lea rdi, str.CarbonBlack
nop dword [rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14000bbc0
test rax, rax
jne 0x140005ac5
inc ebx
add rdi, 8
cmp ebx, 0xa
jb 0x140005a70
mov rcx, rsi
call fcn.14000e90c
mov ebx, r12d
mov rdi, r13
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x280]
call fcn.14000bbc0
test rax, rax
jne 0x140005acd
inc ebx
add rdi, 8
cmp ebx, 0x15
jb 0x140005aa0
jmp 0x140005bad
mov rcx, rsi
call fcn.14000e90c
mov edx, 0x20
lea ecx, [rdx - 0x1f]
call fcn.14000d400
mov rbx, rax
test rax, rax
je 0x140005bd9
lea rcx, [rsp + 0x280]
call fcn.14000d698
mov qword [rbx], rax
mov r10, rax
test rax, rax
je 0x140005bd9
mov r11, qword [r15]
test r11, r11
je 0x140005ba6
mov r8, qword [r11]
mov rcx, rax
sub r8, rax
nop word [rax + rax]
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x140005b34
add rcx, 2
test eax, eax
jne 0x140005b20
test edx, edx
js 0x140005ba6
mov r9, qword [r11 + 0x18]
test r9, r9
je 0x140005b74
mov rax, qword [r9]
mov r8, r10
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140005b64
add rax, 2
test ecx, ecx
jne 0x140005b50
test edx, edx
jns 0x140005b74
mov r11, r9
mov r9, qword [r9 + 0x18]
test r9, r9
jne 0x140005b41
mov r8, qword [r11 + 0x18]
test r8, r8
je 0x140005b9c
mov rdx, qword [r8]
sub rdx, r10
movzx ecx, word [r10]
movzx eax, word [r10 + rdx]
sub ecx, eax
jne 0x140005b98
add r10, 2
test eax, eax
jne 0x140005b83
test ecx, ecx
jns 0x140005bad
mov qword [rbx + 0x18], r8
mov qword [r11 + 0x18], rbx
jmp 0x140005bad
mov qword [rbx + 0x18], r11
mov qword [r15], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400059b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005bf6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbp, 0xffffffffffffffff
je 0x140005bf1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov r12, qword [rsp + 0x4a8]
mov rdi, qword [rsp + 0x4e8]
mov rsi, qword [rsp + 0x4e0]
mov rbx, qword [rsp + 0x4d8]
mov r13, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14000b000
add rsp, 0x4b0
pop r15
pop r14
pop rbp
ret