Function at 0x14001b0c0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0xb8], r13d
xor edx, edx
xor ecx, ecx
lea r8d, [r13 + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
jne 0x14001b118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_open_Service_Control_Manager___GetServiceModules:__lu_n
lea edx, [r13 + 2]
call fcn.1400129d0
xor eax, eax
jmp 0x14001b359
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x14001b19c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14001b19c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_enumerate_services___GetServiceModules:__lu_n
mov edx, 2
call fcn.1400129d0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14001b359
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
jne 0x14001b1d0
lea r8, str.Memory_allocation_failed___GetServiceModules
lea edx, [rax + 2]
call fcn.140012820
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14001b359
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x14001b256
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_enumerate_services___GetServiceModules:__lu_n
mov edx, 2
call fcn.1400129d0
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14001b359
mov ebp, r13d
cmp dword [rsp + 0xb0], r13d
jbe 0x14001b342
nop word [rax + rax]
mov ecx, 0x48
call fcn.14001f040
mov rsi, rax
mov qword [rax + 0x40], r13
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], r13
mov qword [rax + 0x38], 7
mov word [rax + 0x20], r13w
mov eax, ebp
imul rbx, rax, 0x38
add rbx, r12
mov eax, dword [rbx + 0x2c]
mov dword [rsi + 0x40], eax
mov rdx, qword [rbx + 8]
mov rcx, rsi
call fcn.1400150c0
mov rdx, qword [rbx]
lea rcx, [rsi + 0x20]
call fcn.1400150c0
mov ecx, dword [rbx + 0x14]
sub ecx, 1
je 0x14001b2e9
sub ecx, 3
je 0x14001b371
cmp ecx, 3
jne 0x14001b2ed
mov byte [rsi + 0x44], 0
mov rbx, qword [r14]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [r14 + 8], rax
je 0x14001b37a
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r13
mov ecx, 0x18
call fcn.14001f040
mov qword [rax + 0x10], rsi
inc qword [r14 + 8]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rsp + 0x58], r13
mov qword [rbx + 8], rax
mov qword [rcx], rax
inc ebp
cmp ebp, dword [rsp + 0xb0]
jb 0x14001b270
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsi + 0x44], 1
jmp 0x14001b2ed
lea rcx, str.list_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3