Function at 0x100002e24
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4a0
mov rax, qword [0x100006110]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r12, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rsi, rax
cmp rax, rbx
jne 0x100002e73
xor eax, eax
jmp 0x100003102
lea rdx, [rsp + 0x280]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x280]
lea r8, [r12 + 8]
lea rdx, [r12 + 8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r13, rax
cmp rax, rbx
jne 0x100002ef6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100002e6c
mov r14d, 0x100
lea r8, [0x1000015f0]
lea rcx, [rsp + 0x80]
mov rdx, r14
mov qword [rsp + 0x70], rbx
call sub.msvcrt.dll_wcscpy_s
or r8, 0xffffffffffffffff
xor eax, eax
mov rcx, r8
lea rdi, [rsp + 0x80]
mov rdx, r14
repne scasw ax, word [rdi]
lea rdi, [r12 + 8]
not rcx
dec rcx
sub rdx, rcx
mov rcx, r8
lea r8, [r12 + 8]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, rdx
cmovb rdx, rcx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_wcscat_s
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebx
jne 0x1000030ee
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x280]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x280]
lea rdx, [0x100001660]
not rcx
mov r9d, 2
xor r8d, r8d
inc ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
mov edi, 4
lea rax, [rsp + 0x78]
lea rdx, [0x100001688]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x78], 7
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [r12 + 8]
lea r8d, [rdi + 0x60]
mov edx, edi
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.100003200
lea r8, [0x1000016b0]
lea rcx, [rsp + 0x80]
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
or rdx, 0xffffffffffffffff
xor eax, eax
mov rcx, rdx
lea rdi, [rsp + 0x80]
lea r8, [r12 + 8]
repne scasw ax, word [rdi]
lea rdi, [r12 + 8]
not rcx
dec rcx
sub r14, rcx
mov rcx, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, r14
cmovb r14, rcx
lea rcx, [rsp + 0x80]
mov rdx, r14
call sub.msvcrt.dll_wcscat_s
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
jne 0x1000030e9
or rcx, 0xffffffffffffffff
lea rdx, [r12 + 0x88]
xor eax, eax
mov rdi, rdx
mov r9d, 1
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x1000016f8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.100004440
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret