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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x270]
xor edx, edx
mov qword [rsp + 0x50], rsi
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rbx
lea r9, str.SystemCurrentControlSetServices_ws
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x58], esi
mov r8, rbx
mov dword [rsp + 0x5c], esi
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.1400010a0
lea rax, str.___
mov qword [rsp + 0x28], rdi
lea r9, [0x1400044b0]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.1400010a0
lea rax, [rsp + 0x5c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x270]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140001229
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetRegistryValues.RegCreateKeyExA
lea rcx, str._s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001394
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000127d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx.Type
lea rcx, str._s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001394
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.ErrorControl
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400012d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx.ErrorControl
lea rcx, str._s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001394
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001322
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx.Start
lea rcx, str._s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001394
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x140001330
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea ebx, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ebx
lea rdx, str.ImagePath
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000138f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx.ImagePath
lea rcx, str._s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001394
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140003010
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret