Function at 0x180056530
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.0x18004a5de.0]
test al, al
je 0x180056581
mov qword [r15], 0
jmp 0x180056773
mov eax, dword [r12 + 0x88]
mov dword [rsp + 0x3c], eax
mov rax, qword [r13]
test rax, rax
je 0x1800565b7
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 0x18005659e
jmp 0x1800565b9
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 0x18005679a
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 0x180056706
mov ebp, r14d
and ebp, 0xfffffffe
cmp ebp, r9d
jne 0x180056649
cmp dword [rcx], ebx
jne 0x180056649
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x40], xmm0
jmp 0x18005673b
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 0x1800566e1
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 0x18005671c
mov ebp, r14d
and ebp, 0xfffffffe
cmp ebp, r9d
jne 0x180056686
mov ecx, dword [rcx]
cmp ecx, dword [rsp + 0x38]
jne 0x180056686
jmp 0x18005672d
cmp r14d, 1
je 0x180056854
or r14d, 1
mov dword [rdx], r14d
mov r11, qword [r12 + 0x78]
mov rsi, qword [r12 + 0x80]
mov r10b, 1
xor edi, edi
jmp 0x180056692
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
jmp 0x18005673b
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 0x1800567a7
mov rcx, qword [rsp + 0x58]
cmp dword [rcx], 2
jb 0x1800567a7
mov eax, dword [rax + 4]
mov dword [r15], eax
mov byte [r15 + 4], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18004b970
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.180073470
test al, al
je 0x1800567f8
lea rcx, [r12 + 0x10]
lea rdx, [0x180093990]
mov r8, r13
call fcn.1800108a0
mov rcx, qword [r12 + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x18004a5de.0]
test rax, rax
jne 0x180056833
mov eax, dword [rsp + 0x3c]
jmp 0x18005676b
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.180003b30
mov rcx, r12
mov rdx, rbx
call sym.mozglue.dll_gClearAndSetFailure_UniqueJSONStrings_baseprofiler_mozilla__AEAAXV__basic_string_DU__char_traits_D_std__V__allocat
mov qword [r15], rsi
jmp 0x180056773
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 0x18005681b
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x18005668f