Function at 0x1400037e0
Capabilities:
Connect pipe
Create pipe
Query or enumerate registry value
Read file on windows
Set registry value
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
sub rsp, 0x350
mov rax, qword [0x140015028]
xor rax, rsp
mov qword [rsp + 0x340], rax
xor r12d, r12d
mov r13d, 1
lea rcx, [rsp + 0xd0]
mov r8d, r13d
mov edx, r13d
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov rbp, r12
mov dword [rsp + 0x50], r12d
call section..text
lea rcx, [rsp + 0x170]
mov r8d, r13d
xor edx, edx
call fcn.140002210
lea r8, [rsp + 0x98]
lea rdx, str.SoftwareAndrea_ElectronicsAEAudioSrv
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1400038bf
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.Logging
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmovne ecx, r12d
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], ebp
je 0x1400038da
lea rcx, str.Starting_service
mov r9d, r13d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
cmp dword [0x14001758c], ebp
jne 0x140003942
mov eax, dword [0x1400164cc]
mov rcx, qword [0x140017560]
lea rdx, [0x140017568]
mov dword [0x14001757c], eax
add eax, r13d
mov dword [0x140017570], r12d
mov dword [0x14001756c], 2
mov dword [0x140017574], r12d
mov dword [0x140017580], 0xbb8
mov dword [0x1400164cc], eax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140003942
lea rcx, [0x140012800]
call fcn.140003050
jmp 0x140004255
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x140017590], rax
je 0x140004255
cmp dword [0x14001758c], ebp
mov qword [rsp + 0x58], rax
jne 0x1400039d0
mov eax, dword [0x1400164cc]
mov rcx, qword [0x140017560]
lea rdx, [0x140017568]
mov dword [0x14001757c], eax
add eax, r13d
mov dword [0x140017570], r12d
mov dword [0x14001756c], 2
mov dword [0x140017574], r12d
mov dword [0x140017580], 0xbb8
mov dword [0x1400164cc], eax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x1400039d0
lea rcx, [0x140012800]
call fcn.140003050
jmp 0x140004255
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rsp + 0x60], rax
je 0x140004255
cmp dword [0x14001758c], ebp
jne 0x140003a57
mov eax, dword [0x1400164cc]
mov rcx, qword [0x140017560]
lea rdx, [0x140017568]
mov dword [0x14001757c], eax
add eax, r13d
mov dword [0x140017570], r12d
mov dword [0x14001756c], 2
mov dword [0x140017574], r12d
mov dword [0x140017580], 0xbb8
mov dword [0x1400164cc], eax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140003a57
lea rcx, [0x140012800]
call fcn.140003050
jmp 0x140004255
mov ecx, 0x28
call fcn.140005250
test rax, rax
mov rbp, rax
je 0x140004255
mov edx, r13d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140004255
lea rax, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x18
mov dword [rsp + 0xc0], r13d
test rax, rax
mov qword [rsp + 0xb8], rbp
je 0x1400041eb
lea r8, [rsp + 0xb8]
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_
xor r9d, r9d
mov edx, r13d
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x1400041eb
cmp dword [0x14001758c], r12d
jne 0x140003b38
mov eax, dword [0x1400164cc]
mov rcx, qword [0x140017560]
lea rdx, [0x140017568]
mov dword [0x14001757c], eax
add eax, r13d
mov dword [0x140017570], r12d
mov dword [0x14001756c], 2
mov dword [0x140017574], r12d
mov dword [0x140017580], 0xbb8
mov dword [0x1400164cc], eax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140003b38
lea rcx, [0x140012800]
call fcn.140003050
jmp 0x140004255
lea rax, [rsp + 0xb0]
lea rcx, str..pipeAERTAPOProperties
mov r9d, r13d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x40000001
mov r8d, 6
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x140003bb1
lea rcx, str.Unable_to_create_named_pipe
call fcn.140003050
cmp dword [rsp + 0x50], r12d
je 0x140004271
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed
xor r9d, r9d
mov edx, eax
xor r8d, r8d
call fcn.140004370
jmp 0x140004255
cmp dword [0x14001758c], r12d
jne 0x140003c09
mov rcx, qword [0x140017560]
lea rdx, [0x140017568]
mov dword [0x140017570], r13d
mov dword [0x14001756c], 4
mov dword [0x140017574], r12d
mov dword [0x140017580], r12d
mov dword [0x14001757c], r12d
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140003c09
lea rcx, [0x140012800]
call fcn.140003050
jmp 0x140004255
mov qword [rsp + 0x370], rbx
mov qword [rsp + 0x378], rdi
nop
nop
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [rsp + 0x50], r12d
je 0x140003c6b
lea rcx, str.Before_ConnectNamedPipe
xor r9d, r9d
mov r8d, r13d
or edx, 0xffffffff
call fcn.140004370
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003ca5
xor r8d, r8d
lea rdx, [rsp + 0x58]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, r13d
jne 0x140004245
cmp dword [rsp + 0x50], r12d
je 0x140003cc1
lea rcx, str.After_ConnectNamedPipe
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x70]
lea r9, [rsp + 0x54]
lea rdx, [rsp + 0x220]
mov r8d, 0x88
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003d78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003d78
cmp dword [rsp + 0x50], r12d
je 0x140003d43
lea rcx, str.Wait_for_Read_Pipe
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
xor r8d, r8d
lea rdx, [rsp + 0x58]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, r13d
jne 0x140004245
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [rsp + 0x50], r12d
je 0x140003d95
mov edx, dword [rsp + 0x54]
lea rcx, str.Read_Pipe
xor r9d, r9d
xor r8d, r8d
call fcn.140004370
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp dword [rsp + 0x54], 0x88
jne 0x1400041ba
cmp dword [rsp + 0x220], 0xae0ae0ae
jne 0x1400041ba
mov eax, dword [rsp + 0x224]
sub eax, r13d
je 0x140003f5f
sub eax, r13d
je 0x140003e3a
cmp eax, 4
je 0x140003e0c
lea rcx, str.Unknown_data_packet
call fcn.140003050
cmp dword [rsp + 0x50], r12d
je 0x140003c20
mov edx, dword [rsp + 0x224]
lea rcx, str.Unknown_data_packet
xor r9d, r9d
xor r8d, r8d
call fcn.140004370
jmp 0x140003c20
cmp dword [rsp + 0x50], r12d
je 0x140003e28
lea rcx, str.Processing_UnlockFilters_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
lea rcx, [rsp + 0xd0]
call fcn.140001ec0
jmp 0x140003c20
cmp dword [rsp + 0x50], r12d
je 0x140003e56
lea rcx, str.Processing_AERenInfo_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
cmp dword [rsp + 0x1dc], r12d
mov dword [rsp + 0x228], 0xaee0aee0
jne 0x140003e85
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x170]
call fcn.140002430
jmp 0x140003c20
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0xa0]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140003f3a
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x228]
lea rdx, str.RenProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0xa0]
test eax, eax
mov ebx, r12d
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140003f3a
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [rsp + 0x170]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.140002690
jmp 0x140003c20
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [rsp + 0x170]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.140002690
jmp 0x140003c20
cmp dword [rsp + 0x50], r12d
je 0x140003f7b
lea rcx, str.Processing_AEFilters_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
cmp dword [rsp + 0x12c], r12d
mov dword [rsp + 0x228], 0xaeaeaeae
jne 0x1400040e0
or r9d, 0xffffffff
lea rdx, str.Start_WriteService
lea rcx, [rsp + 0xd0]
or r8d, r9d
mov edi, r12d
mov dword [rsp + 0x20], r13d
call fcn.1400015b0
lea rcx, [rsp + 0xd0]
call fcn.140001450
test rax, rax
mov rbx, rax
jne 0x140003fee
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0xd0]
call fcn.140001450
test rax, rax
mov rbx, rax
je 0x1400040bb
lea rcx, [rsp + 0x228]
lea rdx, [rsp + 0x2b8]
mov dword [rsp + 0x2b0], 0xae0ae0ae
mov rax, qword [rcx]
mov dword [rsp + 0x2b4], r13d
lea r9, [rsp + 0xc8]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov r8d, 0x88
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rdx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rdx + 0x30], rax
mov rax, qword [rcx + 0x38]
mov qword [rdx + 0x38], rax
mov eax, dword [rcx + 0x40]
mov rcx, rbx
mov dword [rdx + 0x40], eax
lea rdx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140004089
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400040bb
or r9d, 0xffffffff
lea rdx, str.WriteService_successful
lea rcx, [rsp + 0xd0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.1400015b0
jmp 0x140003c20
or r9d, 0xffffffff
lea rdx, str.WriteService_failed
lea rcx, [rsp + 0xd0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.1400015b0
jmp 0x140003c20
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140004195
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x228]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x90]
test eax, eax
mov ebx, r12d
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140004195
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [rsp + 0xd0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.1400015b0
jmp 0x140003c20
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [rsp + 0xd0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.1400015b0
jmp 0x140003c20
lea rcx, str.Bad_data_packet
call fcn.140003050
cmp dword [rsp + 0x50], r12d
je 0x140003c20
lea rcx, str.Bad_data_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
jmp 0x140003c20
mov rcx, qword [rsp + 0x208]
test rcx, rcx
je 0x140004235
mov dword [rsp + 0x1e4], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x200]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x158]
test rcx, rcx
jmp 0x14000430a
mov rbx, qword [rsp + 0x370]
mov rdi, qword [rsp + 0x378]
cmp dword [rsp + 0x50], r12d
je 0x140004271
lea rcx, str.Shutdown_cleanup
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140004370
cmp rsi, 0xffffffffffffffff
je 0x140004280
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140017590]
test rax, rax
je 0x140004295
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400042a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x1400042b5
mov rcx, rbp
call fcn.140004a40
mov rcx, qword [rsp + 0x208]
test rcx, rcx
je 0x1400042ff
mov dword [rsp + 0x1e4], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x200]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x158]
test rcx, rcx
je 0x140004349
mov dword [rsp + 0x134], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x150]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400046f0
mov rbp, qword [rsp + 0x380]
add rsp, 0x350
pop r13
pop r12
pop rsi
ret