Function at 0x1400051b0
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140132060]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
jne 0x14000521e
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
lea r8d, [rax + 0x29]
lea rdx, str.Falha_ao_abrir_o_Gerenciador_de_Servi
mov rcx, rbx
call fcn.1400023e0
jmp 0x14000545a
mov r8d, 1
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x14000526d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
lea r8d, [rsi + 0x19]
lea rdx, str.Falha_ao_abrir_o_servi
mov rcx, rbx
call fcn.1400023e0
jmp 0x14000545a
xor edi, edi
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1400052d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400052d1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
lea r8d, [rdi + 0x36]
lea rdx, str.Falha_ao_obter_informa
mov rcx, rbx
call fcn.1400023e0
jmp 0x14000545a
mov edx, dword [rsp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
mov rcx, rsi
test rax, rax
jne 0x140005324
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], bpl
lea r8d, [rbp + 0x4c]
lea rdx, str.Falha_na_aloca
mov rcx, rbx
call fcn.1400023e0
jmp 0x14000545a
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x140005382
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov r8d, gethostname
lea rdx, str.Falha_ao_obter_informa
mov rcx, rbx
call fcn.1400023e0
jmp 0x14000545a
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x14011c150]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov ecx, dword [rbp + 4]
test ecx, ecx
je 0x1400053fa
sub ecx, 1
je 0x1400053eb
sub ecx, 1
je 0x1400053e2
sub ecx, 1
je 0x1400053d3
cmp ecx, 1
je 0x1400053c4
lea rdx, str.Desconhecido
mov r8d, recvfrom
jmp 0x140005407
lea rdx, str.disabled
mov r8d, 8
jmp 0x140005407
lea rdx, str.demandstart
mov r8d, ntohl
jmp 0x140005407
lea rdx, str.autostart
jmp 0x140005401
lea rdx, str.systemstart
mov r8d, ntohl
jmp 0x140005407
lea rdx, str.bootstart
mov r8d, 9
lea rcx, [rsp + 0x28]
call fcn.1400023e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x14011c150]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.14002a580
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d7fe0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret