Function at 0x1006b120
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, edx
mov edi, ecx
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [esp + 0x20], eax
push ecx
call fcn.1006b030
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1006b15f
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.100468e0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 8], edi
mov ecx, edi
push 8
mov edi, eax
push eax
call fcn.1005ebc0
mov dword [esp], esi
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
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 0x1006b17e
mov edi, dword [esp]
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ecx
mov ecx, edi
call fcn.1005b7c0
mov esi, dword [edi + 0x3c]
cmp byte [edi + 0x38], 0
je 0x1006b1c3
lea eax, [edi + 0x18]
mov dword [edi + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test esi, esi
jne 0x1006b208
lea esi, [esp + 0x14]
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.10052cf0
mov eax, dword [esi]
lea esi, [esp + 0x18]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
call fcn.100628b0
mov ebx, dword [esi]
test ebx, ebx
je 0x1006b1ff
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push 1
call esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esp]
jmp 0x1006b26f
mov ecx, edi
call fcn.1005b7c0
mov ebx, dword [edi + 0x3c]
xor esi, esi
mov edi, 0
test ebx, ebx
je 0x1006b239
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
movzx esi, al
mov edi, eax
and edi, 0xffffff00
mov eax, dword [esp]
cmp byte [eax + 0x38], 0
je 0x1006b256
mov ecx, dword [esp]
lea eax, [ecx + 0x18]
mov dword [ecx + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x1006b320
or edi, esi
mov esi, dword [esp + 0xc]
cmp edi, esi
mov ebx, dword [esp]
jb 0x1006b335
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x14]
mov dword [edi], ebx
mov ecx, ebx
call fcn.1005b7c0
lea edx, [esp + 0x10]
mov dword [edx], esi
mov ecx, ebx
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.1006b350
add esp, 8
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x1006b2bb
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, 8
mov edi, dword [esp + 8]
mov ecx, edi
push eax
lea esi, [esp + 0x1c]
push esi
call fcn.1005ebc0
movsd xmm0, qword [esp + 0x18]
movsd qword [ebx + 0x68], xmm0
mov ecx, edi
mov eax, 8
push eax
push esi
call fcn.1005ebc0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp]
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x74]
mov edx, edi
lock cmpxchg8b qword [esi + 0x70]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1006b2f5
xor eax, eax
mov ecx, dword [esp]
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x78], eax
jmp 0x1006b14c
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_isSome___
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_aBuffer.BufferLength__.value_____len_
int3