Function at 0x140004860
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 - 0x390]
sub rsp, 0x490
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov qword [rbp - 0x78], rcx
mov r13, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rbp - 0x70], rax
cmp r13, rax
je 0x140004fc5
xor ebx, ebx
nop word [rax + rax]
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x1400048be
mov rdx, qword [r13]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400048e0
lea rcx, [rsp + 0x60]
call fcn.140003230
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x60]
test eax, eax
je 0x1400049c5
mov rdi, qword [rsp + 0x70]
nop
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x270]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x5c]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rbp + 0x270]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004973
lea rcx, [rsp + 0x60]
cmp r15, 0xf
cmova rcx, r14
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
lea rdx, [rbp + 0x270]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400049ae
cmp rdi, rbx
jb 0x1400049ae
jbe 0x140004b34
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
xor ebx, ebx
test eax, eax
jne 0x140004930
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp r15, 0xf
jbe 0x140004a0f
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140004a07
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005019
mov rcx, r14
call fcn.140035304
test rsi, rsi
jne 0x140004b48
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140004a26
mov rdx, qword [r13]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140004a40
lea rcx, [rsp + 0x60]
call fcn.140003230
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
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], xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], eax
xor r14d, r14d
mov dword [rbp - 0x38], r14d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp]
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 + 0x1c]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004b1f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004fef
call fcn.140035304
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], r14b
jmp 0x140004b4b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp + 0x38]
xor ebx, ebx
jmp 0x1400049c8
xor r14d, r14d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rax
lea rdx, [r13 + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002c80
mov r9, rax
mov r8, rsi
lea rdx, [rbp - 0x18]
mov rcx, qword [rbp - 0x78]
call fcn.140005040
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
lea rdx, [r13 + 0x20]
lea rcx, [rbp - 0x60]
call fcn.140002c80
mov r9, rax
mov r8, rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x78]
call fcn.140005310
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov rbx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
sub rbx, rdx
sar rbx, 3
test rbx, rbx
je 0x140004c6f
movabs rax, 0x1fffffffffffffff
cmp rbx, rax
ja 0x14000502c
lea rbx, [rbx*8]
test rbx, rbx
jne 0x140004bfc
mov rdi, r14
jmp 0x140004c3d
cmp rbx, 0x1000
jb 0x140004c2e
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140005026
call fcn.140034fb0
test rax, rax
je 0x140004ff6
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140004c39
mov rcx, rbx
call fcn.140034fb0
mov rdi, rax
mov rdx, qword [rbp - 0x18]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rcx, [rdi + rbx]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rbp - 0x10]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
sar rbx, 3
lea rax, [rdi + rbx*8]
mov qword [rsp + 0x48], rax
lea rdx, [r13 + 0x20]
lea rcx, [rbp]
call fcn.140002c80
mov r14, rax
mov byte [rbp - 0x40], 0
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
cmp r15, r12
je 0x140004cd8
mov rcx, qword [rax + 0x10]
mov rbx, qword [r15]
xor edi, edi
test rcx, rcx
je 0x140004ccf
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp - 0x40]
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 0x140004ca0
add r15, 8
cmp r15, r12
jne 0x140004c96
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140004d12
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140004d0d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004ffd
mov rcx, r8
call fcn.140035304
xor edi, edi
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], dil
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004d6b
mov rax, qword [rsp + 0x50]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ffd
call fcn.140035304
lea rax, [rsp + 0x40]
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
sub rax, rdx
sar rax, 3
test rax, rax
je 0x140004e2d
movabs rcx, 0x1fffffffffffffff
cmp rax, rcx
ja 0x140005020
lea rbx, [rax*8]
test rbx, rbx
je 0x140004dfb
cmp rbx, 0x1000
jb 0x140004dec
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140005032
call fcn.140034fb0
test rax, rax
je 0x140005004
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140004df7
mov rcx, rbx
call fcn.140034fb0
mov rdi, rax
mov rdx, qword [rbp - 0x30]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rcx, [rdi + rbx]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rbp - 0x28]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
sar rbx, 3
lea rax, [rdi + rbx*8]
mov qword [rsp + 0x48], rax
lea rdx, [r13 + 0x20]
lea rcx, [rbp]
call fcn.140002c80
mov r14, rax
mov byte [rbp - 0x40], 0
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
cmp r15, r12
je 0x140004e97
mov rcx, qword [rax + 0x10]
mov rdi, qword [r15]
xor ebx, ebx
test rcx, rcx
je 0x140004e8e
nop
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp - 0x40]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
inc rbx
mov rcx, qword [r14 + 0x10]
inc rdi
cmp rbx, rcx
jb 0x140004e60
add r15, 8
cmp r15, r12
jne 0x140004e54
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140004ed1
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140004ecc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000500b
mov rcx, r8
call fcn.140035304
xor ebx, ebx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004f2b
mov rax, qword [rsp + 0x50]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000500b
call fcn.140035304
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140004f7d
mov rax, qword [rbp - 0x20]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005012
call fcn.140035304
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rbx
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004fb7
mov rdx, qword [rbp - 8]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005019
call fcn.140035304
add r13, 0x40
cmp r13, qword [rbp - 0x70]
jne 0x1400048b0
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140034f90
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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
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]
nop
call fcn.1400056c0
int3
call fcn.140001bd0
int3
call fcn.1400056c0
int3
call fcn.140001bd0
int3