Function at 0x140016c78
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140059b08]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
cmp byte [rcx + 0x60], 0
jne 0x140016cd7
mov rcx, qword [rsp + 0x198]
mov ebx, 0x8007139f
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_sessionmanager.cpp
mov edx, 0xa9
call fcn.140005930
mov eax, ebx
jmp 0x140016f50
lea rdi, [rcx + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov qword [rsp + 0x38], rdi
movabs r15, 0xcbf29ce484222325
mov rcx, r15
xor edx, edx
movabs r12, 0x100000001b3
movzx eax, byte [rsp + rdx + 0x30]
xor rcx, rax
imul rcx, r12
inc rdx
cmp rdx, 8
jb 0x140016d08
mov rax, qword [rsi + 0x30]
and rax, rcx
add rax, rax
mov rcx, qword [rsi + 0x18]
mov rbx, qword [rcx + rax*8 + 8]
cmp rbx, qword [rsi + 8]
je 0x140016d49
mov rdx, qword [rcx + rax*8]
cmp r14, qword [rbx + 0x10]
je 0x140016d4b
cmp rbx, rdx
jne 0x140016f79
xor ebx, ebx
test rbx, rbx
cmove rbx, qword [rsi + 8]
cmp rbx, qword [rsi + 8]
je 0x140016f11
lea rcx, [rsp + 0x40]
call fcn.1400108f0
nop
lea rdx, str.EndSgrmSession:_ending_session
lea rcx, [rsp + 0x50]
call fcn.140010c78
lea rdx, [0x140048318]
mov rcx, rax
call fcn.140010c78
lea rdx, [0x14000e850]
mov rcx, rax
call qword [sym.imp.msvcp_win.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
nop dword [rax + rax]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.msvcp_win.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
movabs r10, 0xdc502fd81cd83b70
mov rdx, r14
mov rax, qword [rax + 0x78]
call qword [0x140046a60]
mov r14d, eax
test eax, eax
jns 0x140016e12
lea rdx, str.____failed_to_destroy_attestation_client
lea rcx, [rsp + 0x50]
call fcn.140010c78
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140010848
cmp qword [rax + 0x18], 0x10
jb 0x140016e02
mov rax, qword [rax]
mov dword [rsp + 0x20], 0xb9
xor r8d, r8d
mov ecx, r14d
jmp 0x140016e3e
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140010848
cmp qword [rax + 0x18], 0x10
jb 0x140016e2e
mov rax, qword [rax]
mov dword [rsp + 0x20], 0xbc
mov r8d, 2
xor ecx, ecx
lea r9, str.SgrmBroker::SgrmSessionManager::EndSgrmSession
mov rdx, rax
call fcn.140014e28
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x140016e6b
inc rdx
mov rcx, qword [rsp + 0x140]
call fcn.140007850
xor ecx, ecx
movzx eax, byte [rbx + rcx + 0x10]
xor r15, rax
imul r15, r12
inc rcx
cmp rcx, 8
jb 0x140016e6d
mov rcx, qword [rsi + 0x30]
and rcx, r15
add rcx, rcx
mov rdx, qword [rsi + 0x18]
cmp qword [rdx + rcx*8 + 8], rbx
jne 0x140016eb2
cmp qword [rdx + rcx*8], rbx
jne 0x140016ea7
mov rax, qword [rsi + 8]
mov qword [rdx + rcx*8], rax
jmp 0x140016eab
mov rax, qword [rbx + 8]
mov qword [rdx + rcx*8 + 8], rax
jmp 0x140016ebf
cmp qword [rdx + rcx*8], rbx
jne 0x140016ebf
mov rax, qword [rbx]
mov qword [rdx + rcx*8], rax
mov rcx, qword [rbx]
dec qword [rsi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbx + 0x18]
call fcn.14000e500
mov edx, 0x28
mov rcx, rbx
call fcn.140007850
nop
lea rcx, [rsp + 0x40]
call fcn.140010260
nop
test rdi, rdi
je 0x140016f0c
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
nop
mov eax, r14d
jmp 0x140016f50
mov rcx, qword [rsp + 0x198]
mov ebx, 0x80070006
mov r9d, ebx
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_sessionmanager.cpp
mov edx, 0xc4
call fcn.140005930
nop
test rdi, rdi
je 0x140016f48
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
nop
mov eax, ebx
jmp 0x140016f50
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003f700
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rbx, qword [rbx + 8]
jmp 0x140016d3a