Function at 0x1012e260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x1038100c]
xor eax, ebp
mov dword [esp + 0xd0], eax
mov edi, dword [edx + 0x1e58]
mov dword [esp + 0x24], 0
test esi, esi
mov dword [esp + 4], ecx
je 0x1012e34a
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
call dword [section..00cfg]
lea eax, [esp + 0x24]
push eax
push esi
push ebx
push edi
call ecx
test eax, eax
js 0x1012e70e
test esi, esi
je 0x1012e4df
mov esi, dword [ebp + 0x10]
push dword [esi + 0x10]
call fcn.1014cf10
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1012e62b
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 8], esi
mov edx, dword [esp + 0x1c]
shr edx, cl
test edx, edx
mov esi, 1
cmove edx, esi
mov eax, dword [esp + 0x18]
shr eax, cl
test eax, eax
cmove eax, esi
mov ebx, dword [esp + 0x10]
shr ebx, cl
test ebx, ebx
cmove ebx, esi
imul eax, edx
imul eax, ebx
mul dword [esp + 0xc]
add edi, eax
mov esi, dword [esp + 8]
adc esi, edx
inc ecx
cmp dword [esp + 0x14], ecx
jne 0x1012e302
jmp 0x1012e62f
xor esi, esi
cmp byte [ecx], 0
je 0x1012e2a0
test byte [ebx + 0x18], 0x20
jne 0x1012e2a0
mov dword [esp + 0x20], edi
push dword [ebx + 0x10]
call fcn.1014cf10
add esp, 4
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1012e42d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov edi, 1
mov edx, dword [esp + 0x1c]
shr edx, cl
test edx, edx
mov ebx, 1
cmove edx, ebx
mov eax, dword [esp + 0x18]
shr eax, cl
test eax, eax
cmove eax, ebx
mov ebx, dword [esp + 0x10]
shr ebx, cl
test ebx, ebx
cmove ebx, edi
imul eax, edx
imul eax, ebx
mul dword [esp + 0xc]
add dword [esp + 8], eax
adc esi, edx
inc ecx
cmp dword [esp + 0x14], ecx
jne 0x1012e3a8
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
cmp dword [eax + 0xd0], edx
mov ebx, dword [ebp + 0x10]
jae 0x1012e42d
mov eax, dword [esp + 4]
lea esi, [eax + 0xd0]
mov ecx, esi
push edx
call fcn.10226170
test al, al
je 0x1012e6d2
mov eax, dword [esi]
test eax, eax
je 0x1012e42d
push eax
push 0x48
mov eax, dword [esp + 0xc]
push dword [eax + 0xd4]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebx + 0x10]
call fcn.1014cf10
add esp, 4
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 4]
mov esi, dword [ecx + 0xdc]
sub esi, dword [ecx + 0xd8]
add ecx, 0xd8
sar esi, 2
imul esi, esi, 0xaaaaaaab
cmp esi, edx
mov dword [esp + 0xc], ecx
mov esi, eax
jae 0x1012e46c
call fcn.1012e870
mov edx, dword [ebx + 0xc]
mov dword [esp + 8], esi
test edx, edx
mov edx, dword [esp + 4]
je 0x1012e4d0
xor ecx, ecx
mov eax, 8
mov esi, dword [ebx]
shr esi, cl
test esi, esi
mov edi, 1
cmove esi, edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [edi + 4]
shr ebx, cl
test ebx, ebx
mov edi, 1
cmove ebx, edi
mov edi, dword [edx + 0xd8]
mov edx, dword [esp + 8]
imul esi, dword [edx]
mov edx, dword [esp + 4]
mov dword [edi + eax - 4], esi
imul esi, ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + eax], esi
mov esi, dword [edx + 0xd4]
mov dword [edi + eax - 8], esi
inc ecx
add eax, 0xc
cmp ecx, dword [ebx + 0xc]
jb 0x1012e47f
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [esp + 0x20]
jmp 0x1012e2a0
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x1012e2c5
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x1e98]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x28]
mov dword [esi], 0x102de858
push 8
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esi + 4], eax
mov dword [esi], 0x102de858
lea ecx, [edi + 0x2280]
push esi
push ebx
push edx
push edi
push dword [ebp + 8]
call fcn.1012d5b0
mov dword [esp + 8], eax
cmp eax, 1
je 0x1012e55e
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax + 0xc8]
call dword [section..00cfg]
push 0x102e97d4
push esi
push edi
call ecx
mov dword [esp + 0x28], 0x102de858
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test edi, edi
je 0x1012e618
mov ebx, dword [edi]
test ebx, ebx
je 0x1012e5bb
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e5ad
lock dec dword [esi + 0x2c]
mov ebx, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x98]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012e58b
mov ebx, dword [edi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x1012e618
mov ebx, dword [edi]
test ebx, ebx
je 0x1012e60e
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e600
lock dec dword [esi + 0x2c]
mov ebx, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x98]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012e5de
mov ebx, dword [edi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [esp + 8], 1
jne 0x1012e2c5
xor esi, esi
inc esi
jmp 0x1012e6b8
xor edi, edi
xor esi, esi
mov ecx, dword [esp + 4]
lock inc dword [ecx + 0x40]
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov eax, dword [ecx + 0xc0]
mov dword [esp + 0xc], eax
mov edx, dword [ecx + 0xc4]
mov ebx, eax
add ebx, edi
mov ecx, edx
adc ecx, esi
mov esi, edx
mov edi, dword [esp + 4]
lock cmpxchg8b qword [edi + 0xc0]
mov ecx, dword [esp + 4]
xor edx, esi
xor eax, dword [esp + 0xc]
or eax, edx
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x10]
jne 0x1012e63f
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x28]
mov dword [esi], 0x102e9744
push 8
mov ebx, ecx
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov dword [esi], 0x102e9744
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0x18]
mov edx, ecx
mov ecx, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
mov ecx, esi
call fcn.1012b3c0
xor esi, esi
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.1021e470
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lea edi, [esp + 0x28]
mov ecx, edi
push 3
push 0x200
push str.createInitDataIfNeeded
push str._builds_worker_checkouts_gecko_gfx_angle_checkout_src_libANGLE_renderer_d3d_d3d11_ResourceManager11.cpp
call fcn.10226940
lea eax, [esp + 0x38]
push str.Failed_to_allocate_D3D_texture_initialization_data.
push eax
call fcn.10003890
add esp, 8
mov ecx, edi
call fcn.102269f0
xor esi, esi
jmp 0x1012e4d6
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 0x194
push str.allocate
push str._builds_worker_checkouts_gecko_gfx_angle_checkout_src_libANGLE_renderer_d3d_d3d11_ResourceManager11.cpp
push str.Error_allocating_Texture3D
push ebx
call esi
jmp 0x1012e623