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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x14008c3d8]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rdi, qword [rbp + 0x170]
mov r15, r9
mov eax, dword [0x1400a0ab8]
movzx esi, r8b
mov qword [rsp + 0x30], rdi
mov r14, rcx
mov qword [rsp + 0x38], r9
mov byte [rsp + 0x24], r8b
mov qword [rsp + 0x40], rdx
test eax, eax
je 0x140037791
mov eax, dword [0x1400a0ab8]
test eax, eax
je 0x140037791
call fcn.140045ff0
inc dword [rax + 0x38]
lea rcx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400377a8
lea rcx, [r14 + 0x10]
call fcn.14003b2b0
mov qword [rsp + 0x28], 0
test rdi, rdi
je 0x1400377be
mov eax, dword [rdi + 0x80]
jmp 0x1400377c3
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rsp + 0x20], eax
mov r12d, 3
cmp sil, 0x45
jne 0x1400378d2
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x50]
lea rcx, [r14 + 0x180]
call fcn.1400344c0
mov r9, qword [rax]
mov rax, qword [r9 + 0x30]
mov r8, qword [r9 + 0x20]
test rax, rax
cmovne r8, rax
dec r8
cmp r8, qword [r9 + 0x20]
jbe 0x140037808
int3
mov rax, qword [r9 + 0x18]
lea rcx, [r14 + 0x180]
mov rdx, qword [r15]
sub rdx, qword [rax + r8*8]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0x60]
call fcn.1400344c0
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x30]
lea r10, [rdx + 0x18]
test rcx, rcx
jne 0x14003784b
mov r9, qword [r10 + 8]
lea rcx, [r9 - 1]
mov qword [r10 + 0x18], rcx
jmp 0x140037856
dec rcx
mov qword [r10 + 0x18], rcx
mov r9, qword [r10 + 8]
lea rax, [rcx + 1]
cmp rax, r9
jbe 0x140037868
int3
cmp rcx, r9
jbe 0x140037872
int3
xor eax, eax
lea r11, [r9 - 1]
test r9, r9
cmovne rax, r11
cmp rax, r12
jbe 0x1400378d2
mov rdx, qword [r10 + 0x18]
mov r8, rdx
sub r8, qword [r10 + 0x10]
cmp qword [r10 + 0x10], rdx
lea rax, [r8 + r9]
cmova r8, rax
xor eax, eax
test r9, r9
cmovne rax, r11
sub rax, r8
cmp rax, r8
jb 0x1400378d2
mov rax, r8
mov rdx, r12
shr rax, 2
add r8, rax
cmp r8, r12
cmova rdx, r8
test r9, r9
je 0x1400378d2
cmp rdx, r11
jae 0x1400378d2
mov rcx, r10
call fcn.1400386d0
lea rcx, [r14 + 0x138]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x70]
call fcn.140033f40
lea rcx, [rbp + 0xa0]
mov rdx, qword [rax]
add rdx, 0x18
call fcn.1400251e0
mov r13, qword [rbp + 0xb8]
lea r8, [rbp + 0xa0]
mov r12, qword [rbp + 0xa0]
cmp r13, 0x10
mov rsi, qword [rbp + 0xb0]
movabs rcx, 0xcbf29ce484222325
cmovae r8, r12
movabs r9, 0x100000001b3
xor edx, edx
test rsi, rsi
je 0x140037954
nop dword [rax]
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r9
cmp rdx, rsi
jb 0x140037940
mov rax, qword [r14 + 0x1f0]
mov r15, qword [r14 + 0x1d8]
and rax, rcx
add rax, rax
mov rdi, qword [r15 + rax*8 + 8]
cmp rdi, qword [r14 + 0x1c8]
je 0x1400379c9
mov r15, qword [r15 + rax*8]
nop word [rax + rax]
cmp qword [rdi + 0x28], 0x10
lea rdx, [rdi + 0x10]
jb 0x14003798f
mov rdx, qword [rdi + 0x10]
cmp r13, 0x10
lea rcx, [rbp + 0xa0]
cmovae rcx, r12
cmp rsi, qword [rdi + 0x20]
jne 0x1400379b0
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400379bb
cmp rdi, r15
je 0x1400379c9
mov rdi, qword [rdi + 8]
jmp 0x140037980
test rdi, rdi
je 0x1400379c9
cmp rdi, qword [r14 + 0x1c8]
jne 0x140037a0e
mov rdi, qword [r14 + 0x1d0]
lea rcx, [r14 + 0x1c0]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r8, [rbp + 0xa0]
mul rdi
shr rdx, 2
lea rax, [rdx + rdx*2]
add rax, rax
lea rdx, [rbp + 0x80]
sub rdi, rax
inc rdi
call fcn.140034780
mov rcx, qword [rax]
mov dword [rcx + 0x30], edi
lea rax, [0x140075610]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x60], rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r9d, r9d
lea rdx, [rsp + 0x68]
xor r8d, r8d
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
mov rax, qword [rsp + 0x60]
lea r12, [0x140075608]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, [0x140075590]
mov dword [rbp - 0x28], 4
xor r15d, r15d
mov qword [rsp + 0x68], rax
lea rcx, [r14 + 0x1c0]
mov qword [rbp - 0x30], r15
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x90]
call fcn.140034780
cmp qword [rbp + 0xb8], 0x10
lea r8, [rbp + 0xa0]
lea rdx, str._s:_e_0_3_dm
cmovae r8, qword [rbp + 0xa0]
mov rcx, qword [rax]
mov r9d, dword [rcx + 0x30]
lea rcx, [rbp + 0xc0]
call fcn.140029a80
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140037adf
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14001a4e0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x140037b31
mov rcx, qword [rbp + 0xc0]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037b2c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037b2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071710
mov r8d, dword [rsp + 0x20]
movabs rdx, 0x100000001b3
mov r9, qword [r14 + 0x188]
movabs rax, 0xcbf29ce484222325
movzx ecx, r8b
xor rcx, rax
mov qword [rbp + 0xd8], 0xf
movzx eax, byte [rsp + 0x21]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rsp + 0x22]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rsp + 0x23]
imul rcx, rdx
xor rcx, rax
mov rax, qword [r14 + 0x1b0]
imul rcx, rdx
and rax, rcx
mov rcx, qword [r14 + 0x198]
add rax, rax
mov rdx, qword [rcx + rax*8 + 8]
cmp rdx, r9
je 0x140037bc7
mov rax, qword [rcx + rax*8]
cmp r8d, dword [rdx + 0x10]
je 0x140037bc2
cmp rdx, rax
je 0x140037bc7
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
jne 0x140037bb3
test rdx, rdx
jne 0x140037bca
mov rdx, r9
cmp rdx, r9
je 0x140037c07
mov rcx, qword [rdx + 0x30]
mov rdi, rcx
sub rdi, qword [rdx + 0x28]
cmp qword [rdx + 0x28], rcx
jbe 0x140037be4
add rdi, qword [rdx + 0x20]
test rdi, rdi
je 0x140037c07
nop dword [rax]
lea rdx, [0x140076438]
lea rcx, [rsp + 0x60]
call fcn.140019ba0
sub rdi, 1
jne 0x140037bf0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140037c1b
lea rdx, [rsp + 0x60]
call fcn.1400432b0
movzx edi, byte [rsp + 0x24]
cmp dil, 0x45
jne 0x140037cc4
lea rcx, [rsp + 0x28]
call fcn.14003d080
movaps xmm2, xmm0
lea rdx, str.___.3f_ms_
movq r8, xmm0
lea rcx, [rbp + 0xe0]
call fcn.140029a80
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140037c5c
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14001a4e0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140037cae
mov rcx, qword [rbp + 0xe0]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037ca9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037ca9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071710
lea rdx, str.e_0_m
lea rcx, [rsp + 0x60]
call fcn.140019ba0
jmp 0x140037da7
lea rdx, str.e_0_m
lea rcx, [rsp + 0x60]
call fcn.140019ba0
cmp dil, 0x42
jne 0x140037da7
lea rcx, [r14 + 0x180]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0xe0]
call fcn.1400344c0
mov rsi, qword [rax]
mov r9, qword [rsi + 0x20]
mov r8, qword [rsi + 0x30]
mov rdx, r8
sub rdx, qword [rsi + 0x28]
cmp qword [rsi + 0x28], r8
lea rcx, [r9 - 1]
lea rax, [r9 + rdx]
cmova rdx, rax
mov rax, r15
inc rdx
test r9, r9
cmovne rax, rcx
cmp rax, rdx
jae 0x140037d61
cmp rdx, 3
mov eax, 3
cmovb rdx, rax
test r9, r9
cmove rcx, r15
mov rax, rcx
shr rax, 2
add rcx, rax
cmp rdx, rcx
cmovb rdx, rcx
lea rcx, [rsi + 0x18]
call fcn.1400386d0
mov r8, qword [rsi + 0x30]
mov r9, qword [rsi + 0x20]
cmp r8, r9
jbe 0x140037d67
int3
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rcx + r8*8], rax
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x30]
lea rax, [rcx - 1]
cmp rdx, rax
jne 0x140037d8e
mov qword [rsi + 0x30], r15
jmp 0x140037d9b
lea rax, [rdx + 1]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140037d9e
mov rax, rcx
dec rax
cmp rax, rcx
jbe 0x140037da7
int3
mov rdi, qword [rsp + 0x40]
xorps xmm0, xmm0
mov ecx, dword [rbp - 0x28]
mov eax, ecx
and al, 0x22
movups xmmword [rsp + 0x48], xmm0
mov qword [rdi], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
cmp al, 2
je 0x140037def
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140037def
cmp r8, qword [rbp - 0x30]
mov rax, qword [rbp - 0x78]
cmovb r8, qword [rbp - 0x30]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x140037e20
test cl, 4
jne 0x140037e16
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140037e16
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140037e20
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140037e2d
mov rcx, rdi
call fcn.140026450
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.1400214c0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x140037eb1
mov rcx, qword [rbp + 0xa0]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037eac
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037eac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071710
lea rcx, [r14 + 0x10]
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], r15b
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x1400a0ab8]
test eax, eax
je 0x140037ef9
mov ecx, dword [0x1400a0ab8]
test ecx, ecx
je 0x140037ef9
call fcn.140045ff0
mov ecx, dword [rax + 0x38]
test ecx, ecx
je 0x140037ef9
dec ecx
mov dword [rax + 0x38], ecx
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400717b0
mov rbx, qword [rsp + 0x260]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret