Function at 0x140001080
Capabilities:
Create process on windows
Delete registry key
Get common file path
Manipulate safe mode programs
Start service

Disassembly:
mov r11, rsp
push rbp
push r13
lea rbp, [r11 - 0x638]
sub rsp, 0x728
mov rax, qword [0x140024128]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x20]
mov qword [r11 + 0x10], rsi
xor edx, edx
mov qword [r11 + 0x20], rdi
mov edi, 0x208
mov qword [r11 - 0x18], r12
mov r12, r8
mov r8d, edi
call fcn.1400044a0
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x410
call fcn.1400044a0
mov ecx, 1
call qword [0x140024088]
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor r13d, r13d
test eax, eax
je 0x1400012a9
mov qword [rsp + 0x710], r15
lea ecx, [r13 + 0x43]
mov r15b, 1
mov ebx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
sub ecx, 1
je 0x140001138
cmp ecx, 1
jne 0x1400011e9
lea rbx, str.SYSTEMCurrentControlSetControlSafeBootNetwork
lea rsi, str.SYSTEMCurrentControlSetControlSafeBootNetworkMSIServer
jmp 0x140001146
lea rbx, str.SYSTEMCurrentControlSetControlSafeBootMinimal
lea rsi, str.SYSTEMCurrentControlSetControlSafeBootMinimalMSIServer
mov r9d, 0x20019
mov byte [rsp + 0x20], r15b
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call fcn.140001520
test al, al
je 0x140001181
mov rcx, qword [rsp + 0x50]
call qword [0x140024098]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r15b, r15b
jmp 0x1400011e9
mov r9d, 0x2001f
mov byte [rsp + 0x20], r13b
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call fcn.140001520
test al, al
je 0x1400011e9
mov rcx, qword [rsp + 0x50]
lea rax, str.Service
mov dword [rsp + 0x28], 0x10
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [0x1400240b8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x50]
call qword [0x140024098]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14000124f
mov r8d, 0x10
mov qword [rsp + 0x718], r14
lea rdx, str.MSIServer
mov rcx, rax
call qword [0x140024078]
mov r14, rax
test rax, rax
je 0x14000123e
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, r14
call qword [0x140024080]
mov rcx, rsi
call qword [0x140024080]
mov r14, qword [rsp + 0x718]
test r15b, r15b
mov r15, qword [rsp + 0x710]
je 0x1400012a9
test rbx, rbx
je 0x1400012a9
mov r9d, 0x2001f
mov byte [rsp + 0x20], r13b
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140001520
test al, al
je 0x1400012a9
mov rcx, qword [rsp + 0x50]
lea rdx, str.MSIServer
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
call qword [0x140024098]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x104
lea rcx, [rbp - 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x20]
mov rcx, rbx
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400012d0
lea rax, [rcx + 1]
cmp rax, rsi
jae 0x140001328
lea rax, [rcx + 0xd]
lea r8, str.msiexec.exe
cmp rax, rsi
ja 0x140001301
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140008a40
jmp 0x140001328
lfence
sub rsi, rcx
lea rax, [rbp - 0x20]
mov r9d, 0x103
mov rdx, rsi
sub r9, rcx
lea rcx, [rax + rcx*2]
call fcn.14000895c
mov word [rbp + 0x1e6], r13w
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x2c], eax
mov qword [rsp + 0x68], rax
mov rax, rbx
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rsp + 0x58], xmm0
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140001362
lea r8, [rbp - 0x20]
mov esi, 0x207
lea rcx, [rbp + 0x1f0]
mov rdx, rdi
cmp rax, rdi
jae 0x14000138b
call fcn.1400088f4
jmp 0x14000139b
mov r9, rsi
call fcn.14000895c
mov word [rbp + 0x5fe], r13w
lea rax, [rbp + 0x1f0]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400013a5
lea rax, [rcx + 1]
cmp rax, rdi
jae 0x1400013fd
lea rax, [rcx + 2]
mov rdx, rdi
lea r8, [0x14002199c]
cmp rax, rdi
ja 0x1400013d9
lea rcx, [rbp + 0x1f0]
call fcn.140008a40
jmp 0x1400013fd
lfence
lea rax, [rbp + 0x1f0]
sub rdx, rcx
mov r9, rsi
sub r9, rcx
lea rcx, [rax + rcx*2]
call fcn.14000895c
mov word [rbp + 0x5fe], r13w
lea rax, [rbp + 0x1f0]
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140001410
lea rax, [rcx + 1]
cmp rax, rdi
jae 0x140001474
inc rbx
cmp word [r12 + rbx*2], r13w
jne 0x140001423
lea rax, [rcx + 1]
add rax, rbx
lfence
mov r8, r12
cmp rax, rdi
ja 0x140001450
mov rdx, rdi
lea rcx, [rbp + 0x1f0]
call fcn.140008a40
jmp 0x140001474
sub rsi, rcx
lea rax, [rbp + 0x1f0]
sub rdi, rcx
mov r9, rsi
lea rcx, [rax + rcx*2]
mov rdx, rdi
call fcn.14000895c
mov word [rbp + 0x5fe], r13w
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r12, qword [rsp + 0x720]
mov rdi, qword [rsp + 0x758]
mov rsi, qword [rsp + 0x748]
mov rbx, qword [rsp + 0x740]
test eax, eax
je 0x1400014fc
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400014e7
call qword [0x140024090]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400014f7
call qword [0x140024090]
mov eax, r13d
jmp 0x140001501
mov eax, 0x65b
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.1400023e0
add rsp, 0x728
pop r13
pop rbp
ret