Function at 0x14001b590
Capabilities:
Create pipe
Create process on windows
Manipulate boot configuration
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rbp + 0x490], rax
xor ebx, ebx
mov dword [rsp + 0x78], 0x18
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x80], rbx
lea rcx, [rbp + 0x68]
call fcn.14001c350
nop
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14001b664
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreatePipe_failed___Services::IsMachineAllowingSelfSignedDrivers:__d_n
mov edx, 2
call fcn.140012580
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 0xf
jbe 0x14001b98f
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b98a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb2c
jmp 0x14001b98a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x50], 0x68
mov dword [rbp - 0x14], 0x100
mov rax, qword [rsp + 0x70]
mov qword [rbp + 8], rax
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rbx
mov r8d, 0x1c
lea rdx, str.WindowsSystem32_bcdedit.exe
lea rcx, [rbp + 0x48]
call fcn.140012910
nop
lea r12, [rbp + 0x68]
mov rsi, qword [rbp + 0x68]
mov r13, qword [rbp + 0x80]
cmp r13, 0xf
cmova r12, rsi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [r12 + rdi], 0
jne 0x14001b6e0
movabs r8, 0x7fffffffffffffff
mov rax, r8
mov rcx, qword [rbp + 0x58]
sub rax, rcx
cmp rax, rdi
jb 0x14001bb42
lea rax, [rbp + 0x48]
mov r14, qword [rbp + 0x48]
cmp qword [rbp + 0x60], 0xf
cmova rax, r14
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
lea rdx, [rcx + rdi]
mov qword [rsp + 0x58], rdx
mov r15d, send
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
cmp rdx, r15
jbe 0x14001b7ab
mov r15, rdx
or r15, 0xf
cmp r15, r8
jbe 0x14001b769
mov r15, r8
movabs rcx, 0x8000000000000000
call fcn.140012d50
jmp 0x14001b79d
mov eax, 0x16
cmp r15, rax
cmovb r15, rax
lea rcx, [r15 + 1]
test rcx, rcx
jne 0x14001b788
mov rax, rbx
mov qword [rsp + 0x50], rbx
jmp 0x14001b7a7
cmp rcx, 0x1000
jb 0x14001b798
call fcn.140012d50
jmp 0x14001b79d
call fcn.14001f070
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r15
mov r8, rdi
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r15, qword [rsp + 0x50]
lea rcx, [r15 + rdi]
mov r8, qword [rbp + 0x58]
mov rdx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x58]
mov byte [r15 + rax], 0
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0xf
cmova rcx, qword [rbp + 0x28]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov r15d, 1
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14001b85d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateProcess_failed___Services::IsMachineAllowingSelfSignedDrivers:__d_n
mov edx, 2
call fcn.140012580
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
jmp 0x14001b8c9
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x20]
mov r8d, 0x3ff
lea rdx, [rbp + 0x90]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001b9c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.ReadFile_failed___Services::IsMachineAllowingSelfSignedDrivers:__d_n
mov edx, 2
call fcn.140012580
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14001b90b
inc rdx
mov rcx, qword [rbp + 0x28]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14001b906
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001baa5
call fcn.14001f0ac
movdqa xmm0, xmmword [0x140033750]
mov byte [rbp + 0x28], 0
movdqu xmmword [rbp + 0x38], xmm0
mov rax, qword [rbp + 0x60]
cmp rax, 0xf
jbe 0x14001b958
lea rdx, [rax + 1]
cmp rdx, 0x1000
mov rax, r14
jb 0x14001b94f
mov r14, qword [r14 - 8]
sub rax, r14
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001baf1
mov rcx, r14
call fcn.14001f0ac
nop
cmp r13, 0xf
jbe 0x14001b98f
lea rdx, [r13 + 1]
cmp rdx, 0x1000
mov rax, rsi
jb 0x14001b987
mov rsi, qword [rsi - 8]
sub rax, rsi
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb2c
mov rcx, rsi
call fcn.14001f0ac
xor eax, eax
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.14001f050
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x20]
cmp rax, 0x400
jae 0x14001bb48
mov byte [rbp + rax + 0x90], 0
lea rdx, str.The_boot_configuration_data_store_could_not_be_opened
lea rcx, [rbp + 0x90]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14001ba0d
lea r8, str.Failed_to_run_bcdedit___IsMachineAllowingSelfSignedDrivers._Please_make_sure_program_is_run_as_administrator_n
mov edx, 2
call fcn.1400122f0
lea rdx, [0x140032750]
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rdi, rax
test rax, rax
je 0x14001ba73
nop dword [rax]
lea rdx, str.testsigning
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14001ba5c
lea rdx, [0x140032764]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
cmovne ebx, r15d
lea rdx, [0x140032750]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rdi, rax
test rax, rax
jne 0x14001ba30
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14001bab1
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001baac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001baac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f0ac
movdqa xmm0, xmmword [0x140033750]
movdqu xmmword [rbp + 0x38], xmm0
mov byte [rbp + 0x28], 0
mov rax, qword [rbp + 0x60]
cmp rax, 0xf
jbe 0x14001bb01
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14001baf8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001baf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14001f0ac
nop
cmp r13, 0xf
jbe 0x14001bb3b
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001bb33
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bb33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14001f0ac
mov eax, ebx
jmp 0x14001b991
call fcn.1400104c0
nop
call fcn.14001f430
int3