Function at 0x100515e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov edi, ecx
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ecx + 4]
mov eax, dword [ecx + 4]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
test al, al
je 0x1005161d
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 4], eax
mov dword [edi], eax
jmp 0x10051786
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
test ecx, ecx
mov ebx, edi
je 0x1005164b
mov edx, dword [edx + 4]
xor esi, esi
xor eax, eax
movzx edi, byte [edx + esi]
rol eax, 5
xor eax, edi
imul eax, eax, 0x9e3779b9
inc esi
cmp ecx, esi
jne 0x10051635
jmp 0x1005164d
xor eax, eax
lea edx, [ebx + 0x48]
imul esi, eax, 0x9e3779b9
lea ecx, [esi - 2]
cmp esi, 2
cmovb esi, ecx
mov dword [ebp - 0x18], eax
and esi, 0xfffffffe
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebx + 0x50]
test ebx, ebx
mov dword [ebp - 0x48], edx
je 0x100517b4
mov ecx, dword [edx + 4]
shr ecx, 0x18
mov dword [ebp - 0x28], esi
shr esi, cl
mov dword [ebp - 0x30], ecx
neg ecx
xor edx, edx
inc edx
shl edx, cl
lea ecx, [ebx + edx*4]
mov dword [ebp - 0x38], ebx
lea edi, [ebx + esi*4]
lea ecx, [ecx + esi*8]
mov edx, dword [edi]
test edx, edx
je 0x10051769
mov dword [ebp - 0x34], ecx
mov ecx, edx
and ecx, 0xfffffffe
cmp ecx, dword [ebp - 0x28]
jne 0x100516bd
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], eax
jne 0x100516bd
mov ecx, dword [ebp - 0x34]
jmp 0x10051769
mov ebx, 0x20
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x30]
shr eax, cl
mov ecx, ebx
xor ebx, ebx
dec ebx
shl ebx, cl
or eax, 1
mov dword [ebp - 0x50], eax
not ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
mov bl, 1
mov dword [ebp - 0x3c], ebx
test al, al
je 0x1005173f
xor eax, eax
mov ebx, dword [ebp - 0x38]
sub esi, dword [ebp - 0x50]
and esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
neg cl
xor edx, edx
inc edx
shl edx, cl
test ebx, ebx
cmove edx, ebx
lea ecx, [ebx + edx*4]
mov dword [ebp - 0x38], ebx
lea edi, [ebx + esi*4]
lea ecx, [ecx + esi*8]
mov edx, dword [edi]
test edx, edx
je 0x10051765
mov eax, edx
and eax, 0xfffffffe
cmp eax, dword [ebp - 0x28]
jne 0x100516f4
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x18]
jne 0x100516f4
jmp 0x10051769
cmp edx, 1
je 0x10051863
or edx, 1
mov dword [edi], edx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 0x50]
movzx eax, byte [eax + 0x4f]
mov dword [ebp - 0x30], eax
mov al, 1
mov dword [ebp - 0x3c], 0
jmp 0x10051705
test al, al
je 0x1005179c
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
cmp dword [edi], 2
jb 0x100517bf
mov eax, dword [ecx + 4]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov byte [edi + 4], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100468e0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x10051775
jmp 0x100517bf
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
push eax
push esi
call fcn.1006bc90
add esp, 8
test al, al
mov edi, dword [ebp + 8]
je 0x1005180f
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 8]
push dword [ebp + 0xc]
push 0x10088748
call fcn.1000c830
mov esi, dword [esi + 0x3c]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
jne 0x1005182d
mov eax, dword [ebp - 0x14]
jmp 0x10051780
mov esi, esp
push eax
sub esp, 0x14
mov ecx, esp
xor edi, edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push str.OOM_in_UniqueJSONStrings::GetOrAddIndex_adding_a_map
jmp 0x10051844
mov esi, esp
sub esp, 0x18
mov ecx, esp
xor edi, edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push eax
call fcn.10002810
mov ecx, dword [ebp - 0x2c]
call sym.mozglue.dll_private:_void___thiscall_mozilla::baseprofiler::UniqueJSONStrings::ClearAndSetFailure_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
mov esp, esi
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov dword [eax], edi
mov edi, dword [ebp + 8]
jmp 0x10051786
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ecx
jmp 0x10051702