Function at 0x140046920
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 [0x1400913a8]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov eax, dword [0x1400935f4]
mov rsi, r9
mov r14, qword [rbp + 0x170]
movzx edi, r8b
mov qword [rsp + 0x30], r9
mov r13, rcx
mov byte [rsp + 0x24], r8b
mov qword [rsp + 0x38], rdx
test eax, eax
je 0x14004698d
mov eax, dword [0x1400935f4]
nop
test eax, eax
je 0x14004698d
call fcn.14004b7d0
inc dword [rax + 0x38]
lea rcx, [r13 + 0x10]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400469a4
lea rcx, [r13 + 0x10]
call fcn.140026580
xor r15d, r15d
mov qword [rsp + 0x28], r15
test r14, r14
je 0x1400469ba
mov eax, dword [r14 + 0x80]
jmp 0x1400469bf
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rsp + 0x20], eax
mov r12d, 3
cmp dil, 0x45
jne 0x140046ad3
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x48]
lea rcx, [r13 + 0x190]
call fcn.1400436f0
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 0x140046a04
int3
mov rax, qword [r9 + 0x18]
lea rcx, [r13 + 0x190]
mov rdx, qword [rax + r8*8]
lea r8, [rsp + 0x20]
mov rax, qword [rsi]
sub rax, rdx
lea rdx, [rbp + 0x58]
mov qword [rsp + 0x28], rax
call fcn.1400436f0
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x30]
lea r10, [rdx + 0x18]
test rcx, rcx
jne 0x140046a4a
mov r9, qword [r10 + 8]
lea rcx, [r9 - 1]
mov qword [r10 + 0x18], rcx
jmp 0x140046a55
dec rcx
mov qword [r10 + 0x18], rcx
mov r9, qword [r10 + 8]
lea rax, [rcx + 1]
cmp rax, r9
jbe 0x140046a67
int3
cmp rcx, r9
jbe 0x140046a71
int3
test r9, r9
lea r11, [r9 - 1]
mov rax, r15
cmovne rax, r11
cmp rax, r12
jbe 0x140046ad3
mov rdx, qword [r10 + 0x18]
mov r8, rdx
sub r8, qword [r10 + 0x10]
cmp qword [r10 + 0x10], rdx
lea rax, [r9 + r8]
cmova r8, rax
test r9, r9
mov rax, r11
cmove rax, r15
sub rax, r8
cmp rax, r8
jb 0x140046ad3
mov rax, r8
mov rdx, r12
shr rax, 2
add r8, rax
cmp r8, r12
cmova rdx, r8
test r9, r9
je 0x140046ad3
cmp rdx, r11
jae 0x140046ad3
mov rcx, r10
call fcn.140047de0
lea rcx, [r13 + 0x150]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x68]
call fcn.1400431e0
lea rcx, [rbp + 0x88]
mov rdx, qword [rax]
add rdx, 0x18
call fcn.14001b890
mov r9, qword [rbp + 0xa0]
lea r8, [rbp + 0x88]
mov r12, qword [rbp + 0x88]
cmp r9, 0x10
mov rsi, qword [rbp + 0x98]
movabs rcx, 0xcbf29ce484222325
cmovae r8, r12
mov rdx, r15
movabs r10, 0x100000001b3
test rsi, rsi
je 0x140046b54
nop dword [rax + rax]
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r10
cmp rdx, rsi
jb 0x140046b40
mov rax, qword [r13 + 0x200]
mov r15, qword [r13 + 0x1e8]
and rax, rcx
mov rcx, qword [r13 + 0x1d8]
add rax, rax
mov rdi, qword [r15 + rax*8 + 8]
cmp rdi, rcx
je 0x140046bd0
mov r15, qword [r15 + rax*8]
nop dword [rax]
cmp qword [rdi + 0x28], 0x10
lea rdx, [rdi + 0x10]
mov rax, qword [rdx + 0x10]
jb 0x140046b92
mov rdx, qword [rdx]
cmp r9, 0x10
lea rcx, [rbp + 0x88]
cmovae rcx, r12
cmp rsi, rax
jne 0x140046bb9
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140046bc4
mov r9, qword [rbp + 0xa0]
cmp rdi, r15
je 0x140046bc9
mov rdi, qword [rdi + 8]
jmp 0x140046b80
test rdi, rdi
jne 0x140046bd3
mov rcx, qword [r13 + 0x1d8]
mov rdi, rcx
cmp rdi, qword [r13 + 0x1d8]
jne 0x140046c1e
mov rdi, qword [r13 + 0x1e0]
lea rcx, [r13 + 0x1d0]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r8, [rbp + 0x88]
mul rdi
shr rdx, 2
lea rax, [rdx + rdx*2]
add rax, rax
lea rdx, [rbp + 0x78]
sub rdi, rax
inc rdi
call fcn.1400439b0
mov rcx, qword [rax]
mov dword [rcx + 0x30], edi
lea rax, [0x14007c2e0]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x40], 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 + 0x48]
xor r8d, r8d
lea rcx, [rsp + 0x40]
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 + 0x40]
lea r12, [0x14007c2d8]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, [0x14007c260]
mov dword [rbp - 0x48], 4
xor r15d, r15d
mov qword [rsp + 0x48], rax
lea rcx, [r13 + 0x1d0]
mov qword [rbp - 0x50], r15
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0xa8]
call fcn.1400439b0
cmp qword [rbp + 0xa0], 0x10
lea r8, [rbp + 0x88]
lea rdx, str._s:_e_0_3_dm
cmovae r8, qword [rbp + 0x88]
mov rcx, qword [rax]
mov r9d, dword [rcx + 0x30]
lea rcx, [rbp + 0xc8]
call fcn.140025ad0
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x140046cf0
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001b080
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x140046d41
mov rcx, qword [rbp + 0xc8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046d3c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046d3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
mov r8d, dword [rsp + 0x20]
movabs rdx, 0x100000001b3
mov r9, qword [r13 + 0x198]
movabs rax, 0xcbf29ce484222325
movzx ecx, r8b
xor rcx, rax
mov qword [rbp + 0xe0], 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 [r13 + 0x1c0]
imul rcx, rdx
and rax, rcx
mov rcx, qword [r13 + 0x1a8]
add rax, rax
mov rdx, qword [rcx + rax*8 + 8]
cmp rdx, r9
je 0x140046dd7
mov rax, qword [rcx + rax*8]
cmp r8d, dword [rdx + 0x10]
je 0x140046dd2
cmp rdx, rax
je 0x140046dd7
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
jne 0x140046dc3
test rdx, rdx
jne 0x140046dda
mov rdx, r9
cmp rdx, r9
je 0x140046e17
mov rcx, qword [rdx + 0x30]
mov rdi, rcx
sub rdi, qword [rdx + 0x28]
cmp qword [rdx + 0x28], rcx
jbe 0x140046df4
add rdi, qword [rdx + 0x20]
test rdi, rdi
je 0x140046e17
nop dword [rax]
lea rdx, [0x14007f798]
lea rcx, [rsp + 0x40]
call fcn.14001a480
sub rdi, 1
jne 0x140046e00
test r14, r14
je 0x140046fb5
mov rdx, qword [r14 + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001a480
mov rcx, rax
lea rdx, [0x14007f534]
call fcn.14001a480
mov rcx, qword [r14 + 0x40]
call fcn.14002be10
lea rcx, [rsp + 0x40]
mov rdx, qword [rax + 8]
call fcn.14001a480
lea rdx, [0x14007f538]
lea rcx, [rsp + 0x40]
call fcn.14001a480
cmp byte [r14 + 0x58], r15b
jbe 0x140046fb5
cmp qword [r14 + 0x60], r15
lea rdi, [r14 + 0x60]
je 0x140046fb5
lea rdx, [0x14007f53c]
lea rcx, [rsp + 0x40]
call fcn.14001a480
mov rsi, r15
cmp byte [r14 + 0x58], r15b
jbe 0x140046fa4
nop dword [rax + rax]
mov rdx, qword [rdi]
test rdx, rdx
je 0x140046fa4
test rsi, rsi
je 0x140046ec5
lea rdx, [0x14007f540]
lea rcx, [rsp + 0x40]
call fcn.14001a480
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
call fcn.14001a480
mov rcx, rax
lea rdx, [0x14007bf3c]
call fcn.14001a480
movzx edx, byte [rsi + r14 + 0x59]
lea rcx, [rdi + 0x10]
lea r8, [rbp + 0xa8]
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc0], 0xf
call fcn.14005f840
cmp qword [rbp + 0xc0], 0x10
lea rdx, [rbp + 0xa8]
mov r8, qword [rbp + 0xb8]
lea rcx, [rsp + 0x40]
cmovae rdx, qword [rbp + 0xa8]
call fcn.14001b080
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x140046f76
mov rcx, qword [rbp + 0xa8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046f71
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047043
call fcn.14001d8c0
movzx eax, byte [r14 + 0x58]
inc rsi
add rdi, 8
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc0], 0xf
mov byte [rbp + 0xa8], r15b
cmp rsi, rax
jb 0x140046ea0
lea rdx, [0x14007f530]
lea rcx, [rsp + 0x40]
call fcn.14001a480
movzx edi, byte [rsp + 0x24]
cmp dil, 0x45
jne 0x140047065
lea rcx, [rsp + 0x28]
call fcn.14003a430
movaps xmm2, xmm0
lea rdx, str.___.3f_ms_
movq r8, xmm0
lea rcx, [rbp + 0xe8]
call fcn.140025ad0
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x140046ff7
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001b080
mov rdx, qword [rbp + 0x100]
cmp rdx, 0x10
jb 0x14004704f
mov rcx, qword [rbp + 0xe8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004704a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004704a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
lea rdx, str.e_0_m
lea rcx, [rsp + 0x40]
call fcn.14001a480
jmp 0x140047148
lea rdx, str.e_0_m
lea rcx, [rsp + 0x40]
call fcn.14001a480
cmp dil, 0x42
jne 0x140047148
lea rcx, [r13 + 0x190]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0xe8]
call fcn.1400436f0
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 0x140047102
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.140047de0
mov r8, qword [rsi + 0x30]
mov r9, qword [rsi + 0x20]
cmp r8, r9
jbe 0x140047108
int3
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsp + 0x30]
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 0x14004712f
mov qword [rsi + 0x30], r15
jmp 0x14004713c
lea rax, [rdx + 1]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x14004713f
mov rax, rcx
dec rax
cmp rax, rcx
jbe 0x140047148
int3
mov rdi, qword [rsp + 0x38]
xorps xmm0, xmm0
mov ecx, dword [rbp - 0x48]
mov eax, ecx
and al, 0x22
movups xmmword [rbp + 0x30], xmm0
mov qword [rdi], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
cmp al, 2
je 0x140047190
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140047190
cmp r8, qword [rbp - 0x50]
mov rax, qword [rsp + 0x68]
cmovb r8, qword [rbp - 0x50]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x1400471c0
test cl, 4
jne 0x1400471b8
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400471b8
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400471c0
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x1400471cd
mov rcx, rdi
call fcn.14001cc40
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.140022970
lea rcx, [rsp + 0x50]
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 - 0x38]
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 + 0xa0]
cmp rdx, 0x10
jb 0x140047251
mov rcx, qword [rbp + 0x88]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004724c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004724c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
lea rcx, [r13 + 0x10]
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], 0xf
mov byte [rbp + 0x88], r15b
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x1400935f4]
test eax, eax
je 0x14004729a
mov ecx, dword [0x1400935f4]
nop
test ecx, ecx
je 0x14004729a
call fcn.14004b7d0
mov ecx, dword [rax + 0x38]
test ecx, ecx
je 0x14004729a
dec ecx
mov dword [rax + 0x38], ecx
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.140077590
mov rbx, qword [rsp + 0x260]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret