Function at 0x140031c60
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400b4030]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, rcx
lea rcx, [rsp + 0x60]
call fcn.14004b230
nop
mov qword [rbp - 0x58], 0xf
xor r15d, r15d
mov qword [rbp - 0x60], r15
mov byte [rbp - 0x70], r15b
lea rcx, [rbp - 0x50]
call fcn.14004b2b0
lea r8, [rbp - 0x70]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400427b0
test eax, eax
je 0x140031d0a
lea rdx, str.Cannot_read_iCLS_Client_installation_directory_from_registry.
lea rcx, [rbp - 0x50]
call fcn.140023490
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.140024650
lea rdx, [0x1400afe00]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov r8d, 0x1e
lea rdx, str.IntelPTTEkRecertification.exe
lea rcx, [rbp - 0x70]
call fcn.140029da0
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023a00
nop
lea r14, [0x1400b5c50]
mov rdi, r14
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rsi, [0x1400b5cd8]
mov rdi, rsi
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [0x1400b5c50], 0x68
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], r15
mov byte [rbp - 0x50], al
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140023a00
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140024a70
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r14
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
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140031eca
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x50], r15d
lea rcx, [rbp - 0x10]
call fcn.140024d70
nop
mov rcx, rax
call fcn.140025590
mov rcx, rax
lea rdx, [0x14009be74]
call fcn.1400253c0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14002d960
mov rcx, rax
mov rdx, rbx
call fcn.14002d5e0
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.14002d960
mov rcx, rax
lea rdx, [0x14009be78]
call fcn.1400253c0
mov rcx, rax
lea rdx, [0x14009be7c]
call fcn.1400253c0
mov rcx, rax
lea rdx, str.TPMProvisioningService::TPMProvisioning::RunPTTEKRecertification
call fcn.1400253c0
mov rcx, rax
lea rdx, [0x14009be78]
call fcn.1400253c0
mov rcx, rax
lea rdx, str.Cannot_run_IntelPTTEKRecertification.exe_process.
call fcn.1400253c0
nop
lea rcx, [rbp - 0x10]
call fcn.140024f60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.TPMProvisioningService::TPMProvisioning::RunPTTEKRecertification
lea rcx, [rbp + 0x70]
call fcn.140023490
nop
mov r8d, edi
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.14002e710
lea rdx, [0x1400afe80]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, vtable.LogItem.0
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r15
mov word [rbp - 8], r15w
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r15
mov word [rbp + 0x18], r15w
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 1
lea rdx, [0x14009be74]
lea rcx, [rbp - 0x10]
call fcn.1400253c0
mov dword [rax + 0x48], r15d
mov rdx, rbx
mov rcx, rax
call fcn.14002d5e0
mov dword [rax + 0x48], 1
lea rdx, [0x14009be78]
mov rcx, rax
call fcn.1400253c0
mov rcx, rax
lea rdx, [0x14009be7c]
call fcn.1400253c0
mov rcx, rax
lea rdx, str.TPMProvisioningService::TPMProvisioning::RunPTTEKRecertification
call fcn.1400253c0
mov rcx, rax
lea rdx, [0x14009be78]
call fcn.1400253c0
mov rcx, rax
lea rdx, str.IntelPTTEKRecertification_has_been_started.
call fcn.1400253c0
nop
lea rcx, [rbp - 0x10]
call fcn.140024f60
mov rcx, rbx
call fcn.1400314e0
nop
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x140031f9f
inc r8
mov rdx, qword [rbp - 0x30]
call fcn.140023b90
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x14003200b
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x140032006
test cl, 0x1f
je 0x140031fd6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140031fe6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140031ff6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140032003
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140055898
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], 0
mov rax, qword [rbp - 0x58]
cmp rax, 0x10
jb 0x140032076
inc rax
mov rcx, qword [rbp - 0x70]
cmp rax, 0x1000
jb 0x140032071
test cl, 0x1f
je 0x140032041
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140032051
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140032061
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003206e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140055898
mov qword [rbp - 0x58], 0xf
mov qword [rbp - 0x60], r15
mov byte [rbp - 0x70], 0
mov eax, 0x80000000
mov rcx, qword [rsp + 0x60]
add rax, rcx
cmp rax, 3
jbe 0x1400320a8
cmp rcx, 0xffffffff80000005
je 0x1400320a8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140055590
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret