Function at 0x1402ce808
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea ecx, [r12 + 0x50]
call fcn.140356b9c
mov rsi, rax
mov qword [rsp + 0x38], rax
lea eax, [r12 + 1]
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], eax
lea rax, vtable.std::_Ref_count_obj_class_sense::machineStateCollection::CodeIntegrityState_.0
mov qword [rsi], rax
lea rdi, [rsi + 0x10]
mov qword [rbp - 0x69], rdi
mov dword [rdi], r12d
lea rcx, [rdi + 8]
call fcn.1401962c0
nop
lea rbx, [rdi + 0x10]
mov qword [rbp - 0x79], rbx
mov dword [rbx], r12d
lea rcx, [rbx + 8]
call fcn.1401962c0
mov dword [rdi + 0x24], r12d
mov dword [rdi + 0x2c], r12d
mov dword [rdi + 0x34], r12d
mov dword [rdi + 0x3c], r12d
or eax, 0xffffffff
mov dword [rdi], eax
mov dword [rbx], eax
mov dword [rdi + 0x20], eax
mov dword [rdi + 0x28], eax
mov dword [rdi + 0x30], eax
mov dword [rdi + 0x38], eax
mov qword [r15], rdi
mov qword [r15 + 8], rsi
mov dword [rsp + 0x48], 3
mov rdx, r15
mov rcx, r14
call fcn.1402ce268
add r14, 8
mov rdx, r14
lea rcx, [0x140544ff0]
call fcn.1402dab10
lea edi, [r12 + 4]
mov esi, 0x10000000
test al, al
je 0x1402ce998
mov qword [rsp + 0x40], r12
lea r8d, [r12 + 8]
mov dword [rsp + 0x40], r8d
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 0x63]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x1402ce98a
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402ce97c
lea rax, str.Code_integrity_state_collection___failed_to_get_code_integrity_information
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], reloc.OLEAUT32.dll_DllRegisterServer
lea rax, [rsp + 0x38]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdi
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048a629]
call fcn.140001208
mov ecx, dword [rsp + 0x38]
or ecx, esi
mov rax, qword [r15]
mov dword [rax + 0x28], ecx
jmp 0x1402ce998
mov ecx, dword [rsp + 0x44]
mov rax, qword [r15]
mov dword [rax + 0x28], r12d
mov dword [rax + 0x2c], ecx
mov rdx, r14
lea rcx, [0x140545010]
call fcn.1402dab10
test al, al
je 0x1402cea4b
mov ebx, Compress
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x59]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor r9d, r9d
mov r8d, ebx
lea rdx, [rbp - 0x59]
mov ebx, 0xa4
mov ecx, ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x1402cea3e
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402cea30
lea rax, str.Code_integrity_state_collection___failed_to_get_code_integrity_policy_information
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rbx
lea rax, [rsp + 0x38]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rdi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048a629]
call fcn.140001208
mov ecx, dword [rsp + 0x38]
or ecx, esi
mov rax, qword [r15]
mov dword [rax + 0x30], ecx
jmp 0x1402cea4b
mov ecx, dword [rbp - 0x59]
mov rax, qword [r15]
mov dword [rax + 0x30], r12d
mov dword [rax + 0x34], ecx
mov rdx, r14
lea rcx, [0x140545030]
call fcn.1402dab10
test al, al
je 0x1402cea9f
mov qword [rsp + 0x20], 0xffffffff80000002
lea r9, [rsp + 0x30]
lea r8, [0x140544f50]
or edx, 0xffffffff
lea rcx, [0x140544f70]
call fcn.14006452c
cmp byte [rsp + 0x30], r12b
je 0x1402cea95
mov rax, qword [r15]
mov dword [rax + 0x38], 0x80004005
jmp 0x1402cea9f
mov rcx, qword [r15]
mov dword [rcx + 0x38], r12d
mov dword [rcx + 0x3c], eax
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret