Function at 0x102c53f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
cmp ebx, 0x3fffffc0
jae 0x102c593c
lea esi, [ebx*4]
push esi
push eax
mov eax, dword [eax]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x102c5938
xor edi, edi
test ebx, ebx
je 0x102c54b1
jmp 0x102c5490
push dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
call fcn.102ba020
add esp, 4
mov dword [ebp + edi*4], eax
test eax, eax
je 0x102c5524
inc edi
cmp edi, ebx
jb 0x102c5490
mov ecx, dword [esp + 0x88]
cmp ecx, 1
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x50], eax
setle al
add al, 2
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
mov byte [esp + 0x54], al
mov dword [esp + 0x55], 0x2fffdff
mov word [esp + 0x59], 0xfefe
mov byte [esp + 0x5b], 0xfe
test edx, edx
je 0x102c5598
lea eax, [esp + 0x2c]
push eax
push dword [esi + ebp - 4]
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.102de020
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
jmp 0x102c563f
push dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
push str.failed_to_allocate__dx_d_image_for_GSPLANES
push dword [eax]
push 3
push ebx
call fcn.10283d90
add esp, 0x18
dec edi
js 0x102c5577
lea esp, [esp]
mov esi, dword [ebp + edi*4]
test esi, esi
je 0x102c5574
dec dword [esi + 0x10]
jne 0x102c5574
mov eax, dword [ebx]
push dword [esi + 0xc]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebx]
push esi
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0x10
dec edi
jns 0x102c5550
mov eax, dword [ebx]
push ebp
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1033d458
add esp, 0x54
ret
mov edi, dword [esp + 0x18]
push 0xc
mov eax, dword [edi]
push eax
mov eax, dword [eax]
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x102c55e4
push str.failed_to_allocate_Jbig2WordStreamBuf_in_jbig2_word_stream_buf_new
push 0xffffffffffffffff
push 3
push edi
call fcn.10283d90
mov eax, dword [esp + 0x24]
push str.failed_to_allocate_ws_in_jbig2_decode_gray_scale_image
mov dword [esp + 0x44], 0
push dword [eax]
push 3
push edi
call fcn.10283d90
add esp, 0x20
jmp 0x102c58b6
mov eax, dword [esp + 0x38]
mov edx, ecx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx], 0x10284440
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.102de240
mov dword [esp + 0x34], eax
test eax, eax
jne 0x102c5624
mov eax, dword [esp + 0x14]
push str.failed_to_allocate_as_in_jbig2_decode_gray_scale_image
push dword [eax]
push 3
push edi
call fcn.10283d90
add esp, 0x10
jmp 0x102c58b6
push dword [esp + 0x3c]
mov ecx, edi
push dword [esi + ebp - 4]
mov esi, dword [esp + 0x1c]
mov edx, esi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.102cca60
add esp, 0x10
test eax, eax
je 0x102c565d
push str.error_decoding_GSPLANES_for_halftone_image
push dword [esi]
push 3
push edi
call fcn.10283d90
add esp, 0x10
jmp 0x102c58af
lea eax, [ebx - 2]
mov dword [esp + 0x40], eax
test eax, eax
js 0x102c5701
lea esp, [esp]
cmp dword [esp + 0x70], 0
lea ebx, [eax*4]
lea edi, [ebx + ebp]
je 0x102c56a1
lea eax, [esp + 0x2c]
push eax
push dword [edi]
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x38]
push eax
call fcn.102de020
jmp 0x102c56bb
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push dword [edi]
mov edx, esi
push dword [esp + 0x3c]
push eax
call fcn.102cca60
add esp, 0x10
test eax, eax
jne 0x102c5719
mov eax, dword [ebp]
xor edx, edx
mov esi, dword [eax + 8]
imul esi, dword [esp + 0x1c]
test esi, esi
je 0x102c56ea
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + ebp + 4]
mov eax, dword [eax + 0xc]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
inc edx
cmp edx, esi
jb 0x102c56d3
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
dec eax
mov dword [esp + 0x40], eax
jns 0x102c5670
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, dword [edi]
cmp ebx, 0x3fffffc0
jb 0x102c5734
mov dword [esp + 0x20], 0
jmp 0x102c574e
mov edi, dword [esp + 0x18]
push str.error_decoding_GSPLANES_for_halftone_image
push dword [esi]
push 3
push edi
call fcn.10283d90
add esp, 0x10
jmp 0x102c58af
lea eax, [ebx*4]
push eax
mov eax, dword [ecx]
push ecx
call eax
mov edx, eax
add esp, 8
mov dword [esp + 0x20], edx
test edx, edx
jne 0x102c576a
mov eax, dword [esp + 0x14]
push ebx
push str.failed_to_allocate_GSVALS:__d_bytes
push dword [eax]
push 3
push edi
call fcn.10283d90
add esp, 0x14
jmp 0x102c58af
xor esi, esi
test ebx, ebx
je 0x102c57a3
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
cmp ecx, 0xffffff00
jb 0x102c5782
xor eax, eax
jmp 0x102c5793
push ecx
push eax
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [esp + 0x20]
mov dword [edx + esi*4], eax
test eax, eax
je 0x102c5826
inc esi
cmp esi, ebx
jb 0x102c5774
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jbe 0x102c58af
mov eax, dword [esp + 0x1c]
mov ecx, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea ecx, [ecx]
xor esi, esi
test eax, eax
je 0x102c5899
lea ebx, [ebx]
mov eax, dword [ecx]
xor edi, edi
mov byte [esi + eax], 0
test edx, edx
je 0x102c588c
mov eax, dword [ebp + edi*4]
test ebx, ebx
js 0x102c586e
cmp ebx, dword [eax]
jge 0x102c586e
test esi, esi
js 0x102c586e
cmp esi, dword [eax + 4]
jge 0x102c586e
mov ecx, dword [eax + 8]
mov dl, bl
imul ecx, esi
and dl, 7
add ecx, dword [eax + 0xc]
mov eax, ebx
sar eax, 3
movzx eax, byte [ecx + eax]
mov ecx, 7
sub cl, dl
shr eax, cl
mov ecx, dword [esp + 0x14]
and eax, 1
jmp 0x102c5870
mov eax, dword [esp + 0x14]
imul ecx, ebx
push ecx
push str.failed_to_allocate_GSVALS:__d_bytes
push dword [eax]
push 3
push edi
call fcn.10283d90
mov ebx, dword [esp + 0x34]
add esp, 0x14
dec esi
js 0x102c5858
mov eax, dword [edi]
push dword [ebx + esi*4]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
dec esi
jns 0x102c5847
mov eax, dword [edi]
push ebx
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
mov dword [esp + 0x20], 0
jmp 0x102c58af
xor eax, eax
mov edx, dword [ecx]
mov ecx, edi
shl al, cl
inc edi
mov ecx, dword [esp + 0x14]
add byte [edx + esi], al
cmp edi, dword [esp + 0x28]
jb 0x102c57e0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jb 0x102c57d0
inc ebx
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ebx, dword [esp + 0x24]
jb 0x102c57c0
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x70], 0
jne 0x102c58d1
mov eax, dword [edi]
push dword [esp + 0x34]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [edi]
push dword [esp + 0x38]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0x10
mov ebx, dword [esp + 0x28]
xor edi, edi
test ebx, ebx
je 0x102c5911
jmp 0x102c58e0
mov esi, dword [ebp + edi*4]
test esi, esi
je 0x102c590c
dec dword [esi + 0x10]
jne 0x102c590c
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esp + 0x20]
push esi
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0x10
inc edi
cmp edi, ebx
jb 0x102c58e0
mov eax, dword [esp + 0x18]
push ebp
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1033d458
add esp, 0x54
ret
mov ecx, dword [esp + 0x18]
push ebx
push str.failed_to_allocate__d_bytes_for_GSPLANES
push dword [edi]
push 3
push ecx
call fcn.10283d90
mov ecx, dword [esp + 0x70]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1033d458
add esp, 0x54
ret