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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
movaps xmm0, xmmword [str.SystemCurrentControlSetServicesAmaterasu]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [0x140004e00]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm0, xmmword [0x140004e10]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm1, xmmword [0x140004e20]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm0, xmmword [0x140004e30]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [0x140004e40]
movsd qword [rbp - 0x10], xmm1
xor edx, edx
mov r8d, 0x1b0
lea rcx, [rbp - 8]
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x7c], ebx
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400013dd
xor al, al
jmp 0x140001586
mov dword [rsp + 0x78], ebx
lea rcx, [rsp + 0x50]
call fcn.140001230
nop
mov r8, rax
lea rdx, str.___
lea rcx, [rbp - 0x80]
call fcn.1400022b0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140001445
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001440
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001440
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000260c
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000153e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000153e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000153e
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea r8, [rbp - 0x80]
cmovae r8, qword [rbp - 0x80]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rdx + rax*2], 0
jne 0x140001500
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000153e
mov bl, 1
jmp 0x140001540
xor bl, bl
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140001583
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000157e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000157e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000260c
movzx eax, bl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400025b0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rbp
ret