Function at 0x100423c0
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 [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp byte [ecx + 0x38], 0
je 0x100423f4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [ebx + 0x30], edi
cmp dword [ebx + 0x3c], 0
je 0x1004256a
mov eax, ebx
mov ebx, dword [ebx + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [eax + 0x64], ecx
mov dword [esp], eax
mov dword [eax + 0x60], ebx
mov esi, dword [esp]
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 0x10042412
xor eax, eax
mov ecx, dword [esp]
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x68], eax
xor ebx, ebx
mov esi, dword [esp]
mov eax, dword [ecx + 0x70]
mov dword [esp + 4], eax
mov edi, dword [ecx + 0x74]
mov edx, edi
xor ecx, ecx
lock cmpxchg8b qword [esi + 0x70]
mov ecx, dword [esp]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1004243d
xor eax, eax
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x78], eax
mov esi, dword [ecx + 0x3c]
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [section..00cfg]
lea ebx, [esp + 0xc]
mov ecx, esi
push ebx
call edi
mov eax, dword [ebx]
test eax, eax
je 0x100424f4
xorps xmm0, xmm0
mov ecx, dword [esp]
movups xmmword [eax + 9], xmm0
movups xmmword [eax], xmm0
mov word [eax + 0x19], 1
movups xmmword [eax + 0x24], xmm0
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x1004248a
lea edi, [ecx + 0x48]
mov edx, dword [ecx + 0x48]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x100425e3
test eax, eax
je 0x100424d4
mov ecx, edx
mov edx, dword [edx + 0x38]
test edx, edx
jne 0x100424b8
add ecx, 0x38
mov dword [esp + 0xc], 0
push eax
call fcn.10014560
mov edx, dword [edi]
mov dword [edi], 0
mov eax, edx
xor ebx, ebx
lea esi, [esp + 0x10]
mov dword [esi], ebx
mov ecx, edi
push eax
call fcn.10014560
mov ecx, esi
push ebx
call fcn.10014560
mov ebx, dword [esp]
lea edi, [ebx + 0x44]
mov esi, dword [ebx + 0x44]
test esi, esi
je 0x10042594
lea ebx, [esp + 0x10]
push 1
push ebx
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::NowUnfuzzed_bool_
add esp, 8
movsd xmm0, qword [ebx + 0x10]
movsd qword [esi + 0x18], xmm0
movups xmm0, xmmword [ebx]
movups xmmword [esi + 8], xmm0
mov eax, dword [edi]
xorps xmm0, xmm0
movups xmmword [eax + 9], xmm0
movups xmmword [eax], xmm0
mov word [eax + 0x19], 1
movups xmmword [eax + 0x24], xmm0
mov ebx, dword [esp]
mov eax, dword [ebx + 0x44]
movsd xmm0, qword [ebx + 0x50]
movsd qword [eax + 0x28], xmm0
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0x20]
add dword [ebx + 0x50], ecx
adc dword [ebx + 0x54], 0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea ecx, [esp + 0xc]
push 0
call fcn.10014560
cmp byte [ebx + 0x38], 0
je 0x10042581
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.1002cad0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x1004255f
lea ecx, [ebx + 0x48]
mov edx, dword [eax + 0x38]
xor ebx, ebx
mov dword [eax + 0x38], ebx
mov esi, dword [ecx]
mov dword [ecx], ebx
lea eax, [esp + 0x10]
mov dword [eax], esi
lea eax, [esp + 8]
mov dword [eax], ebx
push edx
call fcn.10014560
lea eax, [esp + 0x10]
mov dword [eax], ebx
mov ecx, edi
push esi
call fcn.10014560
lea ecx, [esp + 0x10]
push ebx
call fcn.10014560
lea ecx, [esp + 8]
push ebx
call fcn.10014560
jmp 0x1004253b
mov dword [esp + 0xc], 0
jmp 0x100424dc