Function at 0x140005570
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x270]
sub rsp, 0x370
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0xc], xmm1
movups xmmword [rbp + 4], xmm1
movups xmmword [rbp + 0x14], xmm1
movups xmmword [rbp + 0x24], xmm1
movups xmmword [rbp + 0x34], xmm1
movups xmmword [rbp + 0x44], xmm1
mov dword [rbp + 0x54], eax
mov dword [rbp - 0x10], 0x68
lea rcx, [0x1400087e0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140005ba1
lea rdx, str.NtConvertBetweenAuxiliaryCounterAndPerformanceCounter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000c290], rax
test rax, rax
je 0x140005ba1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x208
lea rdx, [rbp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.1400023e0
nop
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400023e0
nop
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400023e0
nop
lea rcx, [rbp - 0x70]
call fcn.140005be0
xor esi, esi
cmp rax, 0xffffffffffffffff
je 0x14000566b
lea rcx, [rax + 1]
cmp qword [rbp - 0x60], rcx
jb 0x140005bcb
mov qword [rbp - 0x60], rcx
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rax, qword [rbp - 0x70]
mov word [rax + rcx*2], si
mov rdi, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
sub rax, rdi
cmp rax, 8
jb 0x1400056b1
lea rax, [rdi + 8]
mov qword [rbp - 0x60], rax
lea rbx, [rbp - 0x70]
cmp rcx, 7
cmova rbx, qword [rbp - 0x70]
lea rcx, [rbx + rdi*2]
mov r8d, 0x10
lea rdx, str.bbdr.sys
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x10], si
jmp 0x1400056cf
mov qword [rsp + 0x20], 8
lea r9, str.bbdr.sys
mov edx, 8
lea rcx, [rbp - 0x70]
call fcn.140005ec0
lea rcx, [rsp + 0x70]
call fcn.140005be0
cmp rax, 0xffffffffffffffff
je 0x140005705
lea rcx, [rax + 1]
cmp qword [rbp - 0x80], rcx
jb 0x140005bcb
mov qword [rbp - 0x80], rcx
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rax, qword [rsp + 0x70]
mov word [rax + rcx*2], si
mov rdi, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
sub rax, rdi
cmp rax, 0x20
jb 0x14000574d
lea rax, [rdi + 0x20]
mov qword [rbp - 0x80], rax
lea rbx, [rsp + 0x70]
cmp rcx, 7
cmova rbx, qword [rsp + 0x70]
lea rcx, [rbx + rdi*2]
mov r8d, 0x40
lea rdx, str.Out.LastEpoch.Protect.Kernel.sys
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x40], si
jmp 0x14000576c
mov qword [rsp + 0x20], 0x20
lea r9, str.Out.LastEpoch.Protect.Kernel.sys
mov edx, 0x20
lea rcx, [rsp + 0x70]
call fcn.140005ec0
lea rcx, [rsp + 0x50]
call fcn.140005be0
cmp rax, 0xffffffffffffffff
je 0x1400057a5
lea rcx, [rax + 1]
cmp qword [rsp + 0x60], rcx
jb 0x140005bcb
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov word [rax + rcx*2], si
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
sub rax, rdi
cmp rax, 0x10
jb 0x1400057f0
lea rax, [rdi + 0x10]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rcx, 7
cmova rbx, qword [rsp + 0x50]
lea rcx, [rbx + rdi*2]
mov r8d, 0x20
lea rdx, str.EfiDSEFix.exe__d
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x20], si
jmp 0x14000580f
mov qword [rsp + 0x20], 0x10
lea r9, str.EfiDSEFix.exe__d
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.140005ec0
mov dword [rbp + 0x2a0], esi
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005874
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_create_esifix__08X_n
jmp 0x140005a76
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x2a0]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x14000c29c], eax
jle 0x140005901
lea rcx, [0x14000c29c]
call fcn.140006448
cmp dword [0x14000c29c], 0xffffffff
jne 0x140005901
mov qword [0x14000c2a0], rsi
mov dword [0x14000c2a8], 0xc0000225
lea rcx, [0x140007490]
call fcn.140006724
lea rcx, [0x14000c29c]
call fcn.1400063dc
lea rdx, [rbp - 0x70]
lea rcx, [0x14000c2a0]
call fcn.1400014a0
test eax, eax
jns 0x140005923
mov edx, eax
lea rcx, str.EnsureLoaded_failed__08X_n
jmp 0x140005a76
mov eax, dword [rbx]
cmp dword [0x14000c29c], eax
jle 0x14000596b
lea rcx, [0x14000c29c]
call fcn.140006448
cmp dword [0x14000c29c], 0xffffffff
jne 0x14000596b
mov qword [0x14000c2a0], rsi
mov dword [0x14000c2a8], 0xc0000225
lea rcx, [0x140007490]
call fcn.140006724
lea rcx, [0x14000c29c]
call fcn.1400063dc
lea rdx, [rsp + 0x70]
lea rcx, [0x14000c2a0]
call fcn.140001960
test eax, eax
jns 0x140005990
mov edx, eax
lea rcx, str.MMapDriver__08X_n
call fcn.140002b10
jmp 0x14000599c
lea rcx, str.Driver_loaded_successfully_n
call fcn.140002b10
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbx]
cmp dword [0x14000c29c], eax
jle 0x1400059ef
lea rcx, [0x14000c29c]
call fcn.140006448
cmp dword [0x14000c29c], 0xffffffff
jne 0x1400059ef
mov qword [0x14000c2a0], rsi
mov dword [0x14000c2a8], 0xc0000225
lea rcx, [0x140007490]
call fcn.140006724
lea rcx, [0x14000c29c]
call fcn.1400063dc
mov rcx, qword [0x14000c2a0]
test rcx, rcx
je 0x140005a0a
jle 0x140005a03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000c2a0], rsi
lea rdx, str.OutBB
lea rcx, [rbp - 0x38]
call fcn.1400023e0
nop
lea rdx, [rbp - 0x38]
call fcn.140002010
mov ebx, eax
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x140005a69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006744
test ebx, ebx
jns 0x140005a88
mov edx, ebx
lea rcx, str.Unload__08X_n
call fcn.140002b10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov ebx, 1
jmp 0x140005aad
lea rdx, str.explorer.exe
lea rcx, [rbp - 0x38]
call fcn.1400023e0
mov rcx, rax
call fcn.140005120
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, esi
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005af2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005aed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005aed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006744
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005b49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006744
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140005b9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006744
mov eax, ebx
jmp 0x140005bb8
lea rcx, str.Failed_initialize_stuff_n
call fcn.140002b10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov eax, 1
mov rbx, qword [rsp + 0x390]
add rsp, 0x370
pop rdi
pop rsi
pop rbp
ret
call fcn.140005d20
nop
int3