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 r12
lea rbp, [r11 - 0x638]
sub rsp, 0x728
mov rax, qword [0x140024088]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x1e]
mov qword [r11 + 0x10], rsi
xor r12d, r12d
mov qword [r11 - 0x18], rdi
xor edx, edx
mov qword [r11 - 0x28], r15
mov r15, r8
mov r8d, 0x206
mov word [rbp - 0x20], r12w
call fcn.140003d70
xor edx, edx
mov word [rbp + 0x1f0], r12w
mov r8d, 0x40e
lea rcx, [rbp + 0x1f2]
call fcn.140003d70
lea ecx, [r12 + 1]
call qword [0x140024070]
lea ecx, [r12 + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400012a5
mov qword [rsp + 0x718], r14
lea ecx, [r12 + 0x43]
mov r14b, 1
mov ebx, r12d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
sub ecx, 1
je 0x140001144
cmp ecx, 1
jne 0x1400011f5
lea rbx, str.SYSTEMCurrentControlSetControlSafeBootNetwork
lea rdi, str.SYSTEMCurrentControlSetControlSafeBootNetworkMSIServer
jmp 0x140001152
lea rbx, str.SYSTEMCurrentControlSetControlSafeBootMinimal
lea rdi, str.SYSTEMCurrentControlSetControlSafeBootMinimalMSIServer
mov r9d, 0x20019
mov byte [rsp + 0x20], r14b
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140001510
test al, al
je 0x14000118d
mov rcx, qword [rsp + 0x50]
call qword [0x140024028]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r14b, r14b
jmp 0x1400011f5
mov r9d, 0x2001f
mov byte [rsp + 0x20], r12b
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140001510
test al, al
je 0x1400011f5
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 [0x140024040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x50]
call qword [0x140024028]
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 rdi, rax
test rax, rax
je 0x14000124b
mov r8d, 0x10
lea rdx, str.MSIServer
mov rcx, rax
call qword [0x140024020]
mov rsi, rax
test rax, rax
je 0x140001242
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rsi
call qword [0x140024018]
mov rcx, rdi
call qword [0x140024018]
test r14b, r14b
mov r14, qword [rsp + 0x718]
je 0x1400012a5
test rbx, rbx
je 0x1400012a5
mov r9d, 0x2001f
mov byte [rsp + 0x20], r12b
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140001510
test al, al
je 0x1400012a5
mov rcx, qword [rsp + 0x50]
lea rdx, str.MSIServer
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
call qword [0x140024028]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0x104
lea rcx, [rbp - 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x20]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1400012c4
lea rax, [rcx + 1]
cmp rax, rdi
jae 0x14000131c
lea rax, [rcx + 0xd]
lea r8, str.msiexec.exe
cmp rax, rdi
ja 0x1400012f5
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140008cd4
jmp 0x14000131c
lfence
sub rdi, rcx
lea rax, [rbp - 0x20]
mov r9d, 0x103
mov rdx, rdi
sub r9, rcx
lea rcx, [rax + rcx*2]
call fcn.140008bd8
mov word [rbp + 0x1e6], r12w
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], r12w
jne 0x140001356
mov edi, 0x208
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
mov esi, 0x207
mov edx, edi
cmp rax, rdi
jae 0x140001383
call fcn.140008b70
jmp 0x140001393
mov r9, rsi
call fcn.140008bd8
mov word [rbp + 0x5fe], r12w
lea rax, [rbp + 0x1f0]
mov rcx, rbx
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1400013a0
lea rax, [rcx + 1]
cmp rax, rdi
jae 0x1400013f8
lea rax, [rcx + 2]
mov rdx, rdi
lea r8, [0x14002162c]
cmp rax, rdi
ja 0x1400013d4
lea rcx, [rbp + 0x1f0]
call fcn.140008cd4
jmp 0x1400013f8
lfence
lea rax, [rbp + 0x1f0]
sub rdx, rcx
mov r9, rsi
sub r9, rcx
lea rcx, [rax + rcx*2]
call fcn.140008bd8
mov word [rbp + 0x5fe], r12w
lea rax, [rbp + 0x1f0]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140001402
lea rax, [rcx + 1]
cmp rax, rdi
jae 0x140001466
inc rbx
cmp word [r15 + rbx*2], r12w
jne 0x140001415
lea rax, [rcx + 1]
add rax, rbx
lfence
mov r8, r15
cmp rax, rdi
ja 0x140001442
mov rdx, rdi
lea rcx, [rbp + 0x1f0]
call fcn.140008cd4
jmp 0x140001466
sub rsi, rcx
lea rax, [rbp + 0x1f0]
sub rdi, rcx
mov r9, rsi
lea rcx, [rax + rcx*2]
mov rdx, rdi
call fcn.140008bd8
mov word [rbp + 0x5fe], r12w
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], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r15, qword [rsp + 0x710]
mov rdi, qword [rsp + 0x720]
mov rsi, qword [rsp + 0x748]
mov rbx, qword [rsp + 0x740]
test eax, eax
je 0x1400014ee
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400014d9
call qword [0x140024048]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400014e9
call qword [0x140024048]
mov eax, r12d
jmp 0x1400014f3
mov eax, 0x65b
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.140001c70
add rsp, 0x728
pop r12
pop rbp
ret