Function at 0x140017050
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 [0x14005ab08]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
cmp byte [rcx + 0x60], 0
jne 0x1400170af
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.140005a3c
mov eax, ebx
jmp 0x14001737e
lea rbx, [rcx + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov qword [rsp + 0x30], rbx
movabs r15, 0xcbf29ce484222325
mov rcx, r15
xor edx, edx
movabs r12, 0x100000001b3
movzx eax, byte [rsp + rdx + 0x38]
xor rcx, rax
imul rcx, r12
inc rdx
cmp rdx, 8
jb 0x1400170e0
mov rax, qword [rsi + 0x30]
and rax, rcx
add rax, rax
mov rcx, qword [rsi + 0x18]
mov rdi, qword [rcx + rax*8 + 8]
cmp rdi, qword [rsi + 8]
je 0x140017121
mov rcx, qword [rcx + rax*8]
cmp r14, qword [rdi + 0x10]
je 0x140017123
cmp rdi, rcx
jne 0x1400173a7
xor edi, edi
test rdi, rdi
je 0x140017340
cmp rdi, qword [rsi + 8]
je 0x140017340
lea rcx, [rsp + 0x40]
call fcn.1400109a4
nop
lea rdx, str.EndSgrmSession:_ending_session
lea rcx, [rsp + 0x50]
call fcn.140010e4c
lea rdx, [0x140049368]
mov rcx, rax
call fcn.140010e4c
lea rdx, [0x14000ef60]
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 [0x140047a68]
mov r14d, eax
test eax, eax
jns 0x1400171fb
lea rdx, str.____failed_to_destroy_attestation_client
lea rcx, [rsp + 0x50]
call fcn.140010e4c
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x58]
call fcn.140010c80
lea rdx, [rsp + 0x140]
cmp qword [rsp + 0x158], 0x10
cmovae rdx, qword [rsp + 0x140]
mov dword [rsp + 0x20], 0xb9
xor r8d, r8d
mov ecx, r14d
jmp 0x140017235
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x58]
call fcn.140010c80
lea rdx, [rsp + 0x140]
cmp qword [rsp + 0x158], 0x10
cmovae rdx, qword [rsp + 0x140]
mov dword [rsp + 0x20], 0xbc
xor ecx, ecx
lea r8d, [rcx + 2]
lea r9, str.SgrmBroker::SgrmSessionManager::EndSgrmSession
call fcn.1400150b8
lea rcx, [rsp + 0x140]
call fcn.140013494
xor ecx, ecx
movzx eax, byte [rcx + rdi + 0x10]
xor r15, rax
imul r15, r12
inc rcx
cmp rcx, 8
jb 0x140017250
mov rcx, qword [rsi + 0x30]
and rcx, r15
add rcx, rcx
mov rdx, qword [rsi + 0x18]
cmp qword [rdx + rcx*8 + 8], rdi
jne 0x140017295
cmp qword [rdx + rcx*8], rdi
jne 0x14001728a
mov rax, qword [rsi + 8]
mov qword [rdx + rcx*8], rax
jmp 0x14001728e
mov rax, qword [rdi + 8]
mov qword [rdx + rcx*8 + 8], rax
jmp 0x1400172a2
cmp qword [rdx + rcx*8], rdi
jne 0x1400172a2
mov rax, qword [rdi]
mov qword [rdx + rcx*8], rax
mov rdx, qword [rdi]
dec qword [rsi + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rcx, [rdi + 0x18]
call fcn.14000ec60
mov edx, 0x28
mov rcx, rdi
call fcn.140040ab4
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [0x140045310]
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x58]
call fcn.1400108d4
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcp_win.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop dword [rax + rax]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.msvcp_win.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x14001733b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov eax, r14d
jmp 0x14001737e
mov rcx, qword [rsp + 0x198]
mov edi, 0x80070006
mov r9d, edi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_sessionmanager.cpp
mov edx, 0xc4
call fcn.140005a3c
nop
test rbx, rbx
je 0x140017376
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov eax, edi
jmp 0x14001737e
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140040640
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rdi, qword [rdi + 8]
jmp 0x140017112