Function at 0x180056b30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r13, r8
mov r15, rdx
mov r12, rcx
mov rax, qword [0x1800a6010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
add rcx, 8
mov rax, qword [r12 + 8]
mov rax, qword [rax + 0x18]
call qword [case.0x18004aa4e.0]
test al, al
je 0x180056b81
mov qword [r15], 0
jmp 0x180056d73
mov eax, dword [r12 + 0x88]
mov dword [rsp + 0x3c], eax
mov rax, qword [r13]
test rax, rax
je 0x180056bb7
mov rcx, qword [r13 + 8]
xor edx, edx
xor ebx, ebx
movzx ebp, byte [rcx + rdx]
rol ebx, 5
xor ebx, ebp
imul ebx, ebx, 0x9e3779b9
inc rdx
cmp rax, rdx
jne 0x180056b9e
jmp 0x180056bb9
xor ebx, ebx
lea rcx, [r12 + 0x78]
imul eax, ebx, 0x9e3779b9
lea r9d, [rax - 2]
cmp eax, 2
cmovae r9d, eax
mov dword [rsp + 0x38], ebx
and r9d, 0xfffffffe
mov rsi, qword [r12 + 0x80]
test rsi, rsi
mov qword [rsp + 0x30], rcx
je 0x180056d9a
mov r11, qword [rcx]
mov rdi, r11
shr rdi, 0x38
mov eax, r9d
mov ecx, edi
shr eax, cl
mov ecx, edi
neg ecx
mov edx, 1
shl edx, cl
lea rcx, [rsi + rdx*4]
lea rdx, [rsi + rax*4]
lea rcx, [rcx + rax*8]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
mov r14d, dword [rdx]
test r14d, r14d
je 0x180056d06
mov ebp, r14d
and ebp, 0xfffffffe
cmp ebp, r9d
jne 0x180056c49
cmp dword [rcx], ebx
jne 0x180056c49
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x40], xmm0
jmp 0x180056d3b
mov qword [rsp + 0x28], r13
mov r8d, 0x20
sub r8d, edi
mov ebx, r9d
mov ecx, r8d
shl ebx, cl
mov ecx, edi
shr ebx, cl
or ebx, 1
mov r13d, 0xffffffff
mov ecx, r8d
shl r13d, cl
not r13d
xor edi, edi
mov byte [rsp + 0x50], dil
mov byte [rsp + 0x60], dil
lea r8, [rsp + 0x70]
mov ecx, edi
mov dil, 1
test cl, cl
je 0x180056ce1
xor r10d, r10d
sub eax, ebx
mov rcx, r11
shr rcx, 0x38
neg cl
mov edx, 1
shl edx, cl
and eax, r13d
test rsi, rsi
cmove rdx, rsi
lea rcx, [rsi + rdx*4]
lea rdx, [rsi + rax*4]
lea rcx, [rcx + rax*8]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
mov r14d, dword [rdx]
test r14d, r14d
je 0x180056d1c
mov ebp, r14d
and ebp, 0xfffffffe
cmp ebp, r9d
jne 0x180056c86
mov ecx, dword [rcx]
cmp ecx, dword [rsp + 0x38]
jne 0x180056c86
jmp 0x180056d2d
cmp r14d, 1
je 0x180056e54
or r14d, 1
mov dword [rdx], r14d
mov r11, qword [r12 + 0x78]
mov rsi, qword [r12 + 0x80]
mov r10b, 1
xor edi, edi
jmp 0x180056c92
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
jmp 0x180056d3b
test r10b, r10b
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x50]
cmovne r8, rax
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x40], xmm0
mov r13, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r9d
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x180056da7
mov rcx, qword [rsp + 0x58]
cmp dword [rcx], 2
jb 0x180056da7
mov eax, dword [rax + 4]
mov dword [r15], eax
mov byte [r15 + 4], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18004bde0
mov rax, r15
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], r9d
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
call fcn.180073a70
test al, al
je 0x180056df8
lea rcx, [r12 + 0x10]
lea rdx, [0x180093890]
mov r8, r13
call fcn.18000f770
mov rcx, qword [r12 + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x18004aa4e.0]
test rax, rax
jne 0x180056e33
mov eax, dword [rsp + 0x3c]
jmp 0x180056d6b
xor esi, esi
lea rbx, [rsp + 0xa0]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
lea rdx, str.OOM_in_UniqueJSONStrings::GetOrAddIndex_adding_a_map
mov rcx, rbx
call fcn.180003b40
mov rcx, r12
mov rdx, rbx
call sym.mozglue.dll_private:_void___cdecl_mozilla::baseprofiler::UniqueJSONStrings::ClearAndSetFailure_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64
mov qword [r15], rsi
jmp 0x180056d73
xor esi, esi
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, rbx
mov rdx, rax
jmp 0x180056e1b
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x180056c8f