Function at 0x10049bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov edx, 0x20
mov dword [ebp - 0xc], ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [eax*8]
mov eax, 1
test ecx, ecx
push esi
cmove ecx, eax
cmp ecx, 0x18
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
cmove eax, edx
push eax
push edi
push ebx
call fcn.1019351e
push eax
mov dword [ebp + 0x14], eax
call fcn.101935c6
push dword [ebp + 0x14]
mov esi, eax
call fcn.101935b4
mov edx, dword [ebp - 8]
add esp, 0x14
lea ecx, [edx - 1]
cmp ecx, 0x1f
ja case.0x10049c3a.2
movzx ecx, byte [ecx + 0x10049e48]
jmp dword [ecx*4 + 0x10049e34]
test edi, edi
jle 0x10049e13
mov ecx, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 8], eax
mov eax, edi
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
nop word [eax + eax]
xor edi, edi
test ebx, ebx
jle 0x10049cbd
mov ebx, dword [ebp + 8]
mov eax, edi
and eax, 0x1f
mov ecx, connect
shrx edx, ecx, eax
mov eax, edi
mov ecx, 0x80
shr eax, 5
lea eax, [esi + eax*4]
mov dword [ebp - 4], eax
mov eax, edi
and eax, 7
sarx ecx, ecx, eax
mov eax, edi
shr eax, 3
test byte [eax + ebx], cl
mov ecx, dword [ebp - 4]
je 0x10049ca8
mov eax, dword [ecx]
andn edx, edx, eax
jmp 0x10049caa
or edx, dword [ecx]
mov ebx, dword [ebp + 0xc]
inc edi
mov dword [ecx], edx
cmp edi, ebx
jl 0x10049c66
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add ecx, dword [ebp + 0x18]
add esi, edx
sub eax, 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
jne 0x10049c60
jmp 0x10049e13
test edi, edi
jle 0x10049e13
shl eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
nop dword [eax]
test ebx, ebx
jle 0x10049d1c
sub eax, esi
mov edi, ebx
mov edx, esi
mov dword [ebp - 4], eax
mov ebx, eax
nop
mov al, byte [ebx + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx], al
sub edi, 1
jne 0x10049d00
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add eax, dword [ebp + 0x18]
add esi, ecx
sub edi, 1
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], edi
jne 0x10049cf0
jmp 0x10049e13
test edi, edi
jle 0x10049e13
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
test ebx, ebx
jle 0x10049d89
lea edi, [esi + 2]
mov dword [ebp - 8], ebx
mov edx, eax
nop
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
mov ecx, esi
add esi, 4
xor ecx, 3
mov byte [ecx], al
lea ecx, [edi - 1]
movzx eax, byte [edx - 4]
xor ecx, 3
mov byte [ecx], al
mov ecx, edi
movzx eax, byte [edx - 3]
xor ecx, 3
add edi, 4
mov byte [ecx], al
sub ebx, 1
jne 0x10049d50
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x18]
sub edi, 1
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], edi
jne 0x10049d42
jmp 0x10049e13
test edi, edi
jle 0x10049e13
mov ecx, dword [ebp + 8]
shl eax, 2
add ecx, 2
mov dword [ebp + 0xc], eax
mov eax, edi
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
xor edi, edi
test ebx, ebx
jle 0x10049df3
mov eax, ecx
nop dword [eax]
movzx edx, byte [eax - 2]
lea eax, [eax + 4]
movzx ecx, byte [eax - 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 3]
shl edx, 8
or edx, ecx
mov dword [esi + edi*4], edx
inc edi
cmp edi, ebx
jl 0x10049dc0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x18]
add esi, edx
sub eax, 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
jne 0x10049db1
jmp 0x10049e13
push edx
push str.Cannot_convert_RAW_image_to_Pix_with_bpp___d_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 8
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::ImageThresholder::SetImage_struct_Pix_const__
lea eax, [ebp + 0x14]
push eax
call fcn.101934d6
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14