Function at 0x419ec8
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
test byte [ebp + 0x10], 0x80
push edi
push 0x10
mov esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 2], bl
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], ebx
pop edi
je 0x419cdd
mov dword [ebp - 0x20], ebx
mov byte [ebp - 1], 0x10
jmp 0x419ce7
mov dword [ebp - 0x20], 1
mov byte [ebp - 1], bl
lea eax, [ebp - 0x14]
push eax
call fcn.0041ca67
test eax, eax
pop ecx
je 0x419d02
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410911
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.004154f7
test eax, eax
pop ecx
je 0x419d1d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410911
add esp, 0x14
mov eax, 0x8000
test dword [ebp + 0x10], eax
jne 0x419d39
test dword [ebp + 0x10], 0x74000
jne 0x419d35
cmp dword [ebp - 0x14], eax
je 0x419d39
or byte [ebp - 1], 0x80
mov eax, dword [ebp + 0x10]
push 3
pop edx
and eax, edx
sub eax, ebx
mov ecx, 0x80000000
je 0x419d88
dec eax
je 0x419d7f
dec eax
je 0x419d76
call fcn.00410a7f
mov dword [eax], ebx
or dword [esi], 0xffffffff
call fcn.00410a6c
push 0x16
pop esi
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], esi
call fcn.00410a0d
add esp, 0x14
jmp 0x41a205
mov dword [ebp - 0xc], 0xc0000000
jmp 0x419d8b
mov dword [ebp - 0xc], 0x40000000
jmp 0x419d8b
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
sub eax, edi
je 0x419dc7
sub eax, edi
je 0x419dbe
sub eax, edi
je 0x419db5
sub eax, edi
je 0x419db0
sub eax, 0x40
jne 0x419d50
xor eax, eax
cmp dword [ebp - 0xc], ecx
sete al
mov dword [ebp - 8], eax
jmp 0x419dca
mov dword [ebp - 8], edx
jmp 0x419dca
mov dword [ebp - 8], 2
jmp 0x419dca
mov dword [ebp - 8], 1
jmp 0x419dca
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0x10]
mov edx, 0x700
and eax, edx
mov ecx, 0x400
cmp eax, ecx
jg 0x419e1b
je 0x419e12
cmp eax, ebx
je 0x419e12
cmp eax, 0x100
je 0x419e09
cmp eax, 0x200
je 0x419e8d
cmp eax, 0x300
jne 0x419d50
mov dword [ebp - 0x10], 2
jmp 0x419e38
mov dword [ebp - 0x10], 4
jmp 0x419e38
mov dword [ebp - 0x10], 3
jmp 0x419e38
cmp eax, 0x500
je 0x419e31
cmp eax, 0x600
je 0x419e8d
cmp eax, edx
jne 0x419d50
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0x10]
mov eax, 0x100
test eax, ecx
mov edi, 0x80
je 0x419e5b
mov edx, dword [0x428940]
not edx
and edx, dword [ebp + 0x18]
test dl, dl
js 0x419e5b
xor edi, edi
inc edi
test cl, 0x40
je 0x419e77
or dword [ebp - 0xc], 0x10000
or edi, 0x4000000
cmp dword [ebp - 0x18], 2
jne 0x419e77
or dword [ebp - 8], 4
test cx, 0x1000
je 0x419e80
or edi, eax
test cl, 0x20
je 0x419e96
or edi, 0x8000000
jmp 0x419ea1
mov dword [ebp - 0x10], 5
jmp 0x419e38
test cl, 0x10
je 0x419ea1
or edi, 0x10000000
call fcn.00419a2b
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x419ec4
call fcn.00410a7f
mov dword [eax], ebx
or dword [esi], 0xffffffff
call fcn.00410a6c
mov dword [eax], 0x18
jmp 0x419f14
mov eax, dword [ebp + 8]
push ebx
push edi
push dword [ebp - 0x10]
mov dword [eax], 1
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [0x41f04c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f20
mov esi, dword [esi]
mov eax, esi
and esi, 0x1f
imul esi, esi, 0x28
sar eax, 5
mov eax, dword [eax*4 + 0x42aaa0]
lea eax, [eax + esi + 4]
and byte [eax], 0xfe
call dword [0x41f104]
push eax
call fcn.00410a92
pop ecx
call fcn.00410a6c
mov eax, dword [eax]
jmp 0x41a2e4
push edi
call dword [0x41f0bc]
cmp eax, ebx
jne 0x419f4f
mov esi, dword [esi]
mov eax, esi
and esi, 0x1f
imul esi, esi, 0x28
sar eax, 5
mov eax, dword [eax*4 + 0x42aaa0]
lea eax, [eax + esi + 4]
and byte [eax], 0xfe
push edi
call dword [0x41f100]
jmp 0x419f07
cmp eax, 2
jne 0x419f5a
or byte [ebp - 1], 0x40
jmp 0x419f63
cmp eax, 3
jne 0x419f63
or byte [ebp - 1], 8
push edi
push dword [esi]
call fcn.004197fa
mov eax, dword [esi]
mov edx, eax
and eax, 0x1f
imul eax, eax, 0x28
sar edx, 5
mov edx, dword [edx*4 + 0x42aaa0]
pop ecx
pop ecx
mov cl, byte [ebp - 1]
or cl, 1
mov byte [edx + eax + 4], cl
mov eax, dword [esi]
mov edx, eax
and eax, 0x1f
imul eax, eax, 0x28
sar edx, 5
mov edx, dword [edx*4 + 0x42aaa0]
lea eax, [edx + eax + 0x24]
and byte [eax], 0x80
mov byte [ebp - 3], cl
and byte [ebp - 3], 0x48
mov byte [ebp - 1], cl
jne 0x41a036
test cl, 0x80
je 0x41a270
test byte [ebp + 0x10], 2
je 0x41a036
push 2
or edi, 0xffffffff
push edi
push dword [esi]
call fcn.0041c939
add esp, 0xc
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x419ff5
call fcn.00410a7f
cmp dword [eax], 0x83
je 0x41a036
push dword [esi]
call fcn.00413f24
jmp 0x419f13
push 1
lea eax, [ebp - 4]
push eax
push dword [esi]
mov byte [ebp - 4], bl
call fcn.0041bdc6
add esp, 0xc
test eax, eax
jne 0x41a026
cmp byte [ebp - 4], 0x1a
jne 0x41a026
mov eax, dword [ebp - 8]
cdq
push edx
push eax
push dword [esi]
call fcn.0041c785
add esp, 0xc
cmp eax, edi
je 0x419fe9
push ebx
push ebx
push dword [esi]
call fcn.0041c939
add esp, 0xc
cmp eax, edi
je 0x419fe9
test byte [ebp - 1], 0x80
je 0x41a270
mov ecx, 0x74000
test dword [ebp + 0x10], ecx
mov edi, 0x4000
jne 0x41a05e
mov eax, dword [ebp - 0x14]
and eax, ecx
jne 0x41a05b
or dword [ebp + 0x10], edi
jmp 0x41a05e
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
and eax, ecx
cmp eax, edi
je 0x41a0ab
cmp eax, 0x10000
je 0x41a097
cmp eax, 0x14000
je 0x41a097
cmp eax, 0x20000
je 0x41a0a5
cmp eax, 0x24000
je 0x41a0a5
cmp eax, 0x40000
je 0x41a091
cmp eax, 0x44000
jne 0x41a0ae
mov byte [ebp - 2], 1
jmp 0x41a0ae
mov ecx, dword [ebp + 0x10]
mov eax, 0x301
and ecx, eax
cmp ecx, eax
jne 0x41a0ae
mov byte [ebp - 2], 2
jmp 0x41a0ae
mov byte [ebp - 2], bl
test dword [ebp + 0x10], 0x70000
je 0x41a270
test byte [ebp - 1], 0x40
mov dword [ebp - 8], ebx
jne 0x41a270
mov eax, dword [ebp - 0xc]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, 0x40000000
je 0x41a194
cmp eax, 0x80000000
je 0x41a15b
cmp eax, ecx
jne 0x41a270
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x41a270
cmp eax, 2
jbe 0x41a10a
cmp eax, 4
jbe 0x41a131
cmp eax, 5
jne 0x41a270
movsx eax, byte [ebp - 2]
xor edi, edi
dec eax
je 0x41a23d
dec eax
jne 0x41a270
mov dword [ebp - 8], 0xfeff
mov dword [ebp - 0x10], 2
jmp 0x41a24b
push 2
push ebx
push ebx
push dword [esi]
call fcn.00416184
add esp, 0x10
or eax, edx
je 0x41a10a
push ebx
push ebx
push ebx
push dword [esi]
call fcn.00416184
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x419fe9
push 3
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.0041bdc6
add esp, 0xc
cmp eax, 0xffffffff
je 0x419fe9
cmp eax, 2
je 0x41a1e4
cmp eax, 3
jne 0x41a22f
cmp dword [ebp - 8], 0xbfbbef
jne 0x41a1e4
mov byte [ebp - 2], 1
jmp 0x41a270
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x41a270
cmp eax, 2
jbe 0x41a10a
cmp eax, 4
ja 0x41a101
push 2
push ebx
push ebx
push dword [esi]
call fcn.00416184
add esp, 0x10
or eax, edx
je 0x41a10a
push ebx
push ebx
push ebx
push dword [esi]
call fcn.00416184
add esp, 0x10
and eax, edx
cmp eax, 0xffffffff
jne 0x41a270
jmp 0x419fe9
mov eax, dword [ebp - 8]
and eax, 0xffff
cmp eax, 0xfffe
jne 0x41a20c
push dword [esi]
call fcn.00413f24
pop ecx
call fcn.00410a6c
push 0x16
pop esi
mov dword [eax], esi
mov eax, esi
jmp 0x41a2e4
cmp eax, 0xfeff
jne 0x41a22f
push ebx
push 2
push dword [esi]
call fcn.0041c939
add esp, 0xc
cmp eax, 0xffffffff
je 0x419fe9
mov byte [ebp - 2], 2
jmp 0x41a270
push ebx
push ebx
push dword [esi]
call fcn.0041c939
add esp, 0xc
jmp 0x41a1d6
mov dword [ebp - 8], 0xbfbbef
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
sub eax, edi
push eax
lea eax, [ebp + edi - 8]
push eax
push dword [esi]
call fcn.004168e6
add esp, 0xc
cmp eax, 0xffffffff
je 0x419fe9
add edi, eax
cmp dword [ebp - 0x10], edi
jg 0x41a24b
mov eax, dword [esi]
mov ecx, eax
and eax, 0x1f
imul eax, eax, 0x28
sar ecx, 5
mov ecx, dword [ecx*4 + 0x42aaa0]
lea eax, [ecx + eax + 0x24]
mov cl, byte [eax]
xor cl, byte [ebp - 2]
and cl, 0x7f
xor byte [eax], cl
mov eax, dword [esi]
mov ecx, eax
and eax, 0x1f
imul eax, eax, 0x28
sar ecx, 5
mov ecx, dword [ecx*4 + 0x42aaa0]
lea eax, [ecx + eax + 0x24]
mov ecx, dword [ebp + 0x10]
mov dl, byte [eax]
shr ecx, 0x10
shl cl, 7
and dl, 0x7f
or cl, dl
cmp byte [ebp - 3], bl
mov byte [eax], cl
jne 0x41a2e2
test byte [ebp + 0x10], 8
je 0x41a2e2
mov esi, dword [esi]
mov eax, esi
and esi, 0x1f
imul esi, esi, 0x28
sar eax, 5
mov eax, dword [eax*4 + 0x42aaa0]
lea eax, [eax + esi + 4]
or byte [eax], 0x20
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret