Function at 0x100625b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x338], edx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x330], eax
xor edi, edi
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x328], edx
test eax, eax
jne 0x1006261a
push 0
push 0
push 0
push 0
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029ae5
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x100625f6
push ebx
mov ebx, dword [ecx + 0x14]
imul ebx, dword [ecx + 0x10]
cmp dword [ebp - 0x338], edx
jne 0x10062640
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1006297b
cmp dword [ebp + 0x18], ebx
jae 0x10062657
push 0
push 0
push 0
push 0
push 0xffffff36
jmp 0x1006297b
push 0x20
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.10009dd0
test eax, eax
jne 0x10062980
push 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10009dd0
test eax, eax
jne 0x10062980
push 0x2ec
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.10009dd0
test eax, eax
jne 0x10062980
mov eax, dword [ebp - 0x324]
mov eax, dword [eax]
cmp eax, 3
ja case.default.0x100626a7
jmp dword [eax*4 + 0x10062998]
mov edx, 0x2d0
mov byte [ebp - 0x2b], 6
mov dword [ebp - 0x328], edx
jmp 0x10062703
mov eax, 0xfffffda6
jmp 0x100626ed
mov edx, 0x200
mov byte [ebp - 0x2b], 0
mov dword [ebp - 0x328], edx
jmp 0x10062703
mov edx, 0x200
mov byte [ebp - 0x2b], 1
mov dword [ebp - 0x328], edx
jmp 0x10062703
mov eax, 0xfffffda7
push 0
push 0
push 0
push 0
push eax
call sym.NBUidai.dll_NBErrorsSetLastA
test eax, eax
jne 0x10062980
mov eax, dword [ebp + 0xc]
xor cl, cl
mov dword [ebp - 0x32c], esi
cmp eax, 0x10
je 0x10062724
cmp eax, 2
jne 0x10062788
mov cl, 1
mov dword [ebp - 0x32c], 1
mov byte [ebp - 0x29], cl
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x324], esi
mov ecx, dword [eax + 0x12c]
mov dword [ebp - 0x33c], ecx
lea ecx, [ebp - 0x324]
push ecx
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0x20
push 0x20
lea ecx, [ebp - 0x34]
push ecx
push 0x12
push eax
call fcn.1005fe20
add esp, 0x20
test eax, eax
jne 0x10062980
cmp dword [ebp - 0x33c], 0x2033
lea eax, [ebp - 0x14]
push dword [ebp - 0x324]
push 0x10
push eax
push 0x20
je 0x100627bc
call fcn.10063070
jmp 0x100627c1
cmp eax, 1
jne 0x10062791
mov cl, 0x11
jmp 0x1006271a
push 0
push 0
push 0
push 0
push 0xfffffda7
call sym.NBUidai.dll_NBErrorsSetLastA
test eax, eax
jne 0x10062980
mov eax, dword [ebp - 0x33c]
mov dword [ebp - 0x32c], eax
jmp 0x10062727
call fcn.10062e20
test eax, eax
jne 0x10062980
cmp dword [ebp - 8], 3
je 0x10062814
nop
lea eax, [ebp - 0x340]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x20
push dword [ebp - 0x330]
call fcn.1005fd70
add esp, 0x14
test eax, eax
jne 0x10062980
inc edi
cmp edi, 0xa
jae 0x1006292f
push 0xa
call fcn.1000dbb0
test eax, eax
jne 0x10062980
cmp dword [ebp - 8], 3
jne 0x100627d0
mov edi, dword [ebp - 0x330]
push 6
push edi
call fcn.10062d90
add esp, 8
test eax, eax
jne 0x10062980
lea eax, [ebp - 0x340]
push eax
push 0x2ec
lea eax, [ebp - 0x320]
push eax
push 0x21
push edi
call fcn.1005fd70
add esp, 0x14
test eax, eax
jne 0x10062980
cmp byte [ebp - 0x308], 1
jne 0x1006296b
mov edi, dword [ebp - 0x328]
lea eax, [ebp - 0x307]
cmp ebx, edi
cmovb edi, ebx
push edi
push eax
mov eax, dword [ebp - 0x334]
add eax, dword [ebp - 0x338]
push eax
call fcn.10009d90
test eax, eax
jne 0x10062980
add dword [ebp - 0x334], edi
sub ebx, edi
cmp byte [ebp - 0x314], al
jne 0x10062814
cmp dword [ebp - 0x32c], esi
je 0x10062982
mov edx, dword [ebp - 0x330]
add edx, 0x138
je 0x10062941
mov eax, dword [ebp + 0x18]
cmp eax, 4
jb 0x10062941
test eax, eax
je 0x10062982
mov ecx, dword [ebp - 0x338]
lea edi, [eax - 1]
shr edi, 2
inc ecx
inc edi
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
xor al, byte [edx]
rol al, 3
mov byte [ecx - 5], al
movzx eax, byte [ecx - 4]
xor al, byte [edx + 1]
rol al, 3
mov byte [ecx - 4], al
movzx eax, byte [ecx - 3]
xor al, byte [edx + 2]
rol al, 3
mov byte [ecx - 3], al
movzx eax, byte [edx + 3]
xor al, byte [ecx - 2]
rol al, 3
mov byte [ecx - 2], al
sub edi, 1
jne 0x100628e1
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029ae5
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push str.Timeout_during_image_acquisition
push 0xfffffd3b
jmp 0x1006297b
push 0
push 0
push 0
push 0
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
test eax, eax
pop ebx
cmovne esi, eax
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029ae5
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push str.Only_row_scan_is_supported
push 0xfffffda7
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10029ae5
mov esp, ebp
pop ebp
ret