Function at 0x10041ed0
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 [0x1007d00c]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp byte [ecx + 0x38], 0
je 0x10041f04
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 0x10042082
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 0x10041f22
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 0x10041f4d
xor ebx, ebx
mov dword [ecx + 0x7c], ebx
mov dword [ecx + 0x78], ebx
mov esi, dword [ecx + 0x3c]
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [section..00cfg]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov esi, eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x10042008
xorps xmm0, xmm0
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
movups xmmword [eax], xmm0
mov word [eax + 0x18], 1
movups xmmword [eax + 0x24], xmm0
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x10041f99
mov eax, dword [esp]
lea edi, [eax + 0x48]
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x100420fb
test eax, eax
je 0x10041fe8
mov ecx, edx
mov edx, dword [edx + 0x38]
test edx, edx
jne 0x10041fcc
add ecx, 0x38
mov dword [esp + 0xc], 0
push eax
call fcn.10011910
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.10011910
mov ecx, esi
push ebx
call fcn.10011910
mov ebx, dword [esp]
lea edi, [ebx + 0x44]
mov esi, dword [ebx + 0x44]
test esi, esi
je 0x100420ac
lea ebx, [esp + 0x10]
push 1
push ebx
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_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]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov word [eax + 0x18], 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.10011910
cmp byte [ebx + 0x38], 0
je 0x10042099
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.1002f5c0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x10042077
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.10011910
lea eax, [esp + 0x10]
mov dword [eax], ebx
mov ecx, edi
push esi
call fcn.10011910
lea ecx, [esp + 0x10]
push ebx
call fcn.10011910
lea ecx, [esp + 8]
push ebx
call fcn.10011910
jmp 0x10042053
mov dword [esp + 0xc], 0
jmp 0x10041ff0