Function at 0x1401d9de0
Capabilities:
Start service
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x50
xor esi, esi
mov dword [0x1403185c0], 0xaee0aee0
cmp dword [0x14031862c], esi
mov edi, esi
jne 0x1401d9d1b
lea rbx, [0x1403185c0]
mov rdx, rbx
mov rcx, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp 0x1401d9de0
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rbx, [0x1403185c0]
test eax, eax
jne 0x1401d9da6
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
lea rdx, str.RenProperties
xor r8d, r8d
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
lea rdx, str.WriteRegistry_successful
jne 0x1401d9dad
lea rdx, str.WriteRegistry_failed
or r9d, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], esi
or r8d, r9d
call fcn.1401da170
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0xf0
mov rax, qword [0x140300da0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
or r9d, 0xffffffff
lea rdx, str.Start_WriteService
lea rcx, [0x1403185c0]
xor r12d, r12d
mov r13d, 1
or r8d, r9d
mov edi, r12d
mov dword [rsp + 0x20], r13d
call fcn.1401da170
mov qword [rsp + 0x30], r12
lea rcx, str..pipeAERTAPOProperties
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1401d9fde
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], r12
lea rcx, str..pipeAERTAPOProperties
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1401d9fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Cant_open_pipe:
lea rcx, [0x1403185c0]
mov r8d, eax
or r9d, ebx
mov dword [rsp + 0x20], r12d
call fcn.1401da170
cmp dword [0x140318630], r12d
je 0x1401d9f28
mov dword [0x140318630], r13d
lea rdx, str.WriteService_failed
or r9d, 0xffffffff
lea rcx, [0x1403185c0]
mov dword [rsp + 0x20], r12d
or r8d, r9d
call fcn.1401da170
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140216200
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov r8d, r13d
xor edx, edx
xor ecx, ecx
mov esi, r12d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x1401d9ede
lea rdx, str.AERTFilters
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
mov qword [rsp + 0x110], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbp, rax
je 0x1401d9f83
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbp
test eax, eax
cmovne esi, r13d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
mov rbp, qword [rsp + 0x110]
je 0x1401d9ede
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], r12
lea rcx, str..pipeAERTAPOProperties
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1401d9ede
test rbx, rbx
je 0x1401d9ede
lea rcx, [rsp + 0x58]
lea rdx, [0x1403185c0]
mov r8d, 0x60
mov dword [rsp + 0x50], 0xae0ae0ae
mov dword [rsp + 0x54], 2
call fcn.140219480
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x88
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401da03c
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 0x1401d9ede
lea rdx, str.WriteService_successful
jmp 0x1401d9ee5