Function at 0x1400031d0
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, 0x290
mov rax, qword [0x140015028]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r12d, r12d
mov r13d, 1
lea rcx, [rsp + 0xc0]
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 r8, [rsp + 0x98]
lea rdx, str.SoftwareAndrea_ElectronicsAEAudioSrv
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000329d
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0xa0]
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 0x1400032b8
lea rcx, str.Starting_service
mov r9d, r13d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
cmp dword [0x14001758c], ebp
jne 0x140003320
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 0x140003320
lea rcx, [0x140012690]
call fcn.140002a40
jmp 0x140003aba
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 0x140003aba
cmp dword [0x14001758c], ebp
mov qword [rsp + 0x58], rax
jne 0x1400033ae
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 0x1400033ae
lea rcx, [0x140012690]
call fcn.140002a40
jmp 0x140003aba
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 0x140003aba
cmp dword [0x14001758c], ebp
jne 0x140003435
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 0x140003435
lea rcx, [0x140012690]
call fcn.140002a40
jmp 0x140003aba
mov ecx, 0x28
call fcn.140004a70
test rax, rax
mov rbp, rax
je 0x140003aba
mov edx, r13d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140003aba
lea rax, [rsp + 0xa8]
mov dword [rsp + 0xa8], 0x18
mov dword [rsp + 0xb8], r13d
test rax, rax
mov qword [rsp + 0xb0], rbp
je 0x140003a9d
lea r8, [rsp + 0xb0]
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 0x140003a9d
cmp dword [0x14001758c], r12d
jne 0x140003516
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 0x140003516
lea rcx, [0x140012690]
call fcn.140002a40
jmp 0x140003aba
lea rax, [rsp + 0xa8]
lea rcx, str..pipeAESTAPOProperties
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 0x14000358f
lea rcx, str.Unable_to_create_named_pipe
call fcn.140002a40
cmp dword [rsp + 0x50], r12d
je 0x140003ad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed
xor r9d, r9d
mov edx, eax
xor r8d, r8d
call fcn.140003b90
jmp 0x140003aba
cmp dword [0x14001758c], r12d
jne 0x1400035e7
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 0x1400035e7
lea rcx, [0x140012690]
call fcn.140002a40
jmp 0x140003aba
mov qword [rsp + 0x2b0], rbx
mov qword [rsp + 0x2b8], rdi
nop
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 0x14000364b
lea rcx, str.Before_ConnectNamedPipe
xor r9d, r9d
mov r8d, r13d
or edx, 0xffffffff
call fcn.140003b90
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 0x140003685
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 0x140003aaa
cmp dword [rsp + 0x50], r12d
je 0x1400036a1
lea rcx, str.After_ConnectNamedPipe
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
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 + 0x160]
mov r8d, 0x88
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003758
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003758
cmp dword [rsp + 0x50], r12d
je 0x140003723
lea rcx, str.Wait_for_Read_Pipe
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
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 0x140003aaa
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 0x140003775
mov edx, dword [rsp + 0x54]
lea rcx, str.Read_Pipe
xor r9d, r9d
xor r8d, r8d
call fcn.140003b90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp dword [rsp + 0x54], 0x88
jne 0x140003a6c
cmp dword [rsp + 0x160], 0xae0ae0ae
jne 0x140003a6c
mov eax, dword [rsp + 0x164]
sub eax, r13d
je 0x140003811
cmp eax, 5
je 0x1400037e3
lea rcx, str.Unknown_data_packet
call fcn.140002a40
cmp dword [rsp + 0x50], r12d
je 0x140003600
mov edx, dword [rsp + 0x164]
lea rcx, str.Unknown_data_packet
xor r9d, r9d
xor r8d, r8d
call fcn.140003b90
jmp 0x140003600
cmp dword [rsp + 0x50], r12d
je 0x1400037ff
lea rcx, str.Processing_UnlockFilters_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
lea rcx, [rsp + 0xc0]
call fcn.140002280
jmp 0x140003600
cmp dword [rsp + 0x50], r12d
je 0x14000382d
lea rcx, str.Processing_AEFilters_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
cmp dword [rsp + 0x11c], r12d
mov dword [rsp + 0x168], 0xaeaeaeae
jne 0x140003992
or r9d, 0xffffffff
lea rdx, str.Start_WriteService
lea rcx, [rsp + 0xc0]
or r8d, r9d
mov edi, r12d
mov dword [rsp + 0x20], r13d
call fcn.140001970
lea rcx, [rsp + 0xc0]
call fcn.140001700
test rax, rax
mov rbx, rax
jne 0x1400038a0
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0xc0]
call fcn.140001700
test rax, rax
mov rbx, rax
je 0x14000396d
lea rcx, [rsp + 0x168]
lea rdx, [rsp + 0x1f8]
mov dword [rsp + 0x1f0], 0xae0ae0ae
mov rax, qword [rcx]
mov dword [rsp + 0x1f4], r13d
lea r9, [rsp + 0xa4]
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 + 0x1f0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000393b
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 0x14000396d
or r9d, 0xffffffff
lea rdx, str.WriteService_successful
lea rcx, [rsp + 0xc0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.140001970
jmp 0x140003600
or r9d, 0xffffffff
lea rdx, str.WriteService_failed
lea rcx, [rsp + 0xc0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.140001970
jmp 0x140003600
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
lea rdx, str.SoftwareIDTAEAPO
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 0x140003a47
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x168]
lea rdx, [0x140011fd8]
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 0x140003a47
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [rsp + 0xc0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.140001970
jmp 0x140003600
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [rsp + 0xc0]
or r8d, r9d
mov dword [rsp + 0x20], r12d
call fcn.140001970
jmp 0x140003600
lea rcx, str.Bad_data_packet
call fcn.140002a40
cmp dword [rsp + 0x50], r12d
je 0x140003600
lea rcx, str.Bad_data_packet
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
jmp 0x140003600
mov rcx, qword [rsp + 0x148]
test rcx, rcx
jmp 0x140003b25
mov rbx, qword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x2b8]
cmp dword [rsp + 0x50], r12d
je 0x140003ad6
lea rcx, str.Shutdown_cleanup
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call fcn.140003b90
cmp rsi, 0xffffffffffffffff
je 0x140003ae5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140017590]
test rax, rax
je 0x140003afa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140003b0d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x140003b1a
mov rcx, rbp
call fcn.1400040a0
mov rcx, qword [rsp + 0x148]
test rcx, rcx
je 0x140003b64
mov dword [rsp + 0x124], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x140]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140003f10
mov rbp, qword [rsp + 0x2c0]
add rsp, 0x290
pop r13
pop r12
pop rsi
ret