Function at 0x10037fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov edx, dword [ebp + 8]
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
test eax, eax
je 0x10038002
mov ecx, dword [edx + 4]
xor esi, esi
xor edx, edx
movzx edi, byte [ecx + esi]
rol edx, 5
xor edx, edi
imul edx, edx, 0x9e3779b9
inc esi
cmp eax, esi
jne 0x10037fec
jmp 0x10038004
xor edx, edx
mov ecx, dword [ebp - 0x34]
lea ebx, [ecx + 0x38]
imul edi, edx, 0x9e3779b9
lea eax, [edi - 2]
cmp edi, 1
cmovbe edi, eax
mov dword [ebp - 0x18], edx
and edi, 0xfffffffe
mov esi, dword [ecx + 0x40]
test esi, esi
mov dword [ebp - 0x38], ebx
je 0x1003815d
mov ecx, dword [ebx + 4]
shr ecx, 0x18
mov dword [ebp - 0x30], edi
shr edi, cl
mov dword [ebp - 0x28], ecx
neg ecx
xor eax, eax
inc eax
shl eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x40], esi
lea esi, [esi + edi*4]
lea ebx, [eax + edi*8]
mov eax, dword [esi]
test eax, eax
je 0x1003812d
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, dword [ebp - 0x30]
jne 0x1003806c
mov ecx, ebx
cmp dword [ebx], edx
je 0x1003812d
mov ecx, 0x20
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
shl edx, cl
mov ecx, dword [ebp - 0x28]
shr edx, cl
xor ecx, ecx
dec ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x2c]
shl dword [ebp - 0x28], cl
or edx, 1
mov dword [ebp - 0x2c], edx
not dword [ebp - 0x28]
mov dword [ebp - 0x3c], 0
xor edx, edx
test dl, dl
je 0x100380e7
sub edi, dword [ebp - 0x2c]
and edi, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
mov al, byte [eax + 7]
xor ecx, ecx
sub cl, al
xor eax, eax
inc eax
shl eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x40], esi
lea esi, [esi + edi*4]
lea ebx, [eax + edi*8]
mov eax, dword [esi]
test eax, eax
je 0x10038112
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, dword [ebp - 0x30]
jne 0x100380a2
mov ecx, ebx
mov ecx, dword [ebx]
cmp ecx, dword [ebp - 0x18]
jne 0x100380a2
jmp 0x1003812d
cmp eax, 1
je 0x10038197
or eax, 1
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x40]
sub edi, dword [ebp - 0x2c]
and edi, dword [ebp - 0x28]
xor edx, edx
test esi, esi
je 0x1003810c
mov eax, dword [ebp - 0x38]
jmp 0x100380b4
xor esi, esi
xor eax, eax
jmp 0x100380c0
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [ebp - 0x3c]
or eax, ecx
test dl, dl
cmovne ebx, eax
cmovne esi, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x10038168
cmp dword [esi], 2
jb 0x10038168
add ebx, 4
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
push ebx
push eax
call fcn.1003cbd0
add esp, 8
test al, al
je 0x100381ae
mov ecx, dword [ebp - 0x34]
add ecx, 4
push dword [ebp + 8]
push 0x1006d690
call fcn.10036510
jmp 0x10038145
mov eax, ebx
shrd eax, esi, 8
mov dword [ebp - 0x48], eax
shr esi, 8
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], ebx
jmp 0x100380a6
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_mStringHashToIndexMap.add_entry__hash__count__
int3