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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
xor edi, edi
mov dword [rbp - 0x20], edi
lea edx, [rdi + 2]
lea ecx, [rdi + 6]
xor r9d, r9d
call fcn.140013574
test al, al
je 0x1400504c6
call fcn.140024040
mov rsi, rax
cmp qword [rbx + 0x18], 8
jb 0x14005028d
mov rbx, qword [rbx]
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], dil
lea rdx, str.RtlInitUnicodeString
lea rcx, [rbp - 0x50]
call fcn.140006a18
nop
call fcn.140046300
lea r12, [rsi + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
movabs r15, 0xcbf29ce484222325
mov r9, r15
mov rcx, rdi
movabs r14, 0x100000001b3
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x140050304
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r14
inc rcx
cmp rcx, r8
jb 0x1400502f1
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140025670
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140050323
mov rax, qword [rsi + 8]
jmp 0x14005032a
mov rcx, qword [rsi + 8]
mov rax, rcx
cmp rcx, rax
je 0x14005034c
mov rsi, qword [rcx + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x140050356
mov rdx, rbx
lea rcx, [rbp - 0x18]
call rsi
jmp 0x140050356
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140050391
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005038c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050623
call fcn.14006a794
call fcn.140024040
mov rbx, rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
lea rdx, str.RtlHashUnicodeString
lea rcx, [rbp - 0x50]
call fcn.140006a18
nop
call fcn.140046300
lea rsi, [rbx + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x140050403
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
xor r15, rax
imul r15, r14
inc rdi
cmp rdi, rdx
jb 0x1400503f0
mov r9, r15
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140025670
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140050425
mov rax, qword [rbx + 8]
jmp 0x14005042c
mov rcx, qword [rbx + 8]
mov rax, rcx
cmp rcx, rax
je 0x140050454
mov rbx, qword [rcx + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14005045e
lea r9, [rbp - 0x20]
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call rbx
jmp 0x14005045e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140050499
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050494
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050617
call fcn.14006a794
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006a770
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400504d3
mov rsi, qword [rbx]
mov rcx, rbx
jb 0x1400504db
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r13, [rcx + rax*2]
cmp rsi, r13
je 0x140050499
movabs r15, 0xcbf29ce484222325
movabs r14, 0x100000001b3
nop dword [rax]
call fcn.140024040
mov rbx, rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
lea rdx, str.RtlUpcaseUnicodeChar
lea rcx, [rbp - 0x50]
call fcn.140006a18
nop
call fcn.140046300
lea r12, [rbx + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
mov r9, r15
mov rcx, rdi
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x140050573
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r14
inc rcx
cmp rcx, r8
jb 0x140050560
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140025670
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140050592
mov rax, qword [rbx + 8]
jmp 0x140050599
mov rcx, qword [rbx + 8]
mov rax, rcx
cmp rcx, rax
je 0x1400505b7
mov rbx, qword [rcx + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400505c0
movzx ecx, word [rsi]
call rbx
jmp 0x1400505c2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
movzx eax, ax
imul ecx, eax, 0x1003f
add dword [rbp - 0x20], ecx
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140050605
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050600
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005061d
call fcn.14006a794
add rsi, 2
cmp rsi, r13
je 0x140050499
jmp 0x140050500
call fcn.140095e24
int3
call fcn.140095e24
int3
call fcn.140095e24
int3