Function at 0x140006f00
Capabilities:
Get session user name
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x558]
sub rsp, 0x640
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov rdi, rdx
mov esi, ecx
xor r14d, r14d
mov ebx, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 0xffff
lea r15, [0x14003fb58]
mov r8, r15
lea rdx, str.SOFTWAREOEMQuick_AccessLog
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000709a
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x110]
call fcn.14000eeb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x320]
call fcn.14000eeb0
mov dword [rsp + 0x50], 0x208
mov r8d, 0x104
lea rdx, [rbp + 0x110]
lea rcx, str.PROGRAMDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x320]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x320]
mov qword [rsp + 0x20], rax
lea r9, str.OEMQuick_AccessLog
lea r8, [rbp + 0x110]
lea rdx, str._s_s_s__s.log
lea rcx, [rbp + 0x110]
call fcn.1400055e0
lea ecx, [r14 + 0x38]
call fcn.14000b9a4
mov rbx, rax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
lea rax, [rbp + 0x110]
mov qword [rbx], rax
mov qword [rbx + 8], r15
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp]
call fcn.14000eeb0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x104
lea rax, [rbp]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rbp + 0x110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp]
call qword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, 1
jle 0x1400070f8
mov rdx, qword [rdi + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x1400070f8
add rdx, 2
lea rcx, str.install
call fcn.1400159f0
test eax, eax
jne 0x1400070d2
call fcn.140006ae0
jmp 0x140007212
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.remove
call fcn.1400159f0
test eax, eax
jne 0x140007212
call fcn.140006cf0
jmp 0x140007212
lea rcx, str.Parameters:_n
call fcn.140006ea0
lea rcx, str.__install__to_install_the_service._n
call fcn.140006ea0
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140006ea0
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.14000eeb0
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x68], r14
mov dword [rsp + 0x78], 0x10
mov dword [rsp + 0x7c], 2
mov qword [rbp - 0x80], 0xc5
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x70], r14d
mov qword [rsp + 0x68], rbx
lea rax, vtable.CServiceInstance.0
mov qword [rsp + 0x60], rax
mov dword [rbp - 0x60], r14d
mov qword [0x140049c58], rbx
mov qword [rbp - 0x48], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x58], rax
test rax, rax
jne 0x1400071be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rdx, [0x140045cf0]
lea rcx, [rsp + 0x50]
call fcn.14000e714
nop
lea rax, [rsp + 0x60]
mov qword [0x140049c50], rax
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x20], rax
lea rax, [0x140002ad0]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140007208
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140006ea0
lea rcx, [rsp + 0x60]
call fcn.140006170
xor eax, eax
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.14000b980
lea r11, [rsp + 0x640]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret