Function at 0x140022ab0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov r13, rcx
xor esi, esi
mov r12d, esi
mov dword [rsp + 0x40], esi
mov dword [rdx], esi
mov edi, esi
mov rcx, qword [rcx]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 4
test rax, rax
je 0x140022b4a
mov ebx, esi
nop dword [rax]
mov rcx, qword [rbx + rcx]
call fcn.14001d750
cmp eax, 1
jne 0x140022b2f
mov rax, qword [r13]
mov rcx, qword [rbx + rax]
mov eax, dword [rcx + 0x80]
or dword [r15], eax
inc rdi
add rbx, 0x10
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 4
cmp rdi, rax
jb 0x140022b10
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x140022ec3
mov dword [rbp - 0x20], 0x238
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140022eba
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
lea rax, [rbp + 0xc]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140022ba2
lea rdx, [rbp + 0xc]
lea rcx, [rbp - 0x60]
call fcn.14001a700
nop
cmp qword [rbp - 0x50], 0
jne 0x140022bdf
mov qword [rbp - 0x80], rsi
mov rdx, rsi
mov qword [rbp - 0x70], rdx
mov ecx, 0xf
mov qword [rbp - 0x68], rcx
mov byte [rbp - 0x80], 0
jmp 0x140022c9b
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, dword [rbp - 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 0xf
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.140012ee0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
or r12d, 1
lea rdi, [rbp - 0x80]
mov r14, qword [rbp - 0x80]
cmp rcx, 0x10
cmovae rdi, r14
lea rsi, [rbp - 0x80]
cmovae rsi, r14
add rsi, rdx
lea rbx, [rbp - 0x80]
cmp rcx, 0x10
cmovae rbx, r14
cmp rbx, rsi
je 0x140022ce7
sub rdi, rbx
nop
movsx ecx, byte [rbx]
call fcn.140037064
mov byte [rdi + rbx], al
inc rbx
cmp rbx, rsi
jne 0x140022cd0
mov r14, qword [rbp - 0x80]
xor esi, esi
mov qword [rsp + 0x50], rsi
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 4
test rax, rax
je 0x140022e18
nop word [rax + rax]
mov rdx, qword [rsi + rcx]
cmp dword [rdx + 0x84], 0
je 0x140022ded
add rdx, 0x18
lea rcx, [rsp + 0x58]
call fcn.1400012e0
or r12d, 2
mov dword [rsp + 0x40], r12d
lea rdx, [rbp - 0x80]
mov r14, qword [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, r14
lea rcx, [rsp + 0x58]
mov rbx, qword [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, rbx
mov r15, qword [rsp + 0x68]
mov r8, r15
mov r12, qword [rbp - 0x70]
cmp r12, r15
cmovb r8, r12
call fcn.14002a630
mov edi, eax
test eax, eax
jne 0x140022d8e
cmp r15, r12
jae 0x140022d85
lea edi, [rax - 1]
jmp 0x140022d8e
xor edi, edi
cmp r15, r12
seta dil
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x140022dce
lea rdx, [rax + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140022dc2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022fad
mov rcx, rbx
call fcn.140027b1c
mov r14, qword [rbp - 0x80]
mov r15, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x40]
test edi, edi
jne 0x140022ded
mov rax, qword [r13]
mov rcx, qword [rsi + rax]
mov eax, dword [rcx + 0x84]
or dword [r15], eax
mov rdx, qword [rsp + 0x50]
inc rdx
mov qword [rsp + 0x50], rdx
add rsi, 0x10
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 4
cmp rdx, rax
jb 0x140022d10
xor esi, esi
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140022e53
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140022e4b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022fb3
mov rcx, r14
call fcn.140027b1c
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140022ea3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022e9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022fb9
call fcn.140027b1c
lea rdx, [rbp - 0x20]
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140022b7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140022f7d
mov edx, 9
lea rcx, [rsp + 0x58]
call fcn.1400140a0
cmp qword [rax + 0x18], 0x10
jb 0x140022efe
mov rax, qword [rax]
mov r8d, 0x24
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140022f4c
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022f47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022fa7
call fcn.140027b1c
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
test rdi, rdi
je 0x140022f7d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [r15], 0x2000
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140027ad0
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e468
nop
call fcn.14002e468
nop
call fcn.14002e468
nop
call fcn.14002e468
int3