Function at 0x1401883b8
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 r14, str.SppPkeyBindingPid2
and qword [rsp + 0x40], 0
xor ebx, ebx
and dword [rbp - 0x49], ebx
xor esi, esi
and qword [rbp - 0x69], rsi
mov r13, rdx
mov rcx, qword [rax]
mov r12d, r8d
and dword [rbp - 0x45], ebx
and qword [rbp - 0x41], rbx
lea edi, [rsi + 1]
and qword [rbp - 0x61], rbx
and qword [rbp - 0x59], rbx
mov edx, 4
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x79], rbx
mov eax, dword [rdx + rcx]
cmp dword [0x140452b40], eax
jg 0x1401889c3
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [0x1403da950]
call fcn.1400fdd38
mov rdi, qword [rsp + 0x40]
mov r15d, eax
test eax, eax
jns 0x140188460
mov ecx, eax
call fcn.140082a8c
jmp 0x1401888a0
mov rax, qword [rdi]
mov r14, qword [rax + 0x18]
mov rax, qword [0x1403cf6d0]
mov rcx, r14
call rax
mov rax, r14
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, rdi
call rax
mov r15d, eax
test eax, eax
js 0x140188454
mov rax, qword [rdi]
mov r14, qword [rax + 0x30]
mov rax, qword [0x1403cf6d0]
mov rcx, r14
call rax
lea rdx, [rbp - 0x19]
mov rcx, rdi
mov rax, r14
call rax
cmp eax, 0x80070103
je 0x140188893
mov r15d, eax
test eax, eax
js 0x140188454
test rbx, rbx
je 0x1401884e2
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.140082b34
and qword [rbp - 0x79], 0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x19]
call fcn.140188eac
mov r15d, eax
test eax, eax
js 0x140188886
and dword [rbp - 0x71], 0
mov rdx, qword [rbp - 0x19]
test rdx, rdx
je 0x140188771
xor r13d, r13d
lea rbx, [0x140452b50]
xor r14d, r14d
mov r12, rdx
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14018853b
inc r14d
add rbx, 0x18
cmp r14d, 0xa
jae 0x14018854e
mov rdx, qword [rbp - 0x19]
jmp 0x14018851b
cmp qword [rbx + 8], r13
mov eax, dword [rbx + 0x14]
cmovne r12, qword [rbx + 8]
mov r13d, dword [rbx + 0x10]
mov dword [rbp - 0x71], eax
mov rdx, qword [rbp - 0x19]
lea rcx, str.SppPkeyBindingPid2
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov rbx, qword [rbp - 0x79]
test eax, eax
jne 0x14018861d
test rbx, rbx
je 0x140188592
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.140082b34
xor ebx, ebx
mov qword [rbp - 0x79], rbx
and qword [rsp + 0x40], 0
cmp dword [rbp - 0x11], 4
jne 0x1401885cc
cmp dword [rbp - 1], 0x30
jne 0x1401885cc
mov rcx, qword [rbp - 9]
lea r8, [rsp + 0x40]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14008262c
mov r15d, eax
test eax, eax
jns 0x1401885df
mov ecx, eax
call fcn.140082a8c
mov r14, qword [rsp + 0x40]
jmp 0x1401885eb
lea rdx, [rsp + 0x40]
lea rcx, str._INVALID_PID2_
call fcn.140082960
jmp 0x1401885b7
mov rbx, qword [rsp + 0x40]
xor r14d, r14d
mov qword [rbp - 0x79], rbx
mov ecx, r15d
call fcn.140082b34
test r14, r14
je 0x140188614
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.140082b34
test r15d, r15d
js 0x140188871
test r13d, r13d
je 0x140188729
mov r14, qword [rbp - 0x61]
test r14, r14
je 0x140188650
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.140082b34
and qword [rbp - 0x61], 0
mov r14, qword [rbp - 0x59]
test r14, r14
je 0x14018867a
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.140082b34
and qword [rbp - 0x59], 0
lea rdx, [rbp - 0x61]
mov rcx, r12
call fcn.140082960
mov r15d, eax
test eax, eax
js 0x140188454
test rbx, rbx
jne 0x14018869f
xor r15d, r15d
and qword [rbp - 0x59], r15
jmp 0x1401886c7
mov r14d, dword [rbx - 4]
xor ecx, ecx
call fcn.140082b34
lea r8, [rbp - 0x59]
mov edx, r14d
mov rcx, rbx
call fcn.140082808
mov r15d, eax
test eax, eax
jns 0x1401886c7
mov ecx, eax
call fcn.140082a8c
mov ecx, r15d
call fcn.140082b34
test r15d, r15d
js 0x140188871
mov ecx, dword [rbp - 0x45]
test ecx, ecx
je 0x1401886f9
mov rax, qword [rbp - 0x41]
lea rdx, [rbp + 7]
mov dword [rbp + 0xf], ecx
mov rcx, qword [rbp - 0x61]
mov qword [rbp + 7], rax
call fcn.1400ca8d4
jmp 0x1401886fb
xor eax, eax
lea r8, [rbp - 0x61]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.14016e584
mov r15d, eax
test eax, eax
jns 0x140188718
mov ecx, eax
call fcn.140082a8c
mov ecx, r15d
call fcn.140082b34
test r15d, r15d
js 0x140188871
test rsi, rsi
je 0x14018874f
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.140082b34
and qword [rbp - 0x51], 0
lea rdx, [rbp - 0x51]
mov rcx, r12
call fcn.1401849bc
mov r15d, eax
test eax, eax
js 0x140188879
mov rsi, qword [rbp - 0x51]
mov qword [rsp + 0x40], rsi
jmp 0x140188788
mov rbx, qword [rbp - 0x79]
lea rax, [0x1403ec0b4]
mov qword [rsp + 0x40], rax
mov dword [rbp - 0x71], 0x22
mov eax, dword [rbp - 0x11]
xor r13d, r13d
cmp eax, 0x80000002
je 0x1401887d9
cmp eax, 0x80000004
je 0x1401887ca
test eax, eax
je 0x1401887c1
cmp eax, 1
je 0x1401887b8
cmp eax, 2
je 0x1401887d9
cmp eax, 4
je 0x1401887ca
lea r12, str.undef
jmp 0x1401887e0
lea r12, [0x1403ec094]
jmp 0x1401887e0
lea r12, [0x1403ec0a4]
jmp 0x1401887e0
lea r12, [0x1403ec074]
mov r13d, 1
jmp 0x1401887e0
lea r12, [0x1403ec084]
mov r14, qword [rbp - 0x69]
test r14, r14
je 0x140188809
mov rax, qword [r14]
mov r15, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
mov rcx, r15
call rax
mov rax, r15
mov rcx, r14
call rax
and qword [rbp - 0x69], 0
mov r14, qword [rbp + 0x5f]
lea rax, [rbp - 0x69]
mov r9, qword [rsp + 0x40]
mov rcx, r14
mov r8d, dword [rbp - 0x71]
mov rdx, qword [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call fcn.1401836fc
mov r15d, eax
test eax, eax
js 0x140188454
test r13d, r13d
je 0x14018848b
mov r9d, dword [rbp - 1]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdx, qword [rbp - 0x69]
cmove r8, qword [0x1404523b8]
mov rcx, qword [r14 + 0x18]
call fcn.140187418
jmp 0x140188484
mov ecx, r15d
jmp 0x140188456
mov ecx, eax
call fcn.140082a8c
mov rsi, qword [rbp - 0x51]
jmp 0x1401888a0
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rbp - 0x79]
jmp 0x1401888a0
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x49]
call fcn.14016cd30
mov ecx, r15d
call fcn.140082b34
and qword [rbp - 0x29], 0
lea rax, [0x14003155c]
mov r14d, 3
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x39], r14
mov r13d, 0xb9
mov qword [rbp - 0x21], rax
xor r9d, r9d
lea rdx, [rbp - 0x39]
lea r12d, [r14 + 0x1d]
mov ecx, r13d
mov r8d, r12d
call sub.ntdll.dll_NtQuerySystemInformation
and qword [rbp - 0x29], 0
lea rax, [0x14002ee5c]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
lea rax, [rbp - 0x49]
mov qword [rbp - 0x39], r14
xor r9d, r9d
mov qword [rbp - 0x21], rax
mov r8d, r12d
mov ecx, r13d
call sub.ntdll.dll_NtQuerySystemInformation
test rbx, rbx
je 0x140188935
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.140082b34
and qword [rbp - 0x29], 0
lea rax, [0x140028cdc]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
lea rax, [rbp - 0x69]
mov qword [rbp - 0x39], r14
xor r9d, r9d
mov qword [rbp - 0x21], rax
mov r8, r12
mov rcx, r13
call sub.ntdll.dll_NtQuerySystemInformation
test rsi, rsi
je 0x140188984
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.140082b34
test rdi, rdi
je 0x1401889a4
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
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, [0x140452b40]
call fcn.140389a9c
cmp dword [0x140452b40], 0xffffffff
jne 0x140188435
xorps xmm0, xmm0
mov dword [0x140452b60], edi
mov ecx, 0x41
lea rax, str.SppPkeyBindingProductKey
mov qword [0x140452b50], rax
lea rax, [0x1403ebf54]
mov qword [0x140452b58], rax
xor eax, eax
mov qword [0x140452b78], rax
lea rax, str.pid2
lea edx, [rcx - 1]
mov dword [0x140452b64], ecx
movups xmmword [0x140452b68], xmm0
mov qword [0x140452b70], rax
xor eax, eax
mov qword [0x140452b90], rax
lea rax, str.SppPkeyChannelId
movups xmmword [0x140452b80], xmm0
mov qword [0x140452b80], rax
lea rax, [0x1403ebf0c]
mov qword [0x140452b88], rax
xor eax, eax
mov qword [0x140452ba8], rax
lea rax, str.SppPkeyBindingEditionId
movups xmmword [0x140452b98], xmm0
mov qword [0x140452b98], rax
lea rax, [0x1403ebef4]
mov qword [0x140452ba0], rax
xor eax, eax
mov qword [0x140452bc0], rax
lea rax, str.SppPkeyBindingPid3
and dword [0x140452bc0], ebx
movups xmmword [0x140452bb0], xmm0
mov qword [0x140452bb0], rax
lea rax, str.pid3
mov qword [0x140452bb8], rax
xor eax, eax
mov qword [0x140452bd8], rax
lea rax, str.SppPkeyBindingPid4
and dword [0x140452bd8], ebx
movups xmmword [0x140452bc8], xmm0
mov qword [0x140452bc8], rax
lea rax, str.pid4
mov qword [0x140452bd0], rax
xor eax, eax
mov qword [0x140452bf0], rax
lea rax, str.SppPkeyBindingMPC
and dword [0x140452bf0], ebx
movups xmmword [0x140452be0], xmm0
mov qword [0x140452be0], rax
lea rax, [0x1403ebee4]
mov qword [0x140452be8], rax
xor eax, eax
mov qword [0x140452c08], rax
lea rax, str.SppPkeyUniqueIdToken
and dword [0x140452c08], ebx
movups xmmword [0x140452bf8], xmm0
mov qword [0x140452bf8], rax
lea rax, [0x1403ebed4]
mov qword [0x140452c00], rax
xor eax, eax
mov qword [0x140452c20], rax
lea rax, str.SppPkeyPhoneActivationData
and dword [0x140452c20], ebx
movups xmmword [0x140452c10], xmm0
mov qword [0x140452c10], rax
lea rax, [0x1403ebebc]
mov qword [0x140452c18], rax
xor eax, eax
mov qword [0x140452b68], r14
mov dword [0x140452b78], edi
mov dword [0x140452b7c], ecx
mov dword [0x140452b90], edi
mov dword [0x140452b94], ecx
mov dword [0x140452ba8], edi
mov dword [0x140452bac], ecx
mov dword [0x140452bc4], edx
mov dword [0x140452bdc], edx
mov dword [0x140452bf4], edx
mov dword [0x140452c0c], edx
mov dword [0x140452c24], edx
mov qword [0x140452c38], rax
lea rcx, [0x140452b40]
and dword [0x140452c38], ebx
lea rax, str.SppPkeyBindingMiscData
movups xmmword [0x140452c28], xmm0
mov qword [0x140452c28], rax
lea rax, [0x1403ebea4]
mov qword [0x140452c30], rax
mov dword [0x140452c3c], edx
call fcn.140389a2c
jmp 0x140188435