Function at 0x100529f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, ecx
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [esp + 0x28], eax
call fcn.1005b7c0
cmp dword [ebx + 0x3c], 0
je 0x10052b93
mov eax, ebx
mov ebx, dword [ebx + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [eax + 0x64], ecx
mov dword [esp + 8], eax
mov dword [eax + 0x60], ebx
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x58]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x10052a2e
xor eax, eax
mov esi, dword [esp + 8]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], eax
xor ecx, ecx
xor ebx, ebx
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x74]
mov edx, edi
mov esi, dword [esp + 8]
lock cmpxchg8b qword [esi + 0x70]
mov esi, dword [esp + 8]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x10052a59
xor ebx, ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [section..00cfg]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
call edi
lea edx, [esp + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x10052af1
xorps xmm0, xmm0
xor ecx, ecx
inc ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
movups xmmword [eax], xmm0
mov word [eax + 0x18], cx
movups xmmword [eax + 0x20], xmm0
mov word [eax + 0x30], cx
movups xmmword [eax + 0x3c], xmm0
mov eax, dword [eax + 0x50]
test eax, eax
jne 0x10052ab3
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
test ecx, ecx
jne 0x10052c09
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esi + 0x48], eax
mov edi, dword [esi + 0x44]
test edi, edi
mov ebx, esi
je 0x10052bbd
lea esi, [esp + 0x10]
push 1
push esi
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_
add esp, 8
movsd xmm0, qword [esi + 0x10]
movsd qword [edi + 0x30], xmm0
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax], xmm0
xor ecx, ecx
inc ecx
mov word [eax + 0x18], cx
movups xmmword [eax + 0x20], xmm0
mov word [eax + 0x30], cx
movups xmmword [eax + 0x3c], xmm0
mov eax, dword [ebx + 0x44]
movsd xmm0, qword [ebx + 0x50]
movsd qword [eax + 0x40], xmm0
mov esi, dword [ebx + 0x44]
mov eax, dword [esi + 0x38]
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], 0
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
lea edi, [esp + 0x10]
push 1
push edi
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_
add esp, 8
movsd xmm0, qword [edi + 0x10]
movsd qword [esi + 0x18], xmm0
movups xmm0, xmmword [edi]
movups xmmword [esi + 8], xmm0
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test edi, edi
jne 0x10052bf7
cmp byte [ebx + 0x38], 0
je 0x10052baa
mov dword [ebx + 0x30], 0
add ebx, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.100468e0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x10052b83
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x50], 0
mov edi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
test edi, edi
je 0x10052b42
mov ecx, edi
call fcn.1005c060
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10052b42
mov ecx, edi
call fcn.1005c060
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10052b93
push edx
call fcn.1005c090
mov eax, dword [esi + 0x48]
jmp 0x10052aee