Function at 0x10162990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101972b3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x101fc010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], edx
cmp eax, 1
jne 0x101629ea
push dword [ebp + 0x10]
push edx
push ecx
call sym.opencv_core249.dll_int___cdecl_cv::normHamming_unsigned_char_const___unsigned_char_const___int_
add esp, 0xc
jmp 0x10162c7a
xor edi, edi
cmp eax, 2
jne 0x101629fb
mov edi, 0x101ab880
jmp 0x10162b01
cmp eax, 4
jne 0x10162a0a
mov edi, 0x101ab980
jmp 0x10162b01
push str.E:opencv_2.4.9modulescore_src_stat.cpp
lea ecx, [ebp - 0x28]
call fcn.10005380
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push str.cv::normHamming
call fcn.10005380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push str.bad_cell_size__not_1__2_or_4__in_normHamming
call fcn.10005380
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push 0x568
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push 0xffffff37
lea ecx, [ebp - 0xcc]
call sym.opencv_core249.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
mov byte [ebp - 4], 3
push eax
call sym.opencv_core249.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call sym.opencv_core249.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0x10
jb 0x10162a92
push dword [ebp - 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x10162ab9
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x10162ae3
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ebx, dword [ebp + 0x10]
xor eax, eax
xor esi, esi
mov dword [ebp - 0xd8], eax
add ebx, 0xfffffffc
mov dword [ebp - 0xdc], ebx
js 0x10162ba6
mov eax, edx
lea ebx, [ecx + 3]
sub eax, ecx
lea ecx, [edx + 1]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ecx
movzx ecx, byte [ecx + esi - 1]
lea ebx, [ebx + 4]
movzx eax, byte [ebx - 7]
xor ecx, eax
mov eax, dword [ebp - 0xd0]
movzx edx, byte [ecx + edi]
movzx ecx, byte [eax + esi + 1]
movzx eax, byte [ebx - 5]
xor ecx, eax
movzx eax, byte [ecx + edi]
add edx, eax
mov eax, dword [ebp - 0xd0]
movzx ecx, byte [eax + esi]
add esi, 4
movzx eax, byte [ebx - 6]
xor ecx, eax
movzx eax, byte [ecx + edi]
add edx, eax
mov eax, dword [ebp - 0xd4]
movzx ecx, byte [eax + ebx - 4]
movzx eax, byte [ebx - 4]
xor ecx, eax
movzx eax, byte [ecx + edi]
add eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd0]
add eax, edx
mov dword [ebp - 0xd8], eax
cmp esi, dword [ebp - 0xdc]
jle 0x10162b33
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xd4], ebx
cmp esi, ecx
jge 0x10162c7a
mov eax, ecx
sub eax, esi
cmp eax, 2
jl 0x10162c42
lea eax, [ecx - 1]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xd0], ecx
sub dword [ebp - 0xd0], eax
lea edx, [eax + esi]
lea eax, [ecx + 1]
mov dword [ebp - 0xdc], eax
jmp 0x10162c00
mov eax, dword [ebp - 0xd0]
lea edx, [edx + 2]
movzx ecx, byte [edx + eax - 2]
movzx eax, byte [edx - 2]
xor ecx, eax
movzx eax, byte [ecx + edi]
add ebx, eax
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + esi]
add esi, 2
movzx eax, byte [edx - 1]
xor ecx, eax
movzx eax, byte [ecx + edi]
add dword [ebp - 0xd4], eax
cmp esi, dword [ebp - 0xe8]
jl 0x10162c00
mov ecx, dword [ebp + 0x10]
cmp esi, ecx
jge 0x10162c6a
mov eax, dword [ebp - 0xe0]
movzx edx, byte [eax + esi]
mov eax, dword [ebp - 0xe4]
movzx ecx, byte [eax + esi]
mov eax, dword [ebp - 0xd8]
xor edx, ecx
movzx ecx, byte [edx + edi]
add eax, ecx
jmp 0x10162c70
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
add ecx, ebx
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10176850
mov esp, ebp
pop ebp
ret