Function at 0x14001b410
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.14001c1d0
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 0x14001b4e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreatePipe_failed___Services::IsMachineAllowingSelfSignedDrivers:__d_n
mov edx, 2
call fcn.140016d70
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 0xf
jbe 0x14001b80f
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b80a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9ac
jmp 0x14001b80a
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.1400135b0
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 0x14001b560
movabs r8, 0x7fffffffffffffff
mov rax, r8
mov rcx, qword [rbp + 0x58]
sub rax, rcx
cmp rax, rdi
jb 0x14001b9c2
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 0x14001b62b
mov r15, rdx
or r15, 0xf
cmp r15, r8
jbe 0x14001b5e9
mov r15, r8
movabs rcx, 0x8000000000000000
call fcn.140014010
jmp 0x14001b61d
mov eax, 0x16
cmp r15, rax
cmovb r15, rax
lea rcx, [r15 + 1]
test rcx, rcx
jne 0x14001b608
mov rax, rbx
mov qword [rsp + 0x50], rbx
jmp 0x14001b627
cmp rcx, 0x1000
jb 0x14001b618
call fcn.140014010
jmp 0x14001b61d
call fcn.14001edf8
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 0x14001b6dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateProcess_failed___Services::IsMachineAllowingSelfSignedDrivers:__d_n
mov edx, 2
call fcn.140016d70
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
jmp 0x14001b749
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 0x14001b841
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.ReadFile_failed___Services::IsMachineAllowingSelfSignedDrivers:__d_n
mov edx, 2
call fcn.140016d70
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14001b78b
inc rdx
mov rcx, qword [rbp + 0x28]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14001b786
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b925
call fcn.14001edf0
movdqa xmm0, xmmword [0x1400335f0]
mov byte [rbp + 0x28], 0
movdqu xmmword [rbp + 0x38], xmm0
mov rax, qword [rbp + 0x60]
cmp rax, 0xf
jbe 0x14001b7d8
lea rdx, [rax + 1]
cmp rdx, 0x1000
mov rax, r14
jb 0x14001b7cf
mov r14, qword [r14 - 8]
sub rax, r14
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b971
mov rcx, r14
call fcn.14001edf0
nop
cmp r13, 0xf
jbe 0x14001b80f
lea rdx, [r13 + 1]
cmp rdx, 0x1000
mov rax, rsi
jb 0x14001b807
mov rsi, qword [rsi - 8]
sub rax, rsi
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b9ac
mov rcx, rsi
call fcn.14001edf0
xor eax, eax
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.14001edd0
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 0x14001b9c8
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 0x14001b88d
lea r8, str.Failed_to_run_bcdedit___IsMachineAllowingSelfSignedDrivers._Please_make_sure_program_is_run_as_administrator_n
mov edx, 2
call fcn.140016ae0
lea rdx, [0x140032670]
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 0x14001b8f3
nop dword [rax]
lea rdx, str.testsigning
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14001b8dc
lea rdx, [0x140032684]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
cmovne ebx, r15d
lea rdx, [0x140032670]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rdi, rax
test rax, rax
jne 0x14001b8b0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14001b931
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b92c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b92c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001edf0
movdqa xmm0, xmmword [0x1400335f0]
movdqu xmmword [rbp + 0x38], xmm0
mov byte [rbp + 0x28], 0
mov rax, qword [rbp + 0x60]
cmp rax, 0xf
jbe 0x14001b981
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14001b978
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14001edf0
nop
cmp r13, 0xf
jbe 0x14001b9bb
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001b9b3
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b9b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14001edf0
mov eax, ebx
jmp 0x14001b811
call fcn.1400104c0
nop
call fcn.14001f1b0
int3