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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [rcx + 0x20]
test r8d, 0x180
je 0x1401632c1
bt eax, 0xb
mov rdi, qword [rdi + 0x18]
jae 0x140163a47
mov rbx, qword [0x1402c77e8]
cmp qword [0x1402c77e0], 0
jne 0x1401631d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor rbx, rdi
cmp qword [rsi + 0x10], 0
jne 0x140163893
lea rax, [rsp + 0x72]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rax + 6], rcx
mov qword [rax], rcx
mov byte [rax - 1], 0x40
lea rcx, [rsp + 0x71]
cmp rbx, 0x80
jae 0x140163275
mov r13, rcx
mov byte [rax], bl
sub r13, rcx
add r13, 2
mov rbp, qword [rsi]
mov edi, r13d
mov r15, qword [rbp + 0x18]
lea rbx, [r15 + rdi]
cmp rbx, qword [rbp + 0x10]
ja 0x14016367e
test rdi, rdi
je 0x14016323f
lea rdx, [rsp + 0x71]
mov rcx, r15
mov r8, rdi
call fcn.1401d8080
mov qword [rbp + 0x18], rbx
add dword [rsi + 0x20], r13d
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x140163261
call fcn.14019f290
int3
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rbx
mov r8d, edx
or r8b, 0x80
mov byte [rax], r8b
shr rbx, 7
inc rax
cmp rdx, 0x3fff
ja 0x140163275
lea r13, [rax - 1]
jmp 0x140163209
mov rdx, rbx
mov r8d, edx
or r8b, 0x80
mov byte [rax], r8b
shr rbx, 7
inc rax
cmp rdx, 0x3fff
ja 0x14016329b
lea rbp, [rax - 1]
jmp 0x1401633ff
and eax, 0x1802
mov rcx, qword [rdi]
mov rbx, qword [rdi + 0x18]
test rcx, rcx
setne dl
cmp eax, 0x1000
setne r8b
and r8b, dl
cmp r8b, 1
jne 0x1401633ba
movabs rdx, 0x100000001b3
mov r12d, ebx
shr r12d, 8
mov r14d, ebx
shr r14d, 0x10
mov r15d, ebx
shr r15d, 0x18
mov r11, rbx
shr r11, 0x20
mov r10, rbx
shr r10, 0x28
mov r8, rbx
shr r8, 0x30
mov r9, rbx
shr r9, 0x38
and rbx, 0xff
movabs r13, 0xcbf29ce484222325
xor r13, rbx
imul r13, rdx
and r12d, 0xff
xor r12, r13
imul r12, rdx
and r14d, 0xff
xor r14, r12
imul r14, rdx
xor r14, r15
imul r14, rdx
and r11, 0xff
xor r11, r14
imul r11, rdx
and r10, 0xff
xor r10, r11
imul r10, rdx
and r8, 0xff
xor r8, r10
imul r8, rdx
xor r8, r9
imul r8, rdx
mov r9b, byte [rcx]
test r9b, r9b
je 0x140163965
inc rcx
nop
movzx ebx, r9b
xor rbx, r8
imul rbx, rdx
movzx r9d, byte [rcx]
inc rcx
mov r8, rbx
test r9b, r9b
jne 0x1401633a0
cmp eax, 0x800
jne 0x1401635c3
cmp qword [rsi + 0x10], 0
jne 0x1401638a0
lea rax, [rsp + 0x72]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rax + 6], rcx
mov qword [rax], rcx
mov byte [rax - 1], 0x50
lea rcx, [rsp + 0x71]
cmp rbx, 0x80
jae 0x14016329b
mov rbp, rcx
mov byte [rax], bl
sub rbp, rcx
add rbp, 2
mov r15, qword [rsi]
mov ebx, ebp
mov r12, qword [r15 + 0x18]
lea r14, [r12 + rbx]
cmp r14, qword [r15 + 0x10]
ja 0x14016373d
test rbx, rbx
je 0x140163434
lea rdx, [rsp + 0x71]
mov rcx, r12
mov r8, rbx
call fcn.1401d8080
mov qword [r15 + 0x18], r14
add dword [rsi + 0x20], ebp
mov rbx, qword [rdi]
test rbx, rbx
je 0x140163247
movabs r12, 0x7ffffffffffffff7
mov rcx, rbx
call fcn.1401c0bd0
cmp rax, r12
ja 0x140163a3d
mov r14, rax
lea rdi, [rsp + 0x48]
cmp rax, 0x16
ja 0x140163584
mov byte [rsp + 0x5f], r14b
mov rcx, rdi
lea r15, [rcx + r14]
cmp rbx, rcx
setb al
cmp rbx, r15
setae dl
or dl, al
je 0x140163a3b
test r14, r14
je 0x1401634a4
mov rdx, rbx
mov r8, r14
call fcn.1401d8080
mov byte [r15], 0
movsx rbp, byte [rsp + 0x5f]
test rbp, rbp
cmovs rbp, qword [rsp + 0x50]
cmovs rdi, qword [rsp + 0x48]
cmp qword [rsi + 0x10], 0
jne 0x140163577
lea rax, [rsp + 0x72]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rax + 6], rcx
mov qword [rax], rcx
mov byte [rax - 1], 0x3a
lea rcx, [rsp + 0x71]
cmp ebp, 0x80
jae 0x14016364a
mov r15, rcx
mov edx, ebp
mov byte [rax], dl
sub r15, rcx
add r15, 2
mov r14, qword [rsi]
mov ebx, r15d
mov r12, qword [r14 + 0x18]
lea r13, [r12 + rbx]
cmp r13, qword [r14 + 0x10]
ja 0x140163987
test rbx, rbx
je 0x14016352e
lea rdx, [rsp + 0x71]
mov rcx, r12
mov r8, rbx
call fcn.1401d8080
mov qword [r14 + 0x18], r13
add dword [rsi + 0x20], r15d
mov r13, qword [rsi]
mov ebx, ebp
mov r15, qword [r13 + 0x18]
lea r14, [r15 + rbx]
cmp r14, qword [r13 + 0x10]
ja 0x1401637f5
test rbx, rbx
je 0x140163560
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.1401d8080
mov qword [r13 + 0x18], r14
add dword [rsi + 0x20], ebp
cmp byte [rsp + 0x5f], 0
jns 0x140163247
jmp 0x140163721
mov rcx, rsi
call fcn.140107250
jmp 0x1401634c8
mov rax, r14
or rax, 7
lea rcx, [rax + 1]
cmp rax, 0x17
mov r15d, Ordinal_26
cmovne r15, rcx
mov rcx, r15
call fcn.14019ca88
mov rcx, rax
mov qword [rsp + 0x48], rax
add r12, 9
or r12, r15
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r14
jmp 0x14016347c
cmp eax, 2
jne 0x140163a7a
cmp qword [rsi + 0x10], 0
jne 0x14016396d
lea rax, [rsp + 0x72]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rax + 6], rcx
mov qword [rax], rcx
mov byte [rax - 1], 0x30
lea rcx, [rsp + 0x71]
cmp rbx, 0x80
jae 0x140163627
mov rbp, rcx
mov byte [rax], bl
sub rbp, rcx
add rbp, 2
mov r15, qword [rsi]
mov ebx, ebp
mov r12, qword [r15 + 0x18]
lea r14, [r12 + rbx]
cmp r14, qword [r15 + 0x10]
jbe 0x14016341f
jmp 0x1401638ba
mov rdx, rbx
mov r8d, edx
or r8b, 0x80
mov byte [rax], r8b
shr rbx, 7
inc rax
cmp rdx, 0x3fff
ja 0x140163627
lea rbp, [rax - 1]
jmp 0x140163602
mov edx, ebp
mov r8d, edx
mov r9d, r8d
or r9b, 0x80
mov byte [rax], r9b
shr edx, 7
inc rax
cmp r8d, 0x3fff
ja 0x14016364c
lea r15, [rax - 1]
jmp 0x1401634f8
lea rdx, [rsp + 0x60]
call qword [0x1402a7b00]
jmp 0x1401636c7
test rdi, rdi
je 0x140163243
lea r14, [rbp + 8]
lea rbx, [rsp + 0x71]
mov rax, qword [rbp + 0x10]
cmp r15, rax
jb 0x1401636e9
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [0x140199ad0]
cmp rax, rdx
jne 0x140163671
cmp byte [rcx + 0x18], 1
je 0x140163a9a
mov byte [rcx + 0x18], 1
movups xmm0, xmmword [rcx + 8]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rbp + 0x18]
sub rax, qword [rbp + 8]
add qword [rbp + 0x20], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r14], xmm0
mov r15, qword [rsp + 0x60]
mov qword [rbp + 0x18], r15
mov rax, qword [rbp + 0x10]
mov r12, rax
sub r12, r15
cmp rdi, r12
cmovb r12, rdi
cmp rax, r15
je 0x140163709
mov rcx, r15
mov rdx, rbx
mov r8, r12
call fcn.1401d8080
add r15, r12
mov qword [rbp + 0x18], r15
add rbx, r12
sub rdi, r12
je 0x140163243
jmp 0x140163690
mov rcx, qword [rsp + 0x48]
call fcn.14019cac4
jmp 0x140163247
lea rdx, [rsp + 0x60]
call qword [0x1402a7b00]
jmp 0x14016378a
test rbx, rbx
je 0x140163438
lea rax, [r15 + 8]
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x71]
mov rax, qword [r15 + 0x10]
cmp r12, rax
jb 0x1401637b0
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [0x140199ad0]
cmp rax, rdx
jne 0x140163730
cmp byte [rcx + 0x18], 1
je 0x140163a9a
mov byte [rcx + 0x18], 1
movups xmm0, xmmword [rcx + 8]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r15 + 0x18]
sub rax, qword [r15 + 8]
add qword [r15 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
movups xmmword [rax], xmm0
mov r12, qword [rsp + 0x60]
mov qword [r15 + 0x18], r12
mov rax, qword [r15 + 0x10]
mov r13, rax
sub r13, r12
cmp rbx, r13
cmovb r13, rbx
cmp rax, r12
je 0x1401637d0
mov rcx, r12
mov rdx, r14
mov r8, r13
call fcn.1401d8080
add r12, r13
mov qword [r15 + 0x18], r12
add r14, r13
sub rbx, r13
je 0x140163438
jmp 0x140163754
lea rdx, [rsp + 0x60]
call qword [0x1402a7b00]
jmp 0x140163839
test rbx, rbx
je 0x140163564
lea r14, [r13 + 8]
mov rax, qword [r13 + 0x10]
cmp r15, rax
jb 0x14016385b
mov rcx, qword [r13]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [0x140199ad0]
cmp rax, rdx
jne 0x1401637e8
cmp byte [rcx + 0x18], 1
je 0x140163a9a
mov byte [rcx + 0x18], 1
movups xmm0, xmmword [rcx + 8]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r13 + 0x18]
sub rax, qword [r13 + 8]
add qword [r13 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r14], xmm0
mov r15, qword [rsp + 0x60]
mov qword [r13 + 0x18], r15
mov rax, qword [r13 + 0x10]
mov r12, rax
sub r12, r15
cmp rbx, r12
cmovb r12, rbx
cmp rax, r15
je 0x14016387b
mov rcx, r15
mov rdx, rdi
mov r8, r12
call fcn.1401d8080
add r15, r12
mov qword [r13 + 0x18], r15
add rdi, r12
sub rbx, r12
je 0x140163564
jmp 0x140163802
mov rcx, rsi
call fcn.140107250
jmp 0x1401631de
mov rcx, rsi
call fcn.140107250
jmp 0x1401633d0
lea rdx, [rsp + 0x60]
call qword [0x1402a7b00]
jmp 0x140163907
test rbx, rbx
je 0x140163438
lea rax, [r15 + 8]
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x71]
mov rax, qword [r15 + 0x10]
cmp r12, rax
jb 0x14016392d
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [0x140199ad0]
cmp rax, rdx
jne 0x1401638ad
cmp byte [rcx + 0x18], 1
je 0x140163a9a
mov byte [rcx + 0x18], 1
movups xmm0, xmmword [rcx + 8]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r15 + 0x18]
sub rax, qword [r15 + 8]
add qword [r15 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
movups xmmword [rax], xmm0
mov r12, qword [rsp + 0x60]
mov qword [r15 + 0x18], r12
mov rax, qword [r15 + 0x10]
mov r13, rax
sub r13, r12
cmp rbx, r13
cmovb r13, rbx
cmp rax, r12
je 0x14016394d
mov rcx, r12
mov rdx, r14
mov r8, r13
call fcn.1401d8080
add r12, r13
mov qword [r15 + 0x18], r12
add r14, r13
sub rbx, r13
je 0x140163438
jmp 0x1401638d1
mov rbx, r8
jmp 0x1401633ba
mov rcx, rsi
call fcn.140107250
jmp 0x1401635d7
lea rdx, [rsp + 0x60]
call qword [0x1402a7b00]
jmp 0x1401639d9
test rbx, rbx
je 0x140163532
lea rax, [r14 + 8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x71]
mov qword [rsp + 0x38], rax
mov rax, qword [r14 + 0x10]
cmp r12, rax
jb 0x1401639ff
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [0x140199ad0]
cmp rax, rdx
jne 0x14016397a
cmp byte [rcx + 0x18], 1
je 0x140163a9a
mov byte [rcx + 0x18], 1
movups xmm0, xmmword [rcx + 8]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r14 + 0x18]
sub rax, qword [r14 + 8]
add qword [r14 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
movups xmmword [rax], xmm0
mov r12, qword [rsp + 0x60]
mov qword [r14 + 0x18], r12
mov rax, qword [r14 + 0x10]
mov r13, rax
sub r13, r12
cmp rbx, r13
cmovb r13, rbx
cmp rax, r12
je 0x140163a21
mov rcx, r12
mov rdx, qword [rsp + 0x38]
mov r8, r13
call fcn.1401d8080
add r12, r13
mov qword [r14 + 0x18], r12
add qword [rsp + 0x38], r13
sub rbx, r13
je 0x140163532
jmp 0x1401639a3
ud2
lea rcx, [rsp + 0x48]
call fcn.1401dc2a0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14019f290
mov rcx, rsi
mov edx, 8
mov r8, rdi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401897d0
cmp eax, 0x1000
jne 0x14016343b
mov rcx, rsi
mov edx, Ordinal_14
mov r8, rbx
call fcn.1401897d0
jmp 0x14016343b
call fcn.14019cacc
mov ecx, dword [rax]
call fcn.1401c0aac
mov rsi, rax
call fcn.14019cacc
mov edi, dword [rax]
lea rcx, str....._third_partyperfetto_srcprotozero_static_buffer.cc
call fcn.1401ddd70
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
lea r9, str.Static_buffer_too_small__errno:__d___s_
mov ecx, 3
mov rdx, rax
mov r8d, 0x1d
call fcn.140059fd0
int3