Function at 0x14017c1a4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xe0
mov rax, qword gs:[0x58]
lea r15, str.SppPkeyBindingPid2
xor r14d, r14d
mov r13, rdx
mov edx, 4
mov ebx, r14d
mov r12d, r8d
mov qword [rbp - 0x79], r14
mov rcx, qword [rax]
mov esi, r14d
mov qword [rbp - 0x59], r14
lea edi, [r14 + 1]
mov qword [rbp - 0x71], r14
mov qword [rsp + 0x40], rbx
mov eax, dword [rdx + rcx]
cmp dword [0x140440810], eax
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
jg 0x14017c758
lea r8, [rbp - 0x79]
xor edx, edx
lea rcx, [0x1403cad70]
call fcn.1400f4880
mov rdi, qword [rbp - 0x79]
mov r15d, eax
test eax, eax
jns 0x14017c24d
mov ecx, eax
call fcn.140079c40
jmp 0x14017c637
mov rax, qword [rdi]
mov r14, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, rdi
call rax
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x14017c241
mov rax, qword [rdi]
mov r14, qword [rax + 0x30]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
lea rdx, [rbp - 0x19]
mov rcx, rdi
mov rax, r14
call rax
cmp eax, 0x80070103
je 0x14017c627
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x14017c241
test rbx, rbx
je 0x14017c2d5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.14017d7bc
mov r15d, eax
test eax, eax
js 0x14017c619
mov rdx, qword [rbp - 0x19]
mov dword [rbp - 0x79], r14d
test rdx, rdx
je 0x14017c500
mov r12, rdx
lea rbx, [0x140440820]
mov r13d, r14d
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14017c331
inc r14d
add rbx, 0x18
cmp r14d, 0xa
jae 0x14017c32c
mov rdx, qword [rbp - 0x19]
jmp 0x14017c30c
xor r14d, r14d
jmp 0x14017c347
mov eax, dword [rbx + 0x14]
xor r14d, r14d
cmp qword [rbx + 8], r14
mov r13d, dword [rbx + 0x10]
cmovne r12, qword [rbx + 8]
mov dword [rbp - 0x79], eax
mov rdx, qword [rbp - 0x19]
lea rcx, str.SppPkeyBindingPid2
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14017c3a3
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14017c38a
lea rbx, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.14017d6bc
mov r15d, eax
test eax, eax
js 0x14017c619
mov rbx, qword [rsp + 0x40]
test r13d, r13d
je 0x14017c4ba
mov r14, qword [rbp - 0x69]
test r14, r14
je 0x14017c3db
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
and qword [rbp - 0x69], 0
mov r14, qword [rbp - 0x61]
test r14, r14
je 0x14017c407
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
xor r14d, r14d
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x69]
mov rcx, r12
call fcn.140079b08
mov r15d, eax
test eax, eax
js 0x14017c619
test rbx, rbx
jne 0x14017c42c
mov r15d, r14d
mov qword [rbp - 0x61], r14
jmp 0x14017c457
mov r14d, dword [rbx - 4]
xor ecx, ecx
call fcn.140079c60
lea r8, [rbp - 0x61]
mov edx, r14d
mov rcx, rbx
call fcn.140079998
xor r14d, r14d
mov r15d, eax
test eax, eax
jns 0x14017c457
mov ecx, eax
call fcn.140079c40
mov ecx, r15d
call fcn.140079c60
test r15d, r15d
js 0x14017c5fb
mov ecx, dword [rbp - 0x4d]
test ecx, ecx
je 0x14017c489
mov rax, qword [rbp - 0x49]
lea rdx, [rbp + 7]
mov dword [rbp + 0xf], ecx
mov rcx, qword [rbp - 0x69]
mov qword [rbp + 7], rax
call fcn.1400c16c0
jmp 0x14017c48c
mov eax, r14d
lea r8, [rbp - 0x69]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.1401640ac
mov r15d, eax
test eax, eax
jns 0x14017c4a9
mov ecx, eax
call fcn.140079c40
mov ecx, r15d
call fcn.140079c60
test r15d, r15d
js 0x14017c5fb
test rsi, rsi
je 0x14017c4df
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
mov qword [rbp - 0x59], r14
lea rdx, [rbp - 0x59]
mov rcx, r12
call fcn.140179bd8
mov r15d, eax
test eax, eax
js 0x14017c603
mov rsi, qword [rbp - 0x59]
mov qword [rbp - 0x21], rsi
jmp 0x14017c517
mov rbx, qword [rsp + 0x40]
lea rax, [0x1403dc2d4]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x79], 0x22
mov eax, dword [rbp - 0x11]
mov r13d, r14d
cmp eax, 0x80000002
je 0x14017c568
cmp eax, 0x80000004
je 0x14017c559
test eax, eax
je 0x14017c550
cmp eax, 1
je 0x14017c547
cmp eax, 2
je 0x14017c568
cmp eax, 4
je 0x14017c559
lea r12, str.undef
jmp 0x14017c56f
lea r12, [0x1403dc2b4]
jmp 0x14017c56f
lea r12, [0x1403dc2c4]
jmp 0x14017c56f
lea r12, [0x1403dc294]
mov r13d, 1
jmp 0x14017c56f
lea r12, [0x1403dc2a4]
mov r14, qword [rbp - 0x71]
test r14, r14
je 0x14017c598
mov rax, qword [r14]
mov r15, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, r15
call rax
mov rax, r15
mov rcx, r14
call rax
and qword [rbp - 0x71], 0
mov r14, qword [rbp + 0x5f]
lea rax, [rbp - 0x71]
mov r9, qword [rbp - 0x21]
mov rcx, r14
mov r8d, dword [rbp - 0x79]
mov rdx, qword [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call fcn.1401786a0
mov r15d, eax
test eax, eax
js 0x14017c610
test r13d, r13d
je 0x14017c27b
mov r9d, dword [rbp - 1]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x71]
cmove r8, qword [0x1404400a8]
mov rcx, qword [r14 + 0x18]
call fcn.14017ce00
jmp 0x14017c271
mov ecx, r15d
jmp 0x14017c243
mov ecx, eax
call fcn.140079c40
mov rsi, qword [rbp - 0x59]
jmp 0x14017c637
mov ecx, eax
call fcn.140079c40
jmp 0x14017c634
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rsp + 0x40]
jmp 0x14017c637
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x51]
call fcn.140162098
xor r14d, r14d
mov ecx, r15d
call fcn.140079c60
mov r12d, 3
mov qword [rbp - 0x31], r14
lea rax, [0x1400264d8]
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x69]
xor r9d, r9d
lea r13d, [r12 + 0x1d]
mov qword [rbp - 0x29], rax
mov r8d, r13d
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x140022098]
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x51]
mov qword [rbp - 0x31], r14
xor r9d, r9d
mov qword [rbp - 0x29], rax
mov r8d, r13d
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
test rbx, rbx
je 0x14017c6c9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
lea rax, [0x14001a518]
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x71]
mov qword [rbp - 0x31], r14
xor r9d, r9d
mov qword [rbp - 0x29], rax
mov r8, r13
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
test rsi, rsi
je 0x14017c719
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
test rdi, rdi
je 0x14017c739
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rdi
call rax
mov rbx, qword [rsp + 0x128]
mov eax, r15d
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140440810]
call fcn.14037adcc
cmp dword [0x140440810], 0xffffffff
jne 0x14017c224
xorps xmm0, xmm0
mov dword [0x140440830], edi
mov ecx, 0x41
lea rax, str.SppPkeyBindingProductKey
mov qword [0x140440820], rax
lea rax, [0x1403dc174]
mov qword [0x140440828], rax
xor eax, eax
mov qword [0x140440848], rax
lea rax, str.pid2
lea edx, [rcx - 1]
mov dword [0x140440834], ecx
movups xmmword [0x140440838], xmm0
mov qword [0x140440840], rax
xor eax, eax
mov qword [0x140440860], rax
lea rax, str.SppPkeyChannelId
movups xmmword [0x140440850], xmm0
mov qword [0x140440850], rax
lea rax, [0x1403dc12c]
mov qword [0x140440858], rax
xor eax, eax
mov qword [0x140440878], rax
lea rax, str.SppPkeyBindingEditionId
movups xmmword [0x140440868], xmm0
mov qword [0x140440868], rax
lea rax, [0x1403dc114]
mov qword [0x140440870], rax
xor eax, eax
mov qword [0x140440890], rax
lea rax, str.SppPkeyBindingPid3
movups xmmword [0x140440880], xmm0
mov qword [0x140440880], rax
lea rax, str.pid3
mov qword [0x140440888], rax
xor eax, eax
mov qword [0x1404408a8], rax
lea rax, str.SppPkeyBindingPid4
movups xmmword [0x140440898], xmm0
mov qword [0x140440898], rax
lea rax, str.pid4
mov qword [0x1404408a0], rax
xor eax, eax
mov qword [0x1404408c0], rax
lea rax, str.SppPkeyBindingMPC
movups xmmword [0x1404408b0], xmm0
mov qword [0x1404408b0], rax
lea rax, [0x1403dc104]
mov qword [0x1404408b8], rax
xor eax, eax
mov qword [0x1404408d8], rax
lea rax, str.SppPkeyUniqueIdToken
movups xmmword [0x1404408c8], xmm0
mov qword [0x1404408c8], rax
lea rax, [0x1403dc0f4]
mov qword [0x1404408d0], rax
xor eax, eax
mov qword [0x1404408f0], rax
lea rax, str.SppPkeyPhoneActivationData
movups xmmword [0x1404408e0], xmm0
mov qword [0x1404408e0], rax
lea rax, [0x1403dc0dc]
mov qword [0x1404408e8], rax
xor eax, eax
mov qword [0x140440838], r15
mov dword [0x140440848], edi
mov dword [0x14044084c], ecx
mov dword [0x140440860], edi
mov dword [0x140440864], ecx
mov dword [0x140440878], edi
mov dword [0x14044087c], ecx
mov dword [0x140440890], r14d
mov dword [0x140440894], edx
mov dword [0x1404408a8], r14d
mov dword [0x1404408ac], edx
mov dword [0x1404408c0], r14d
mov dword [0x1404408c4], edx
mov dword [0x1404408d8], r14d
mov dword [0x1404408dc], edx
mov dword [0x1404408f0], r14d
mov dword [0x1404408f4], edx
mov qword [0x140440908], rax
lea rcx, [0x140440810]
movups xmmword [0x1404408f8], xmm0
lea rax, str.SppPkeyBindingMiscData
mov dword [0x140440908], r14d
mov qword [0x1404408f8], rax
lea rax, [0x1403dc0c4]
mov qword [0x140440900], rax
mov dword [0x14044090c], edx
call fcn.14037ad5c
jmp 0x14017c224