Function at 0x14017452c
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 [0x140422fe0], eax
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
jg 0x140174aca
lea r8, [rbp - 0x79]
xor edx, edx
lea rcx, [0x1403a9d30]
call fcn.1400edcd4
mov rdi, qword [rbp - 0x79]
mov r15d, eax
test eax, eax
jns 0x1401745d5
mov ecx, eax
call fcn.140078308
jmp 0x1401749b0
mov rax, qword [rdi]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403a2250]
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, rdi
call r14
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x1401745c9
mov rax, qword [rdi]
mov r14, qword [rax + 0x30]
mov rcx, r14
call qword [0x1403a2250]
lea rdx, [rbp - 0x19]
mov rcx, rdi
call r14
cmp eax, 0x80070103
je 0x1401749a0
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x1401745c9
test rbx, rbx
je 0x140174653
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.140078324
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.1401759e4
mov r15d, eax
test eax, eax
js 0x140174992
mov rdx, qword [rbp - 0x19]
mov dword [rbp - 0x79], r14d
test rdx, rdx
je 0x14017487e
mov r12, rdx
lea rbx, [0x140422ff0]
mov r13d, r14d
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1401746af
inc r14d
add rbx, 0x18
cmp r14d, 0xa
jae 0x1401746aa
mov rdx, qword [rbp - 0x19]
jmp 0x14017468a
xor r14d, r14d
jmp 0x1401746c5
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 0x140174721
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140174708
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.140078324
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.1401758ec
mov r15d, eax
test eax, eax
js 0x140174992
mov rbx, qword [rsp + 0x40]
test r13d, r13d
je 0x140174838
mov r14, qword [rbp - 0x69]
test r14, r14
je 0x140174759
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.140078324
and qword [rbp - 0x69], 0
mov r14, qword [rbp - 0x61]
test r14, r14
je 0x140174785
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.140078324
xor r14d, r14d
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x69]
mov rcx, r12
call fcn.1400781e4
mov r15d, eax
test eax, eax
js 0x140174992
test rbx, rbx
jne 0x1401747aa
mov r15d, r14d
mov qword [rbp - 0x61], r14
jmp 0x1401747d5
mov r14d, dword [rbx - 4]
xor ecx, ecx
call fcn.140078324
lea r8, [rbp - 0x61]
mov edx, r14d
mov rcx, rbx
call fcn.1400780c4
xor r14d, r14d
mov r15d, eax
test eax, eax
jns 0x1401747d5
mov ecx, eax
call fcn.140078308
mov ecx, r15d
call fcn.140078324
test r15d, r15d
js 0x140174974
mov ecx, dword [rbp - 0x4d]
test ecx, ecx
je 0x140174807
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.1400bd098
jmp 0x14017480a
mov eax, r14d
lea r8, [rbp - 0x69]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.14015ce64
mov r15d, eax
test eax, eax
jns 0x140174827
mov ecx, eax
call fcn.140078308
mov ecx, r15d
call fcn.140078324
test r15d, r15d
js 0x140174974
test rsi, rsi
je 0x14017485d
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.140078324
mov qword [rbp - 0x59], r14
lea rdx, [rbp - 0x59]
mov rcx, r12
call fcn.140171ffc
mov r15d, eax
test eax, eax
js 0x14017497c
mov rsi, qword [rbp - 0x59]
mov qword [rbp - 0x21], rsi
jmp 0x140174895
mov rbx, qword [rsp + 0x40]
lea rax, [0x1403bce14]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x79], 0x22
mov eax, dword [rbp - 0x11]
mov r13d, r14d
cmp eax, 0x80000002
je 0x1401748e6
cmp eax, 0x80000004
je 0x1401748d7
test eax, eax
je 0x1401748ce
cmp eax, 1
je 0x1401748c5
cmp eax, 2
je 0x1401748e6
cmp eax, 4
je 0x1401748d7
lea r12, str.undef
jmp 0x1401748ed
lea r12, [0x1403bcdf4]
jmp 0x1401748ed
lea r12, [0x1403bce04]
jmp 0x1401748ed
lea r12, [0x1403bcdd4]
mov r13d, 1
jmp 0x1401748ed
lea r12, [0x1403bcde4]
mov r14, qword [rbp - 0x71]
test r14, r14
je 0x140174911
mov rax, qword [r14]
mov r15, qword [rax + 0x10]
mov rcx, r15
call qword [0x1403a2250]
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.140170d64
mov r15d, eax
test eax, eax
js 0x140174989
test r13d, r13d
je 0x1401745fe
mov r9d, dword [rbp - 1]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov rdx, qword [rbp - 0x71]
cmove r8, qword [0x140422868]
mov rcx, qword [r14 + 0x18]
call fcn.1401750e8
jmp 0x1401745f4
mov ecx, r15d
jmp 0x1401745cb
mov ecx, eax
call fcn.140078308
mov rsi, qword [rbp - 0x59]
jmp 0x1401749b0
mov ecx, eax
call fcn.140078308
jmp 0x1401749ad
mov ecx, eax
call fcn.140078308
mov rbx, qword [rsp + 0x40]
jmp 0x1401749b0
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x51]
call fcn.14015b398
xor r14d, r14d
mov ecx, r15d
call fcn.140078324
mov r12d, 3
mov qword [rbp - 0x31], r14
lea rax, [0x14003f3e0]
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, [0x14003a920]
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 0x140174a42
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.140078324
lea rax, [0x140033aa0]
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 0x140174a92
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.140078324
test rdi, rdi
je 0x140174aac
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403a2250]
mov rcx, rdi
call rbx
mov eax, r15d
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140422fe0]
call fcn.14035aa48
cmp dword [0x140422fe0], 0xffffffff
jne 0x1401745ac
xor eax, eax
mov qword [0x140423008], r15
mov qword [0x140423000], rax
mov ecx, 0x41
lea rax, str.SppPkeyBindingProductKey
mov dword [0x140423000], edi
mov qword [0x140422ff0], rax
lea rax, [0x1403bccb4]
mov qword [0x140422ff8], rax
xor eax, eax
mov qword [0x140423018], rax
lea edx, [rcx - 1]
lea rax, str.pid2
mov dword [0x140423004], ecx
mov qword [0x140423010], rax
xor eax, eax
mov qword [0x140423030], rax
lea rax, str.SppPkeyChannelId
mov qword [0x140423020], rax
lea rax, [0x1403bcc7c]
mov qword [0x140423028], rax
xor eax, eax
mov qword [0x140423048], rax
lea rax, str.SppPkeyBindingEditionId
mov qword [0x140423038], rax
lea rax, [0x1403bcc64]
mov qword [0x140423040], rax
xor eax, eax
mov qword [0x140423060], rax
lea rax, str.SppPkeyBindingPid3
mov qword [0x140423050], rax
lea rax, str.pid3
mov qword [0x140423058], rax
xor eax, eax
mov qword [0x140423078], rax
lea rax, str.SppPkeyBindingPid4
mov qword [0x140423068], rax
lea rax, str.pid4
mov qword [0x140423070], rax
xor eax, eax
mov qword [0x140423090], rax
lea rax, str.SppPkeyBindingMPC
mov qword [0x140423080], rax
lea rax, [0x1403bcc54]
mov qword [0x140423088], rax
xor eax, eax
mov qword [0x1404230a8], rax
lea rax, str.SppPkeyUniqueIdToken
mov qword [0x140423098], rax
lea rax, [0x1403bcc44]
mov qword [0x1404230a0], rax
xor eax, eax
mov qword [0x1404230c0], rax
lea rax, str.SppPkeyPhoneActivationData
mov qword [0x1404230b0], rax
lea rax, [0x1403bcc2c]
mov qword [0x1404230b8], rax
xor eax, eax
mov qword [0x1404230d8], rax
lea rax, str.SppPkeyBindingMiscData
mov qword [0x1404230c8], rax
lea rax, [0x1403bcc14]
mov qword [0x1404230d0], rax
mov dword [0x140423018], edi
mov dword [0x14042301c], ecx
mov dword [0x140423030], edi
mov dword [0x140423034], ecx
mov dword [0x140423048], edi
mov dword [0x14042304c], ecx
mov dword [0x140423060], r14d
mov dword [0x140423064], edx
mov dword [0x140423078], r14d
mov dword [0x14042307c], edx
mov dword [0x140423090], r14d
mov dword [0x140423094], edx
mov dword [0x1404230a8], r14d
mov dword [0x1404230ac], edx
mov dword [0x1404230c0], r14d
mov dword [0x1404230c4], edx
mov dword [0x1404230d8], r14d
mov dword [0x1404230dc], edx
lea rcx, [0x140422fe0]
call fcn.14035a9e8
jmp 0x1401745ac