Function at 0x1012da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov dword [esp + 4], ecx
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x1038100c]
xor eax, ebp
mov dword [esp + 0xd0], eax
mov edi, dword [ecx + 0x1e58]
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x1012db0a
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
call dword [section..00cfg]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push edi
call ecx
test eax, eax
js 0x1012e232
test ebx, ebx
je 0x1012dcb7
mov edi, dword [ebp + 0x10]
push dword [edi + 0x10]
call fcn.1014cf10
add esp, 4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1012ddd3
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
xor edi, edi
xor edx, edx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov ebx, edx
mov edx, dword [esp + 8]
shr edx, cl
test edx, edx
mov esi, 1
cmove edx, esi
mov esi, edi
mov eax, dword [esp + 0x10]
shr eax, cl
test eax, eax
mov edi, 1
cmove eax, edi
imul eax, edx
mul dword [esp + 0xc]
add esi, eax
mov edi, esi
adc ebx, edx
mov edx, ebx
inc ecx
cmp dword [esp + 0x14], ecx
jne 0x1012dacb
jmp 0x1012ddd7
xor ebx, ebx
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x1012de78
mov esi, dword [ebp + 0x10]
test byte [esi + 0x20], 0x60
jne 0x1012da70
mov dword [esp + 0x18], edi
push dword [esi + 0x10]
call fcn.1014cf10
add esp, 4
mov edi, dword [esi + 8]
test edi, edi
je 0x1012dbce
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], edi
xor ecx, ecx
mov edi, 1
mov edx, dword [esp + 8]
shr edx, cl
test edx, edx
cmove edx, edi
mov eax, dword [esp + 0x10]
shr eax, cl
test eax, eax
cmove eax, edi
imul eax, edx
mul dword [esp + 0xc]
add ebx, eax
adc esi, edx
inc ecx
cmp dword [esp + 0x14], ecx
jne 0x1012db65
mov eax, dword [esp + 4]
cmp dword [eax + 0xd0], ebx
jae 0x1012dbce
mov eax, dword [esp + 4]
lea edi, [eax + 0xd0]
mov ecx, edi
push ebx
call fcn.10226170
test al, al
je 0x1012e1f6
mov eax, dword [edi]
test eax, eax
je 0x1012dbce
push eax
push 0x48
mov eax, dword [esp + 0xc]
push dword [eax + 0xd4]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, dword [ebp + 0x10]
push dword [edi + 0x10]
call fcn.1014cf10
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
imul edx, eax
mov esi, dword [esp + 4]
mov ecx, dword [esi + 0xdc]
sub ecx, dword [esi + 0xd8]
add esi, 0xd8
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
cmp ecx, edx
jae 0x1012dc16
mov ecx, esi
call fcn.1012e870
mov eax, dword [edi + 8]
mov dword [esp + 0x10], esi
test eax, eax
je 0x1012dca5
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 0xc]
xor ecx, ecx
xor edi, edi
inc edi
test esi, esi
mov dword [esp + 0xc], ecx
je 0x1012dc9a
xor ebx, ebx
imul eax, ebx
mov edx, dword [ebp + 0x10]
mov esi, dword [edx]
mov ecx, dword [esp + 0xc]
shr esi, cl
add eax, ecx
test esi, esi
cmove esi, edi
mov edi, dword [edx + 4]
shr edi, cl
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0xd8]
test edi, edi
mov edx, 1
cmove edi, edx
mov edx, dword [esp + 8]
imul esi, dword [edx]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4 + 4], esi
imul esi, edi
xor edi, edi
inc edi
mov dword [ecx + eax*4 + 8], esi
mov edx, dword [esp + 4]
mov esi, dword [edx + 0xd4]
mov dword [ecx + eax*4], esi
inc ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp ebx, esi
jb 0x1012dc37
jmp 0x1012dc9c
xor esi, esi
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, eax
jb 0x1012dc2d
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [esp + 0x18]
jmp 0x1012da70
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x1012da95
mov ebx, dword [esp + 0x1c]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x1e98]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
test byte [eax + 0x20], 0x40
jne 0x1012de80
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
cmp eax, 1
jne 0x1012deb4
mov dword [esp + 0x28], 0x102de858
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test esi, esi
je 0x1012e1ee
mov ebx, dword [esi]
test ebx, ebx
je 0x1012dd7f
mov edi, dword [esi + 4]
test edi, edi
je 0x1012dd71
lock dec dword [edi + 0x2c]
mov ebx, dword [edi + 0x98]
mov ecx, dword [edi + 0x9c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x98]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012dd4f
mov ebx, dword [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1012e1ee
mov ebx, dword [esi]
test ebx, ebx
je 0x1012e1e4
mov edi, dword [esi + 4]
test edi, edi
je 0x1012e1d6
lock dec dword [edi + 0x2c]
mov ebx, dword [edi + 0x98]
mov ecx, dword [edi + 0x9c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x98]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012ddae
jmp 0x1012e1d4
xor edi, edi
xor edx, edx
mov ebx, dword [esp + 4]
lock inc dword [ebx + 0x3c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0xc], eax
mov esi, dword [ebx + 0xbc]
mov ebx, eax
add ebx, edi
mov ecx, esi
adc ecx, edx
mov edx, esi
mov edi, dword [esp + 4]
lock cmpxchg8b qword [edi + 0xb8]
mov ebx, dword [esp + 4]
xor edx, esi
xor eax, dword [esp + 0xc]
or eax, edx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 8]
jne 0x1012dde7
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x28]
mov dword [esi], 0x102e80f0
push 8
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov dword [esi], 0x102e80f0
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.10117880
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
mov esi, dword [ebp + 0x10]
jmp 0x1012da70
mov dword [esp + 0x30], 0
mov eax, dword [eax + 0x10]
cmp eax, 0x2b
mov dword [esp + 0x10], ebx
jg 0x1012df98
cmp eax, 0x13
je 0x1012dfa9
cmp eax, 0x27
jne 0x1012dfb5
mov eax, 0x28
jmp 0x1012dfb5
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov edi, dword [esp + 8]
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 0x1012da95
mov ebx, dword [edi]
test ebx, ebx
je 0x1012df32
mov esi, dword [edi + 4]
test esi, esi
je 0x1012df24
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 0x1012df02
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 0x1012da95
mov ebx, dword [edi]
test ebx, ebx
je 0x1012df89
mov esi, dword [edi + 4]
test esi, esi
je 0x1012df7b
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 0x1012df59
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
jmp 0x1012da95
cmp eax, 0x35
je 0x1012dfb0
cmp eax, 0x2c
jne 0x1012dfb5
mov eax, 0x2d
jmp 0x1012dfb5
mov eax, 0x14
jmp 0x1012dfb5
mov eax, 0x37
mov dword [esp + 0x28], eax
push eax
call fcn.1016d1d0
add esp, 4
xor ecx, ecx
cmp dword [eax + 0x34], 0
setne bl
xor edx, edx
cmp dword [eax + 0x38], 0
setne al
mov esi, dword [ebp + 0x10]
cmp dword [esi + 8], 0
je 0x1012da95
mov cl, bl
mov dl, al
lea eax, [ecx + edx*2]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x2280]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, 5
cmp dword [esi + 0x14], 0
jne 0x1012e00c
mov dword [esp + 0x34], ebx
mov eax, 3
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0x102de854
push 8
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x102de854
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push edi
push dword [ebp + 8]
call fcn.1012ce80
cmp eax, 1
je 0x1012e146
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov edi, dword [esp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0xd4]
call dword [section..00cfg]
push 3
push 0x3e4ccccd
push dword [esp + 0x20]
push esi
push edi
call ecx
mov dword [esp + 0x20], 0x102de854
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test edi, edi
je 0x1012e12d
mov ebx, dword [edi]
test ebx, ebx
je 0x1012e0d9
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e0cb
lock dec dword [esi + 0x14]
mov ebx, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x68]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012e0b2
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 + 0x24]
test edi, edi
je 0x1012e12d
mov ebx, dword [edi]
test ebx, ebx
je 0x1012e123
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e115
lock dec dword [esi + 0x14]
mov ebx, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x68]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012e0fc
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 ebx, dword [esp + 0xc]
inc ebx
mov esi, dword [ebp + 0x10]
cmp ebx, dword [esi + 8]
mov edi, dword [ebp + 0xc]
jb 0x1012dff8
jmp 0x1012da95
mov dword [esp + 0x20], 0x102de854
mov esi, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test esi, esi
je 0x1012e1ee
mov ebx, dword [esi]
test ebx, ebx
je 0x1012e19a
mov edi, dword [esi + 4]
test edi, edi
je 0x1012e18c
lock dec dword [edi + 0x14]
mov ebx, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x68]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012e173
mov ebx, dword [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1012e1ee
mov ebx, dword [esi]
test ebx, ebx
je 0x1012e1e4
mov edi, dword [esi + 4]
test edi, edi
je 0x1012e1d6
lock dec dword [edi + 0x14]
mov ebx, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x68]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1012e1bd
mov ebx, dword [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
inc esi
jmp 0x1012de5e
lea edi, [esp + 0x28]
mov ecx, edi
push 3
push 0x1ce
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 ebx, ebx
jmp 0x1012dcab
mov edi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
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_Texture2D
push edi
call esi
jmp 0x1012e1ee