Function at 0x1400058a0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140070030]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov qword [rbp + 0x2f], rcx
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
xor edi, edi
mov qword [rbp + 7], rdi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r15, rax
test rax, rax
jne 0x14000592e
lea r8d, [rdi + 0x28]
lea rdx, str.Erro_ao_abrir_o_Gerenciador_de_Servi
lea rcx, [0x1400700b0]
call fcn.140003d00
mov rcx, qword [rbp - 9]
mov qword [rsi], rcx
mov rcx, qword [rbp - 1]
mov qword [rsi + 8], rcx
mov rcx, qword [rbp + 7]
mov qword [rsi + 0x10], rcx
jmp 0x140005b60
mov dword [rbp + 0xf], edi
mov dword [rbp + 0x13], edi
mov dword [rbp + 0x2f], edi
mov qword [rsp + 0x48], rdi
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x13]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1400059be
mov r8d, 0x3c
lea rdx, str.Erro_ao_obter_o_tamanho_do_buffer_de_enumera
lea rcx, [0x1400700b0]
call fcn.140003d00
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rbp - 9]
mov qword [rsi], rax
mov rax, qword [rbp - 1]
mov qword [rsi + 8], rax
mov rax, qword [rbp + 7]
mov qword [rsi + 0x10], rax
jmp 0x140005b60
xorps xmm0, xmm0
mov eax, dword [rbp + 0xf]
mov r14d, eax
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rdi
test eax, eax
je 0x140005a30
cmp rax, 0x1000
jb 0x140005a08
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140005cd0
call fcn.140052fa0
mov rcx, rax
test rax, rax
je 0x140005c55
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140005a10
mov rcx, r14
call fcn.140052fa0
mov qword [rbp + 0x17], rax
lea rbx, [rax + r14]
mov qword [rbp + 0x27], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x1f], rbx
mov eax, dword [rbp + 0xf]
mov r14, qword [rbp + 0x17]
mov qword [rsp + 0x48], rdi
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x13]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x140005b8c
lea r8d, [rax + 0x1d]
lea rdx, str.Erro_ao_enumerar_os_servi
lea rcx, [0x1400700b0]
call fcn.140003d00
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp + 7]
mov qword [rbp + 7], rdi
mov rcx, qword [rbp - 1]
mov qword [rbp - 1], rdi
mov rax, qword [rbp - 9]
mov r8, rdi
mov qword [rbp - 9], rdi
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140005b0c
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005af3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c55
call fcn.140052d00
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rdi
mov rdi, qword [rbp + 7]
mov r8, qword [rbp - 9]
test r8, r8
je 0x140005b60
sub rdi, r8
movabs rax, 0x4924924924924925
imul rdi
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x38
mov rax, r8
cmp rdx, 0x1000
jb 0x140005b58
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005cc9
mov rcx, r8
call fcn.140052d00
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140052ce0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ebx, edi
cmp dword [rbp + 0x13], edi
jbe 0x140005bf5
mov rdx, qword [rbp - 1]
nop word [rax + rax]
mov eax, ebx
imul r8, rax, 0x38
add r8, r14
cmp rdx, qword [rbp + 7]
je 0x140005be1
movups xmm0, xmmword [r8]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [r8 + 0x20]
movups xmmword [rdx + 0x20], xmm0
movsd xmm1, qword [r8 + 0x30]
movsd qword [rdx + 0x30], xmm1
mov rdx, qword [rbp - 1]
add rdx, 0x38
mov qword [rbp - 1], rdx
jmp 0x140005bee
lea rcx, [rbp - 9]
call fcn.1400094d0
mov rdx, qword [rbp - 1]
inc ebx
cmp ebx, dword [rbp + 0x13]
jb 0x140005ba0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp + 7]
mov qword [rbp + 7], rdi
mov rcx, qword [rbp - 1]
mov qword [rbp - 1], rdi
mov rax, qword [rbp - 9]
mov r8, rdi
mov qword [rbp - 9], rdi
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140005c75
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rdi
mov rdi, qword [rbp + 7]
mov r8, qword [rbp - 9]
test r8, r8
je 0x140005b60
sub rdi, r8
movabs rax, 0x4924924924924925
imul rdi
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x38
mov rax, r8
cmp rdx, 0x1000
jb 0x140005b58
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001170
int3