Function at 0x1005a4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x28]
call esi
test al, al
je 0x1005a4e1
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
jmp 0x1005a648
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x1005a50d
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 0x1005a4f7
jmp 0x1005a50f
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 - 0x38], ebx
mov ebx, dword [ebx + 0x50]
test ebx, ebx
mov dword [ebp - 0x48], edx
je 0x1005a676
mov ecx, dword [edx + 4]
shr ecx, 0x18
mov dword [ebp - 0x30], esi
shr esi, cl
mov dword [ebp - 0x2c], ecx
neg ecx
xor edx, edx
inc edx
shl edx, cl
lea ecx, [ebx + edx*4]
mov dword [ebp - 0x34], ebx
lea edi, [ebx + esi*4]
lea ecx, [ecx + esi*8]
mov edx, dword [edi]
test edx, edx
je 0x1005a62b
mov dword [ebp - 0x3c], ecx
mov ecx, edx
and ecx, 0xfffffffe
cmp ecx, dword [ebp - 0x30]
jne 0x1005a57f
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], eax
jne 0x1005a57f
mov ecx, dword [ebp - 0x3c]
jmp 0x1005a62b
mov ebx, 0x20
sub ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x2c]
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 - 0x28], 0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov bl, 1
mov dword [ebp - 0x28], ebx
test al, al
je 0x1005a601
xor eax, eax
mov ebx, dword [ebp - 0x34]
sub esi, dword [ebp - 0x50]
and esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2c]
neg cl
xor edx, edx
inc edx
shl edx, cl
test ebx, ebx
cmove edx, ebx
lea ecx, [ebx + edx*4]
mov dword [ebp - 0x34], ebx
lea edi, [ebx + esi*4]
lea ecx, [ecx + esi*8]
mov edx, dword [edi]
test edx, edx
je 0x1005a627
mov eax, edx
and eax, 0xfffffffe
cmp eax, dword [ebp - 0x30]
jne 0x1005a5b6
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x18]
jne 0x1005a5b6
jmp 0x1005a62b
cmp edx, 1
je 0x1005a7e2
or edx, 1
mov dword [edi], edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax + 0x50]
movzx eax, byte [eax + 0x4f]
mov dword [ebp - 0x2c], eax
mov al, 1
mov dword [ebp - 0x28], 0
jmp 0x1005a5c7
test al, al
je 0x1005a65e
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
cmp dword [edi], 2
jb 0x1005a681
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.1004fb50
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 - 0x30]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x1005a637
jmp 0x1005a681
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.10076480
add esp, 8
test al, al
je 0x1005a6ce
mov esi, dword [ebp - 0x38]
lea ecx, [esi + 8]
push dword [ebp + 0xc]
push 0x10093768
call fcn.10011c90
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 0x1005a72f
mov eax, dword [ebp - 0x14]
jmp 0x1005a63f
mov esi, esp
push eax
sub esp, 0x14
mov edi, esp
push 0x40
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov dword [edi + 0x10], 0x34
mov dword [edi + 0x14], 0x3f
movups xmm0, xmmword [str.OOM_in_UniqueJSONStrings::GetOrAddIndex_adding_a_map]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x1009649c]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x100964ac]
movups xmmword [eax + 0x20], xmm0
mov dword [eax + 0x30], 0x70616d20
mov byte [eax + 0x34], 0
mov dword [edi], eax
mov ecx, dword [ebp - 0x38]
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
xor eax, eax
mov edi, dword [ebp + 8]
jmp 0x1005a4d7
mov ebx, eax
mov esi, esp
sub esp, 0x18
mov edi, esp
mov dword [edi], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xf
jbe 0x1005a794
mov dword [ebp - 0x28], esi
test eax, eax
js 0x1005a7ef
mov dword [ebp - 0x34], eax
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
cmp ecx, 0xfff
mov dword [ebp - 0x2c], ecx
jb 0x1005a7ad
lea eax, [ecx + 0x24]
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x1005a7bb
mov dword [edi + 0x10], eax
push eax
push ebx
push edi
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x1005a71b
lea eax, [ecx + 1]
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov ecx, eax
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x14], eax
push esi
push ebx
push ecx
mov ebx, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov dword [edi], ebx
mov esi, dword [ebp - 0x28]
jmp 0x1005a71b
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ecx
jmp 0x1005a5c4
call fcn.10057100
int3