Function at 0x1401777f0
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 [0x14042fde0], eax
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
jg 0x140177d8e
lea r8, [rbp - 0x79]
xor edx, edx
lea rcx, [0x1403b8d00]
call fcn.1400f02fc
mov rdi, qword [rbp - 0x79]
mov r15d, eax
test eax, eax
jns 0x140177899
mov ecx, eax
call fcn.1400790f8
jmp 0x140177c74
mov rax, qword [rdi]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403af620]
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, rdi
call r14
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x14017788d
mov rax, qword [rdi]
mov r14, qword [rax + 0x30]
mov rcx, r14
call qword [0x1403af620]
lea rdx, [rbp - 0x19]
mov rcx, rdi
call r14
cmp eax, 0x80070103
je 0x140177c64
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x14017788d
test rbx, rbx
je 0x140177917
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.140079118
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.140178c80
mov r15d, eax
test eax, eax
js 0x140177c56
mov rdx, qword [rbp - 0x19]
mov dword [rbp - 0x79], r14d
test rdx, rdx
je 0x140177b42
mov r12, rdx
lea rbx, [0x14042fdf0]
mov r13d, r14d
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140177973
inc r14d
add rbx, 0x18
cmp r14d, 0xa
jae 0x14017796e
mov rdx, qword [rbp - 0x19]
jmp 0x14017794e
xor r14d, r14d
jmp 0x140177989
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 0x1401779e5
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1401779cc
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.140079118
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.140178b80
mov r15d, eax
test eax, eax
js 0x140177c56
mov rbx, qword [rsp + 0x40]
test r13d, r13d
je 0x140177afc
mov r14, qword [rbp - 0x69]
test r14, r14
je 0x140177a1d
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.140079118
and qword [rbp - 0x69], 0
mov r14, qword [rbp - 0x61]
test r14, r14
je 0x140177a49
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.140079118
xor r14d, r14d
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x69]
mov rcx, r12
call fcn.140078fc0
mov r15d, eax
test eax, eax
js 0x140177c56
test rbx, rbx
jne 0x140177a6e
mov r15d, r14d
mov qword [rbp - 0x61], r14
jmp 0x140177a99
mov r14d, dword [rbx - 4]
xor ecx, ecx
call fcn.140079118
lea r8, [rbp - 0x61]
mov edx, r14d
mov rcx, rbx
call fcn.140078e54
xor r14d, r14d
mov r15d, eax
test eax, eax
jns 0x140177a99
mov ecx, eax
call fcn.1400790f8
mov ecx, r15d
call fcn.140079118
test r15d, r15d
js 0x140177c38
mov ecx, dword [rbp - 0x4d]
test ecx, ecx
je 0x140177acb
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.1400bf9cc
jmp 0x140177ace
mov eax, r14d
lea r8, [rbp - 0x69]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.14015f7e0
mov r15d, eax
test eax, eax
jns 0x140177aeb
mov ecx, eax
call fcn.1400790f8
mov ecx, r15d
call fcn.140079118
test r15d, r15d
js 0x140177c38
test rsi, rsi
je 0x140177b21
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.140079118
mov qword [rbp - 0x59], r14
lea rdx, [rbp - 0x59]
mov rcx, r12
call fcn.140175264
mov r15d, eax
test eax, eax
js 0x140177c40
mov rsi, qword [rbp - 0x59]
mov qword [rbp - 0x21], rsi
jmp 0x140177b59
mov rbx, qword [rsp + 0x40]
lea rax, [0x1403ca264]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x79], 0x22
mov eax, dword [rbp - 0x11]
mov r13d, r14d
cmp eax, 0x80000002
je 0x140177baa
cmp eax, 0x80000004
je 0x140177b9b
test eax, eax
je 0x140177b92
cmp eax, 1
je 0x140177b89
cmp eax, 2
je 0x140177baa
cmp eax, 4
je 0x140177b9b
lea r12, str.undef
jmp 0x140177bb1
lea r12, [0x1403ca244]
jmp 0x140177bb1
lea r12, [0x1403ca254]
jmp 0x140177bb1
lea r12, [0x1403ca224]
mov r13d, 1
jmp 0x140177bb1
lea r12, [0x1403ca234]
mov r14, qword [rbp - 0x71]
test r14, r14
je 0x140177bd5
mov rax, qword [r14]
mov r15, qword [rax + 0x10]
mov rcx, r15
call qword [0x1403af620]
mov rcx, r14
call r15
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.140173d6c
mov r15d, eax
test eax, eax
js 0x140177c4d
test r13d, r13d
je 0x1401778c2
mov r9d, dword [rbp - 1]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov rdx, qword [rbp - 0x71]
cmove r8, qword [0x14042f668]
mov rcx, qword [r14 + 0x18]
call fcn.1401783b8
jmp 0x1401778b8
mov ecx, r15d
jmp 0x14017788f
mov ecx, eax
call fcn.1400790f8
mov rsi, qword [rbp - 0x59]
jmp 0x140177c74
mov ecx, eax
call fcn.1400790f8
jmp 0x140177c71
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rsp + 0x40]
jmp 0x140177c74
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x51]
call fcn.14015d830
xor r14d, r14d
mov ecx, r15d
call fcn.140079118
mov r12d, 3
mov qword [rbp - 0x31], r14
lea rax, [0x140027478]
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, [0x140021638]
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 0x140177d06
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.140079118
lea rax, [0x14001a7b8]
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 0x140177d56
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.140079118
test rdi, rdi
je 0x140177d70
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403af620]
mov rcx, rdi
call rbx
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, [0x14042fde0]
call fcn.140368b2c
cmp dword [0x14042fde0], 0xffffffff
jne 0x140177870
mov ecx, 0x41
mov dword [0x14042fe00], edi
lea rax, str.SppPkeyBindingProductKey
mov dword [0x14042fe04], ecx
mov qword [0x14042fdf0], rax
lea rax, [0x1403ca104]
mov qword [0x14042fdf8], rax
xor eax, eax
mov qword [0x14042fe18], rax
lea edx, [rcx - 1]
lea rax, str.pid2
mov dword [0x14042fe1c], ecx
mov qword [0x14042fe10], rax
xor eax, eax
mov qword [0x14042fe30], rax
lea rax, str.SppPkeyChannelId
mov qword [0x14042fe20], rax
lea rax, [0x1403ca0bc]
mov qword [0x14042fe28], rax
xor eax, eax
mov qword [0x14042fe48], rax
lea rax, str.SppPkeyBindingEditionId
mov qword [0x14042fe38], rax
lea rax, [0x1403ca0a4]
mov qword [0x14042fe40], rax
xor eax, eax
mov qword [0x14042fe60], rax
lea rax, str.SppPkeyBindingPid3
mov qword [0x14042fe50], rax
lea rax, str.pid3
mov qword [0x14042fe58], rax
xor eax, eax
mov qword [0x14042fe78], rax
lea rax, str.SppPkeyBindingPid4
mov qword [0x14042fe68], rax
lea rax, str.pid4
mov qword [0x14042fe70], rax
xor eax, eax
mov qword [0x14042fe90], rax
lea rax, str.SppPkeyBindingMPC
mov qword [0x14042fe80], rax
lea rax, [0x1403ca094]
mov qword [0x14042fe88], rax
xor eax, eax
mov qword [0x14042fea8], rax
lea rax, str.SppPkeyUniqueIdToken
mov qword [0x14042fe98], rax
lea rax, [0x1403ca084]
mov qword [0x14042fea0], rax
xor eax, eax
mov qword [0x14042fec0], rax
lea rax, str.SppPkeyPhoneActivationData
mov qword [0x14042feb0], rax
lea rax, [0x1403ca06c]
mov qword [0x14042feb8], rax
xor eax, eax
mov qword [0x14042fed8], rax
lea rax, str.SppPkeyBindingMiscData
mov qword [0x14042fec8], rax
lea rax, [0x1403ca054]
mov dword [0x14042fe34], ecx
mov dword [0x14042fe4c], ecx
lea rcx, [0x14042fde0]
mov qword [0x14042fed0], rax
mov qword [0x14042fe08], r15
mov dword [0x14042fe18], edi
mov dword [0x14042fe30], edi
mov dword [0x14042fe48], edi
mov dword [0x14042fe60], r14d
mov dword [0x14042fe64], edx
mov dword [0x14042fe78], r14d
mov dword [0x14042fe7c], edx
mov dword [0x14042fe90], r14d
mov dword [0x14042fe94], edx
mov dword [0x14042fea8], r14d
mov dword [0x14042feac], edx
mov dword [0x14042fec0], r14d
mov dword [0x14042fec4], edx
mov dword [0x14042fed8], r14d
mov dword [0x14042fedc], edx
call fcn.140368abc
jmp 0x140177870