Function at 0x1002d6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101979a9
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x10290198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
test esi, esi
js 0x1002db43
cmp eax, dword [ebx]
jg 0x1002db43
cmp esi, eax
jg 0x1002db43
sub eax, esi
mov dword [ebp - 0x24], eax
cmp eax, 1
jl 0x1002db54
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0xb4]
push edi
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::constructor_int_
push edi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], 0
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::constructor_int_
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_struct_tesseract::Cluster_::constructor_void_
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_struct_tesseract::Cluster_::constructor_void_
mov byte [ebp - 4], 3
cmp esi, dword [ebp + 0x10]
jge 0x1002d782
mov edi, dword [ebp - 0x24]
lea esi, [esi + esi*4]
shl esi, 3
nop word [eax + eax]
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0xb0]
push dword [eax + esi + 8]
call sym.tesseract41.dll_public:_int___thiscall_GenericVector_int_::push_back_int_
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x98]
push dword [eax + esi + 0xc]
call sym.tesseract41.dll_public:_int___thiscall_GenericVector_int_::push_back_int_
lea esi, [esi + 0x28]
sub edi, 1
jne 0x1002d750
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xb4]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::GetClusters_class_GenericVector_struct_tesseract::Cluster___
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x9c]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::GetClusters_class_GenericVector_struct_tesseract::Cluster___
push edi
lea ecx, [ebp - 0x84]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::constructor_int_
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::constructor_int_
mov edi, dword [ebp - 0x24]
xor edx, edx
cmp edi, 8
mov byte [ebp - 4], 5
mov eax, 2
setge dl
cmp edi, 0x14
cmovge edx, eax
mov dword [ebp - 0x10], edx
cmp esi, dword [ebp + 0x10]
jge 0x1002d8d5
lea ecx, [esi + esi*4]
mov dword [ebp - 0x1c], edi
shl ecx, 3
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
mov eax, dword [ebx + 8]
xor edi, edi
add eax, ecx
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x40], ebx
jle 0x1002d845
jmp 0x1002d813
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
mov ecx, dword [ebp - 0x38]
sub eax, dword [ecx + ebx*8]
cdq
mov esi, eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ecx + edi*8]
xor esi, edx
sub esi, edx
mov ecx, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
cmovge ecx, ebx
inc edi
mov ebx, ecx
cmp edi, dword [ebp - 0x40]
jl 0x1002d810
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
xor edi, edi
cmp dword [ebp - 0x54], edi
jle 0x1002d886
mov ebx, edi
nop
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x4c]
sub eax, dword [ecx + edi*8]
cdq
mov esi, eax
mov eax, dword [ebp - 0x28]
xor esi, edx
sub esi, edx
mov eax, dword [eax + 0xc]
sub eax, dword [ecx + ebx*8]
mov ecx, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
mov eax, dword [ebp - 0x28]
cmovge ecx, edi
inc ebx
mov edi, ecx
cmp ebx, dword [ebp - 0x54]
jl 0x1002d850
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x38]
cmp dword [esi + ebx*8 + 4], edx
jg 0x1002d898
mov eax, dword [ebp - 0x4c]
cmp dword [eax + edi*8 + 4], edx
jle 0x1002d8bd
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x80]
call sym.tesseract41.dll_public:_int___thiscall_GenericVector_int_::push_back_int_
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
push dword [eax + ecx + 0xc]
lea ecx, [ebp - 0x68]
call sym.tesseract41.dll_public:_int___thiscall_GenericVector_int_::push_back_int_
mov edx, dword [ebp - 0x10]
jmp 0x1002d8c0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
jne 0x1002d7f0
jmp 0x1002d8d8
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x84]
push edi
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::GetClusters_class_GenericVector_struct_tesseract::Cluster___
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp - 0x6c]
push ebx
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::GetClusters_class_GenericVector_struct_tesseract::Cluster___
mov eax, dword [edi]
cmp eax, 1
jne 0x1002d8ff
cmp dword [ebx], 4
jge 0x1002d911
cmp dword [ebx], 1
jne 0x1002da08
cmp eax, 4
jl 0x1002da08
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jge 0x1002da08
lea ecx, [eax + eax*4]
shl ecx, 3
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov edx, dword [eax + 8]
add edx, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x40], ebx
jle 0x1002d977
mov eax, ecx
sub eax, dword [esi + ebx*8]
cdq
mov esi, eax
mov eax, ecx
mov ecx, dword [ebp - 0x38]
xor esi, edx
sub esi, edx
sub eax, dword [ecx + edi*8]
mov ecx, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
mov esi, dword [ebp - 0x38]
cmovge ecx, ebx
inc edi
mov ebx, ecx
mov ecx, dword [ebp - 0x20]
cmp edi, dword [ebp - 0x40]
jl 0x1002d943
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [edx + 0xc]
xor edi, edi
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x54], edi
jle 0x1002d9ba
mov ebx, edi
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub eax, dword [edx + edi*8]
cdq
mov esi, eax
mov eax, ecx
mov ecx, dword [ebp - 0x4c]
xor esi, edx
sub esi, edx
sub eax, dword [ecx + ebx*8]
mov ecx, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
cmovge ecx, edi
inc ebx
mov edi, ecx
mov ecx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x54]
jl 0x1002d986
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
cmp dword [esi + ebx*8 + 4], ecx
jg 0x1002d9ef
mov eax, dword [ebp - 0x4c]
cmp dword [eax + edi*8 + 4], ecx
jg 0x1002d9ef
push dword [edx + 8]
lea ecx, [ebp - 0x80]
call sym.tesseract41.dll_public:_int___thiscall_GenericVector_int_::push_back_int_
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx + 0xc]
lea ecx, [ebp - 0x68]
call sym.tesseract41.dll_public:_int___thiscall_GenericVector_int_::push_back_int_
mov ecx, dword [ebp + 0xc]
add ecx, 0x28
sub dword [ebp - 0x24], 1
mov dword [ebp + 0xc], ecx
jne 0x1002d926
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push edi
lea ecx, [ebp - 0x84]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::GetClusters_class_GenericVector_struct_tesseract::Cluster___
push ebx
lea ecx, [ebp - 0x6c]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::SimpleClusterer::GetClusters_class_GenericVector_struct_tesseract::Cluster___
cmp dword [edi], 3
jne 0x1002da80
cmp dword [ebx], 4
jl 0x1002da80
or edx, 0xffffffff
lea esi, [edx + 3]
nop dword [eax]
test edx, edx
js 0x1002da41
mov ecx, dword [edi + 8]
mov eax, dword [ecx + esi*8 + 4]
cmp eax, dword [ecx + edx*8 + 4]
jge 0x1002da43
mov edx, esi
sub esi, 1
jns 0x1002da30
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x10]
cmp dword [eax + edx*8 + 4], ecx
jg 0x1002da80
mov ecx, 3
cmp edx, 2
jae 0x1002da7b
nop
mov eax, dword [edi + 8]
lea ecx, [eax + edx*8]
inc edx
mov eax, dword [ecx + 8]
mov dword [ecx], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x1002da60
lea eax, [ecx - 1]
mov dword [edi], eax
cmp dword [ebx], 3
jne 0x1002dae0
cmp dword [edi], 4
jl 0x1002dae0
or edx, 0xffffffff
lea esi, [edx + 3]
test edx, edx
js 0x1002daa1
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + esi*8 + 4]
cmp eax, dword [ecx + edx*8 + 4]
jge 0x1002daa3
mov edx, esi
sub esi, 1
jns 0x1002da90
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
cmp dword [eax + edx*8 + 4], ecx
jg 0x1002dae0
mov ecx, 3
cmp edx, 2
jae 0x1002dadb
nop
mov eax, dword [ebx + 8]
lea ecx, [eax + edx*8]
inc edx
mov eax, dword [ecx + 8]
mov dword [ecx], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebx]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x1002dac0
lea eax, [ecx - 1]
mov dword [ebx], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_int_::clear_void_
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_int_::clear_void_
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_struct_tesseract::KDPairInc_float__int__::clear_void_
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_struct_tesseract::KDPairInc_float__int__::clear_void_
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_int_::clear_void_
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xb
call sym.tesseract41.dll_public:_void___thiscall_GenericVector_int_::clear_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx]
push eax
push esi
push str.Invalid_arguments_rows__d___d__while_rows_is_of_size__d._n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret