Function at 0x1400147bc
Capabilities:
Create process on windows
Get common file path
Manipulate boot configuration

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x2e8]
sub rsp, 0x3c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400f3080]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rdi, rcx
cmp edx, 2
jae 0x140014806
xor eax, eax
jmp 0x140014c2f
mov r13d, 4
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov eax, dword [r14 + r13]
cmp dword [0x1400f88b8], eax
jle 0x140014851
lea rcx, [0x1400f88b8]
call fcn.14006bd2c
cmp dword [0x1400f88b8], 0xffffffff
jne 0x140014851
lea rcx, [0x1400b7718]
call fcn.14006c074
lea rcx, [0x1400f88b8]
call fcn.14006bccc
call fcn.1400136c4
call fcn.1400134e8
mov rbx, rax
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp - 0x20], xmm0
xor r15d, r15d
mov word [rbp - 0x30], r15w
lea rdx, [0x1400cb8ac]
lea rcx, [rbp - 0x30]
call fcn.140004c64
nop
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140025fa0
mov esi, eax
lea rcx, [rbp - 0x30]
call fcn.140004c00
test esi, esi
jns 0x140014c2d
mov edx, esi
lea rcx, [rbp + 0x90]
call fcn.140025c40
nop
lea r9d, [r15 + 0x12]
lea r8, [0x1400cc2e8]
mov rcx, rax
call fcn.140016620
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x80], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp + 0x90]
call fcn.140004c00
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r15w
lea rdx, [0x1400cc310]
lea rcx, [rbp - 0x30]
call fcn.140004c64
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x70]
mov rcx, qword [rdi + 8]
call fcn.1400133bc
nop
lea rcx, [rbp - 0x30]
call fcn.140004c00
cmp esi, 0xc0000428
jne 0x140014bd2
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
lea rdx, [0x1400cc320]
lea rcx, [rbp - 0x10]
call fcn.140004c64
nop
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r15w
lea rdx, [0x1400cc360]
lea rcx, [rbp - 0x30]
call fcn.140004c64
nop
mov r9, qword [rdi + 8]
lea r8d, [r15 + 3]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.140013434
mov ebx, eax
lea rcx, [rbp - 0x30]
call fcn.140004c00
nop
lea rcx, [rbp - 0x10]
call fcn.140004c00
cmp ebx, 6
jne 0x140014bd2
xor edx, edx
lea r8d, [r15 + 0x68]
lea rcx, [rsp + 0x60]
call fcn.14008a450
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov ebx, 0x1fe
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.14008a450
mov qword [rsp + 0x50], r15
mov edx, ebx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r15w
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x50]
call fcn.140004c64
nop
lea r8d, [r15 + 0x11]
lea rdx, str._system32cmd.exe
lea rcx, [rbp + 0x50]
call fcn.140009530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp + 0x50]
call fcn.140004c00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str._C_Bcdedit.exe__set_TESTSIGNING_ON
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
movdqa xmm0, xmmword [0x1400d76e0]
test eax, eax
je 0x140014b4b
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r15w
lea rdx, [0x1400cc3f8]
lea rcx, [rbp + 0x30]
call fcn.140004c64
nop
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], r15w
lea rdx, [0x1400cc408]
lea rcx, [rbp + 0x10]
call fcn.140004c64
nop
mov r9, qword [rdi + 8]
lea r8d, [r15 + 1]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.140013434
nop
lea rcx, [rbp + 0x10]
call fcn.140004c00
nop
lea rcx, [rbp + 0x30]
call fcn.140004c00
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014bbd
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], r15w
lea rdx, [0x1400cc448]
lea rcx, [rbp + 0x10]
call fcn.140004c64
nop
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r15w
lea rdx, [0x1400cc458]
lea rcx, [rbp + 0x30]
call fcn.140004c64
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x30]
mov rcx, qword [rdi + 8]
call fcn.1400133bc
nop
lea rcx, [rbp + 0x30]
call fcn.140004c00
nop
lea rcx, [rbp + 0x10]
call fcn.140004c00
mov rax, qword gs:[0x30]
mov esi, dword [rax + 0x1250]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
nop
lea rcx, [rbp - 0x30]
call fcn.140004c00
mov eax, dword [r14 + r13]
cmp dword [0x1400f88b8], eax
jle 0x140014c0b
lea rcx, [0x1400f88b8]
call fcn.14006bd2c
cmp dword [0x1400f88b8], 0xffffffff
jne 0x140014c0b
lea rcx, [0x1400b7718]
call fcn.14006c074
lea rcx, [0x1400f88b8]
call fcn.14006bccc
call fcn.1400138d0
lea rcx, [rdi + 0xb0]
mov rax, qword [rcx]
mov edx, dword [rdi + 0xa8]
call qword [rax + 0x50]
nop
lea rcx, [rbp + 0x70]
call fcn.140004c00
mov eax, esi
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14006bb00
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret