Function at 0x140056c2c
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0xc8]
xorps xmm1, xmm1
mov r13, qword [rbp + 0xc0]
mov rbx, rcx
xor ecx, ecx
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
mov qword [rbp - 0x60], rcx
mov r15, r8
mov dword [rbp - 0x80], ecx
mov r12, rdx
mov qword [rsp + 0x68], rcx
mov edi, ecx
mov qword [rbp + 0x30], rcx
mov esi, ecx
mov dword [rsp + 0x58], ecx
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], rcx
mov qword [rbp - 0x68], rcx
movdqu xmmword [rbp + 8], xmm0
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
test r9, r9
jne 0x140056cce
mov ecx, 0x80070057
mov r14d, ecx
jmp 0x1400576ee
test r13, r13
je 0x140056cc1
test rax, rax
je 0x140056cc1
mov r14, qword [0x14043f520]
mov qword [rbp - 8], r14
lea rax, [r14 + 8]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140056d04
mov edx, 1
mov rcx, rax
call fcn.140072570
mov dword [rbp - 0x80], 1
mov rdx, r15
lea rcx, str.TimeBasedExtendedGrace
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140056f2f
cmp qword [rbx + 0x10], rsi
jne 0x140056d89
lea r9, [rsp + 0x40]
mov rdx, r12
lea r8, str.applicationId
call fcn.1400d4cac
mov r14d, eax
test eax, eax
js 0x1400576ec
mov r15, qword [rsp + 0x40]
lea rdx, [rbp + 0x30]
mov rcx, r15
call fcn.140052224
mov r14d, eax
test eax, eax
jns 0x140056d65
mov ecx, eax
call fcn.140079c40
jmp 0x1400576f8
mov rcx, qword [rbp - 8]
lea r8, [rbp + 0x30]
mov r9, r12
mov dword [rsp + 0x20], 1
mov rdx, rbx
call fcn.1400da058
mov r14d, eax
test eax, eax
jns 0x140056d8e
jmp 0x140056d59
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140056da2
mov r14d, 0xc004f002
mov ecx, r14d
jmp 0x140056d5b
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14005216c
mov r14d, eax
test eax, eax
js 0x140056d59
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400661b4
test al, al
jne 0x140056dd4
mov r14d, 0xc004f012
jmp 0x140056d9d
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x68]
movsxd rax, dword [rsp + 0x40]
add rax, rax
mov rcx, qword [rcx + rax*8 + 8]
call fcn.140076ce8
mov rsi, qword [rbp - 0x68]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x58]
lea rdx, str.TimeBasedConvertedToPerpetual
mov rcx, rsi
call rax
mov r12d, 0x80070002
mov r14d, eax
cmp eax, r12d
jne 0x140056f1c
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x58]
lea rdx, str.TimeBasedExtendedGrace
mov rcx, rsi
call rax
lea rdx, [0x14043c12c]
mov r14d, eax
lea rcx, [0x140416c3c]
call fcn.1400ed8ec
cmp r14d, r12d
je 0x140056dcc
test r14d, r14d
js 0x140056d9d
cmp dword [rbp - 0x50], 2
je 0x140056e89
mov r14d, 0xc004f01e
jmp 0x140056d9d
mov r12d, 4
mov edx, r12d
mov dword [rsp + 0x58], r12d
lea ecx, [r12 + 0x3c]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov rbx, rax
test rcx, rcx
je 0x140056eb5
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140056f11
mov rcx, qword [rbp - 0x48]
mov rdx, rbx
mov qword [rsp + 0x68], rbx
call fcn.140076e24
mov r14d, eax
test eax, eax
jns 0x140056eea
lea rdx, [0x140439990]
lea rcx, [0x14041c7fc]
call fcn.1400ed5b8
jmp 0x140056d9d
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov dword [rax], r12d
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
mov rax, qword [rsp + 0x68]
and qword [rsp + 0x68], rdi
mov qword [rcx], rax
jmp 0x1400576f8
mov r14d, 0x8007000e
jmp 0x140056d9d
test eax, eax
je 0x140056dcc
jns 0x1400576f8
jmp 0x140056d9d
mov rdx, r15
lea rcx, str.RearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140057045
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400522bc
mov r14d, eax
test eax, eax
js 0x1400576ec
mov r14, qword [0x14043f590]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, rbx
mov rcx, r14
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea rdx, [rsp + 0x48]
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
cmp dword [rsp + 0x48], 1
je 0x140056fd9
mov ecx, 0x8000ffff
jmp 0x140056cc6
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140052224
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.1400d3cdc
jmp 0x1400576e5
mov rdx, r15
lea rcx, str.RemainingRearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140057155
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400522bc
mov r14d, eax
test eax, eax
js 0x1400576ec
mov r14, qword [0x14043f590]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, rbx
mov rcx, r14
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea rdx, [rsp + 0x48]
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
cmp dword [rsp + 0x48], 1
jne 0x140056fcf
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140052224
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.1400d40a4
jmp 0x1400576e5
mov rdx, r15
lea rcx, str.TrustedTime
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140057265
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400522bc
mov r14d, eax
test eax, eax
js 0x1400576ec
mov r14, qword [0x14043f590]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, rbx
mov rcx, r14
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea rdx, [rsp + 0x48]
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
cmp dword [rsp + 0x48], 1
jne 0x140056fcf
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140052224
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.1400d3ab4
jmp 0x1400576e5
mov rdx, r15
lea rcx, str.CustomerPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, [0x1403c8028]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.VLActivationInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.VLRenewalInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.KeyManagementServiceName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.KeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.KeyManagementServiceLookupDomain
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
lea rdx, [0x14043ba98]
lea rcx, [0x14041e690]
call fcn.1400ee2b8
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServiceName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServiceIpAddress
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.ADActivationObjectName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.ADActivationObjectDN
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.ADActivationCsvlkPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.ADActivationCsvlkSkuID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.TokenActivationILID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.TokenActivationILVID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.TokenActivationGrantNumber
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.TokenActivationCertThumbprint
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.TokenActivationAdditionalInfo
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.InheritedActivationId
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.InheritedActivationHostMachineName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.InheritedActivationHostDigitalPid2
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.InheritedActivationActivationTime
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400575d5
mov rdx, r15
lea rcx, str.DigitalEncryptedPID
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14005750a
lea r9, [rbp + 0x30]
mov r8, r15
mov rdx, r12
call fcn.1400d4cac
mov r14d, eax
test eax, eax
jns 0x1400574c3
mov ecx, eax
call fcn.140079c40
mov rdi, qword [rbp + 0x30]
jmp 0x1400576f3
mov rdi, qword [rbp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, 0x7fffffff
call fcn.140076d24
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rax, qword [rsp + 0x78]
mov dword [rax], 1
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
mov rax, rdi
xor edi, edi
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x1400576f3
lea rax, [0x1400028d8]
mov qword [rbp], r12
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x38]
lea rax, [rbp - 0x7c]
mov qword [rbp + 0x28], r14
mov qword [rbp - 0x28], rax
mov ebx, 3
lea rax, [rbp]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x20], rax
mov r12d, 0xb9
lea rax, [rbp - 0x70]
xor r9d, r9d
lea r15d, [rbx + 0x2d]
mov qword [rbp - 0x18], rax
mov r8d, r15d
mov ecx, r12d
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x7c]
test r14d, r14d
jns 0x14005756b
mov ecx, r14d
jmp 0x1400576ee
mov rax, qword [rbp - 0x70]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea rax, [0x14001cc18]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rax
mov r8, r15
lea rax, [rbp - 0x78]
mov rcx, r12
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x78]
test r14d, r14d
js 0x140057563
mov rax, qword [rsp + 0x78]
mov dword [rax], ebx
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
mov rax, qword [rsp + 0x68]
and qword [rsp + 0x68], rsi
jmp 0x1400574fd
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400522bc
mov r14d, eax
test eax, eax
js 0x1400576ec
mov r14, qword [0x14043f590]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, rbx
mov rcx, r14
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea rdx, [rsp + 0x48]
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
cmp dword [rsp + 0x48], 1
jne 0x140056fcf
mov rbx, qword [rsp + 0x50]
lea rdx, [0x14043e288]
lea rcx, [0x14042871c]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
call fcn.1400edc30
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140052224
mov r14d, eax
test eax, eax
js 0x1400576ec
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x30]
mov rax, qword [rsp + 0x78]
mov r9, r15
mov qword [rsp + 0x30], rcx
mov r8, r12
mov qword [rsp + 0x28], r13
lea rcx, str.msft:spp_notifications_api_getinformation_sku
mov qword [rsp + 0x20], rax
call fcn.1400d42cc
mov r14d, eax
test eax, eax
jns 0x1400576f3
mov ecx, eax
call fcn.140079c40
mov r15, qword [rsp + 0x40]
mov ecx, r14d
call fcn.140079c60
test rsi, rsi
je 0x140057720
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14005774b
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rsi
call rax
mov rax, rsi
mov rcx, rbx
call rax
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005775b
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x140057769
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp]
call fcn.1400578a0
lea rcx, [rbp - 0x70]
call fcn.1400577f4
test rdi, rdi
je 0x14005779c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x14043d61c]
lea rcx, [0x1404182ac]
call fcn.1400edf70
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400577b2
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x68], 0
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x1400577c9
cmp dword [rbp - 0x80], 0
je 0x1400577c9
mov rcx, rax
call fcn.14007240c
mov eax, r14d
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14037a9a0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret