Function at 0x140003160
Capabilities:
Enumerate processes
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r13, rcx
mov qword [rbp - 0x80], rcx
mov rbx, qword [rdx]
mov qword [rsp + 0x40], rbx
mov rax, qword [rdx + 8]
mov qword [rsp + 0x78], rax
cmp rbx, rax
je 0x1400037cf
xor edi, edi
lea r12, [rbx + 0x20]
mov qword [rsp + 0x70], r12
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400031c9
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400031e2
lea rcx, [rsp + 0x48]
call fcn.140004160
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov dword [rbp + 0x40], 0x238
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x48]
test eax, eax
je 0x1400032cd
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x280]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x6c]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rbp + 0x280]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003276
lea rcx, [rsp + 0x48]
cmp r15, 0xf
cmova rcx, r14
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
lea rdx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400032b1
cmp rdi, rbx
jb 0x1400032b1
jbe 0x1400036eb
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003231
xor edi, edi
mov rbx, qword [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp r15, 0xf
jbe 0x140003317
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14000330f
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037c8
mov rcx, r14
call fcn.1400385f4
test rsi, rsi
jne 0x140003436
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000332d
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140003346
lea rcx, [rsp + 0x48]
call fcn.140004160
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov r8d, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], eax
mov dword [rbp - 0x28], eax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, dword [rbp + 0x2c]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003421
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000341c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037ac
call fcn.1400385f4
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], dil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rax
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140004020
mov r9, rax
mov r8, rsi
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.140003800
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.140004020
mov r9, rax
mov r8, rsi
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.140003ad0
nop
lea rax, [rbp - 0x70]
mov qword [rsp + 0x68], rax
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.140003ea0
mov r13, rax
mov rdx, r12
lea rcx, [rbp + 0x10]
call fcn.140004020
mov r14, rax
mov byte [rbp - 0x30], 0
mov r12, qword [r13 + 8]
mov r15, qword [r13]
cmp r15, r12
je 0x14000351d
mov rcx, qword [rax + 0x10]
nop dword [rax + rax]
mov rbx, qword [r15]
test rcx, rcx
je 0x14000350f
nop dword [rax + rax]
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp - 0x30]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
inc rdi
add rbx, 2
mov rcx, qword [r14 + 0x10]
cmp rdi, rcx
jb 0x1400034e0
add r15, 8
cmp r15, r12
mov edi, 0
jne 0x1400034d0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140003557
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140003552
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037b3
mov rcx, r8
call fcn.1400385f4
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov rcx, qword [r13]
test rcx, rcx
je 0x1400035b9
mov rax, qword [r13 + 0x10]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
cmp rdx, 0x1000
jb 0x1400035a8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037b3
mov rcx, r8
call fcn.1400385f4
mov qword [r13], rdi
mov qword [r13 + 8], rdi
mov qword [r13 + 0x10], rdi
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.140003ea0
mov r12, rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140004020
mov rdi, rax
mov byte [rbp - 0x30], 0
mov r13, qword [r12 + 8]
mov r15, qword [r12]
cmp r15, r13
je 0x140003645
mov rcx, qword [rax + 0x10]
nop dword [rax + rax]
mov r14, qword [r15]
xor ebx, ebx
test rcx, rcx
je 0x14000363c
nop word [rax + rax]
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
inc rbx
mov rcx, qword [rdi + 0x10]
cmp rbx, rcx
jb 0x140003610
add r15, 8
cmp r15, r13
jne 0x140003600
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000367f
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000367a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037ba
mov rcx, r8
call fcn.1400385f4
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [r12]
test rcx, rcx
je 0x140003704
mov rax, qword [r12 + 0x10]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
cmp rdx, 0x1000
jb 0x1400036d4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037ba
mov rcx, r8
call fcn.1400385f4
xor edi, edi
mov qword [r12], rdi
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], rdi
jmp 0x140003706
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp + 0x48]
mov rbx, qword [rsp + 0x40]
xor edi, edi
jmp 0x1400032d0
xor edi, edi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140003754
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003743
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037c1
call fcn.1400385f4
mov qword [rbp - 0x20], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000378e
mov rdx, qword [rbp + 8]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003789
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037c8
call fcn.1400385f4
mov rbx, qword [rsp + 0x40]
add rbx, 0x40
mov qword [rsp + 0x40], rbx
cmp rbx, qword [rsp + 0x78]
je 0x1400037cf
mov r13, qword [rbp - 0x80]
jmp 0x1400031b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140038590
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret