Function at 0x140072e50
Capabilities:
Encrypt data using xtea

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, qword [rbp + 0xa8]
xor r12d, r12d
mov r13, qword [rbp + 0xa0]
mov eax, r12d
mov r15, rdx
mov qword [rbp + 8], rax
mov rdi, rcx
mov qword [rsp + 0x70], rax
lea rdx, [0x1405fdaa8]
mov qword [rsp + 0x68], r9
lea rcx, [0x14048f880]
mov qword [rsp + 0x78], rbx
mov rsi, r9
mov qword [rbp - 0x38], r12
mov r14, r8
mov dword [rbp - 0x30], r12d
mov qword [rbp - 0x78], r12
call fcn.140003610
mov eax, r12d
mov qword [rbp - 0x60], r12
lea rcx, [rbp - 0x28]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x40], eax
call fcn.14003acb0
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x70], rax
test rsi, rsi
jne 0x140072f06
mov ecx, 0x80070057
mov esi, ecx
jmp 0x140073ae6
test r13, r13
je 0x140072efa
test rbx, rbx
je 0x140072efa
mov rsi, qword [0x140604070]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x80], rsi
lea rdx, [rsi + 8]
call fcn.14006a044
mov rdx, r14
lea rcx, str.TimeBasedExtendedGrace
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140073124
cmp qword [rdi + 0x10], r12
jne 0x140072f9f
lea r9, [rbp - 0x68]
mov rdx, r15
lea r8, str.applicationId
call fcn.1400ec2bc
mov esi, eax
test eax, eax
js 0x140073ae4
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp + 8]
call fcn.14006853c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rcx, qword [rbp - 0x80]
lea r8, [rbp + 8]
mov r9, r15
mov dword [rsp + 0x20], 1
mov rdx, rdi
call fcn.1400ef334
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140072fb4
mov esi, 0xc004f002
mov ecx, esi
jmp 0x140073ae6
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.140068660
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.1401bf328
test al, al
jne 0x140072fe8
mov esi, 0xc004f012
jmp 0x140072fad
lea rdx, [0x1405fa120]
lea rcx, [0x1405bd440]
call fcn.140003980
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x70]
movsxd rax, dword [rsp + 0x50]
add rax, rax
mov rcx, qword [rcx + rax*8 + 8]
call fcn.1401087fc
mov rdi, qword [rbp - 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403358c8]
lea r8, [rbp - 0x58]
mov rcx, rdi
lea rdx, str.TimeBasedConvertedToPerpetual
call rbx
mov r14d, 0x80070002
mov esi, eax
cmp eax, r14d
jne 0x140073111
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403358c8]
lea r8, [rbp - 0x58]
mov rcx, rdi
lea rdx, str.TimeBasedExtendedGrace
call rbx
mov esi, eax
cmp eax, r14d
je 0x140072fe1
test eax, eax
js 0x140072fad
cmp dword [rbp - 0x50], 2
je 0x14007308d
mov esi, 0xc004f01e
jmp 0x140072fad
mov edx, 4
lea ecx, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14003be64
mov rdi, qword [rsp + 0x70]
test rdi, rdi
jne 0x1400730c3
mov r14d, 0x8007000e
mov esi, r14d
mov ecx, r14d
jmp 0x140073ae6
mov rcx, qword [rbp - 0x48]
mov rdx, rdi
call fcn.14003962c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rax, qword [rsp + 0x68]
lea rdx, [0x1405fbc80]
and qword [rsp + 0x70], r12
lea rcx, [0x14045f676]
mov dword [rax], 4
mov rax, qword [rsp + 0x78]
mov dword [r13], 4
mov qword [rax], rdi
call fcn.140005090
jmp 0x140073aeb
test eax, eax
je 0x140072fe1
jns 0x140073aeb
jmp 0x140072fad
mov rdx, r14
lea rcx, str.RearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140073249
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14003ee4c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rbx, qword [0x1406040e0]
lea rdx, [0x1405fdbec]
lea rcx, [0x140490f8a]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x158]
call fcn.1400042e0
mov rcx, rdi
call qword [0x1403358c8]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1403358c8]
lea rdx, [rsp + 0x44]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
cmp dword [rsp + 0x44], 1
je 0x1400731d2
mov ecx, 0x8000ffff
jmp 0x140072eff
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [0x1403358c8]
lea rdx, [0x1405fe30c]
lea rcx, [0x1403df5db]
call fcn.140004d20
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 8]
call fcn.14006853c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rax, qword [rsp + 0x78]
lea rcx, [rbp + 8]
mov r8, qword [rsp + 0x68]
mov r9, r13
mov rdx, r15
mov qword [rsp + 0x20], rax
call fcn.1400e94e0
jmp 0x140073ade
mov rdx, r14
lea rcx, str.RemainingRearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140073342
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14003ee4c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rbx, qword [0x1406040e0]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x158]
mov rcx, rdi
call qword [0x1403358c8]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1403358c8]
lea rdx, [rsp + 0x44]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
cmp dword [rsp + 0x44], 1
jne 0x1400731c8
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [0x1403358c8]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 8]
call fcn.14006853c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rax, qword [rsp + 0x78]
lea rcx, [rbp + 8]
mov r8, qword [rsp + 0x68]
mov r9, r13
mov rdx, r15
mov qword [rsp + 0x20], rax
call fcn.1400e9924
jmp 0x140073ade
mov rdx, r14
lea rcx, str.TrustedTime
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140073452
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14003ee4c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rbx, qword [0x1406040e0]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x158]
mov rcx, rdi
call qword [0x1403358c8]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1403358c8]
lea rdx, [rsp + 0x44]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
cmp dword [rsp + 0x44], 1
jne 0x1400731c8
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [0x1403358c8]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 8]
call fcn.14006853c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rax, qword [rsp + 0x78]
lea rcx, [rbp + 8]
mov r8, qword [rsp + 0x68]
mov r9, r13
mov rdx, r15
mov qword [rsp + 0x20], rax
call fcn.1400ea264
lea rdx, [0x1405ff750]
mov esi, eax
lea rcx, [0x140401450]
call fcn.140005400
test esi, esi
jmp 0x140073119
mov rdx, r14
lea rcx, str.CustomerPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, [0x140359858]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.VLActivationInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.VLRenewalInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.KeyManagementServiceName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.KeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.KeyManagementServiceLookupDomain
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.DiscoveredKeyManagementServiceName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.DiscoveredKeyManagementServiceIpAddress
call sub.msvcrt.dll_wcscmp
lea rdx, [0x1406003fc]
mov edi, eax
lea rcx, [0x1405979c8]
call fcn.140003fd0
test edi, edi
je 0x1400739fc
mov rdx, r14
lea rcx, str.DiscoveredKeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.ADActivationObjectName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.ADActivationObjectDN
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.ADActivationCsvlkPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.ADActivationCsvlkSkuID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.TokenActivationILID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.TokenActivationILVID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.TokenActivationGrantNumber
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.TokenActivationCertThumbprint
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.TokenActivationAdditionalInfo
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.InheritedActivationId
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.InheritedActivationHostMachineName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.InheritedActivationHostDigitalPid2
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.InheritedActivationActivationTime
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400739fc
mov rdx, r14
lea rcx, str.DigitalEncryptedPID
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400736e5
lea r9, [rbp - 0x78]
mov r8, r14
mov rdx, r15
call fcn.1400ec2bc
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdi, qword [rbp - 0x78]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x7fffffff
call fcn.140039874
mov esi, eax
test eax, eax
js 0x140073ae4
mov rax, qword [rsp + 0x68]
and qword [rbp - 0x78], r12
mov dword [rax], 1
mov eax, dword [rsp + 0x40]
mov dword [r13], eax
mov qword [rbx], rdi
jmp 0x140073aeb
and qword [rsp + 0x58], r12
lea rdx, [0x1405fd138]
lea rcx, [0x14047f62a]
mov qword [rbp - 0x28], r15
mov qword [rbp], rsi
call fcn.1400049d0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400b74d4
test rax, rax
je 0x14007371c
mov rcx, rax
call fcn.14003a884
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140199b84
mov rdi, qword [rsp + 0x58]
xor r15d, r15d
mov r14d, 0x8007000e
test rdi, rdi
jne 0x140073749
mov esi, r14d
mov ecx, r14d
call fcn.14003e510
jmp 0x14007378e
mov rax, qword [rdi]
lea rdx, [0x1405fe650]
lea rcx, [0x140574800]
mov rbx, qword [rax + 0xa0]
call fcn.140004640
mov rcx, rbx
call qword [0x1403358c8]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
jns 0x140073782
mov ecx, eax
jmp 0x140073742
mov r12, rdi
mov qword [rsp + 0x58], r15
mov qword [rbp - 0x60], rdi
mov ecx, esi
call fcn.14006a5bc
lea rcx, [rsp + 0x58]
call fcn.14003b6c4
test esi, esi
js 0x140072fad
mov rax, qword [r12]
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x58], r15
mov rdi, qword [rax]
mov rcx, rdi
call qword [0x1403358c8]
mov rcx, r12
call rdi
mov edx, 0x4c
mov r15, qword [rax]
lea ecx, [rdx - 0xc]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14003be64
mov rbx, qword [rbp - 0x80]
test rbx, rbx
jne 0x140073803
mov esi, r14d
mov ecx, r14d
call fcn.14003e510
mov rdi, qword [rbp + 8]
mov ebx, dword [rsp + 0x50]
jmp 0x1400739a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [r12]
mov rdi, qword [rax + 0x60]
mov rcx, rdi
call qword [0x1403358c8]
lea rax, [rsp + 0x40]
mov r8d, 4
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, r12
call rdi
mov esi, eax
test eax, eax
jns 0x140073844
mov ecx, eax
jmp 0x1400737f1
mov r8d, SafeArrayGetElement
cmp dword [rsp + 0x40], r8d
jae 0x140073856
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbx + 8]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x58]
call fcn.1400b66b4
mov rax, qword [r12]
mov rdi, qword [rax + 0x60]
mov rcx, rdi
call qword [0x1403358c8]
lea rax, [rsp + 0x40]
mov r8d, 2
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, r12
call rdi
mov esi, eax
test eax, eax
js 0x140073840
mov r8d, 0x30
cmp dword [rsp + 0x40], r8d
jae 0x1400738b4
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbx + 0x1c]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x58]
call fcn.1400b66b4
lea rcx, [0x1404b7a03]
call fcn.140011228
mov rdi, rax
lea rcx, [rbp + 0x18]
call rdi
mov rcx, rdi
mov esi, eax
call fcn.140018b88
test esi, esi
jns 0x1400738f6
mov ecx, esi
jmp 0x1400737f1
xor esi, esi
mov rdi, rbx
mov edx, dword [rdi]
xor r9d, r9d
mov r8d, dword [rdi + 4]
xor r10d, r10d
lea r11d, [r9 + 0x20]
mov eax, r8d
and r10d, 3
shl eax, 4
mov ecx, r8d
shr ecx, 5
xor ecx, eax
mov eax, dword [rbp + r10*4 + 0x18]
add ecx, r8d
add eax, r9d
add r9d, 0x9e3779b9
xor ecx, eax
mov r10d, r9d
add edx, ecx
mov eax, edx
mov ecx, edx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, r9d
shr rax, 0xb
add ecx, edx
and eax, 3
mov eax, dword [rbp + rax*4 + 0x18]
add eax, r9d
xor ecx, eax
add r8d, ecx
add r11d, 0xffffffff
jne 0x14007390b
mov dword [rdi], edx
mov dword [rdi + 4], r8d
xor ecx, ecx
call fcn.14006a5bc
inc esi
inc rdi
movsxd rax, esi
add rax, 8
cmp rax, 0x4c
jbe 0x1400738fb
xor ecx, ecx
call fcn.14006a5bc
xor esi, esi
mov qword [rsp + 0x70], rbx
xor eax, eax
lea rdi, [rbp + 0x18]
and qword [rbp - 0x80], rax
lea ecx, [rsi + 0x10]
rep stosb byte [rdi], al
mov rdi, rbx
lea ebx, [rsi + 0x4c]
mov ecx, esi
call fcn.14006a5bc
lea rcx, [rsp + 0x58]
call fcn.14003b754
lea rcx, [rbp - 0x80]
call fcn.14003b754
test esi, esi
jns 0x1400739cb
mov ecx, esi
call fcn.14003e510
mov ecx, esi
call fcn.14006a5bc
test esi, esi
js 0x140072fad
mov rax, qword [rsp + 0x68]
and qword [rsp + 0x70], 0
mov dword [rax], 3
mov rax, qword [rsp + 0x78]
mov dword [r13], ebx
mov qword [rax], rdi
jmp 0x140073aeb
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14003ee4c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rbx, qword [0x1406040e0]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x158]
mov rcx, rdi
call qword [0x1403358c8]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140073ae4
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1403358c8]
lea rdx, [rsp + 0x44]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
cmp dword [rsp + 0x44], 1
jne 0x1400731c8
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [0x1403358c8]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x140073ae4
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 8]
call fcn.14006853c
mov esi, eax
test eax, eax
js 0x140073ae4
mov rax, qword [rsp + 0x78]
lea rdx, [rbp + 8]
mov qword [rsp + 0x30], rax
lea rcx, str.msft:spp_notifications_api_getinformation_sku
mov rax, qword [rsp + 0x68]
mov r9, r14
mov qword [rsp + 0x28], r13
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.1400e90dc
mov esi, eax
test eax, eax
jns 0x140073aeb
mov ecx, eax
call fcn.14003e510
mov ecx, esi
call fcn.14006a5bc
lea rcx, [rbp - 0x70]
call fcn.1400b60fc
lea rcx, [rsp + 0x48]
call fcn.1400b60fc
lea rcx, [rsp + 0x60]
call fcn.14003b788
lea rcx, [rbp - 0x68]
call fcn.14003b788
lea rcx, [rbp - 0x28]
call fcn.14003b894
lea rcx, [rbp - 0x60]
call fcn.14003b6c4
lea rcx, [rbp - 0x78]
call fcn.14003b788
lea rcx, [rsp + 0x70]
call fcn.14003b788
lea rcx, [rbp - 0x38]
call fcn.14003b1c4
mov eax, esi
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.14001af80
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret