Function at 0x420608
Capabilities:
Encrypt data using speck

Disassembly:
or dword [ebp - 0xc], edi
test al, 0x20
je 0x4204cb
or dword [ebp - 0xc], 0x8000000
jmp 0x4204d6
test al, 0x10
je 0x4204d6
or dword [ebp - 0xc], 0x10000000
call fcn.0041e67e
mov dword [esi], eax
push es
cmp eax, 0xffffffff
jne 0x4204fc
call fcn.00417751
mov dword [eax], ebx
or dword [esi], 0xffffffff
call fcn.0041773e
mov dword [eax], 0x18
jmp 0x42058a
mov eax, dword [ebp + 8]
mov edi, dword [fcn.0040e11c]
push ebx
push dword [ebp - 0xc]
mov dword [eax], 1
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x420596
mov ecx, dword [ebp - 8]
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
jne 0x420562
test byte [ebp + 0x10], 1
je 0x420562
and dword [ebp - 8], 0x7fffffff
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x420596
mov esi, dword [esi]
mov eax, esi
sar eax, 5
mov eax, dword [eax*4 + 0x412aa0]
and esi, 0x1f
shl esi, 6
lea eax, [eax + esi + 4]
and byte [eax], 0xfe
and dh, bh
push dword [ebp - 0x1c]
call dword [0x40e040]
cmp eax, ebx
jne 0x4205e7
mov esi, dword [esi]
mov eax, esi
sar eax, 5
mov eax, dword [eax*4 + 0x412aa0]
test dword [eax - 0x7cffbed6], esp
out 0x1f, al
shl esi, 6
lea eax, [eax + esi + 4]
and byte [eax], 0xfe
call dword [fcn.0040e05c]
mov esi, eax
push esi
call fcn.00417764
pop ecx
push dword [ebp - 0x1c]
call dword [0x40e108]
cmp esi, ebx
jne 0x42058a
cmp eax, 2
jne 0x4205f2
or byte [ebp - 1], 0x40
jmp 0x4205fb
cmp eax, 3
jne 0x4205fb
or byte [ebp - 1], 8
push dword [ebp - 0x1c]
push dword [esi]
call fcn.0041e439
mov eax, dword [esi]
mov edx, eax
rol byte [ebx - 0x53ee020], 1
add eax, 0xa095148b
sub al, byte [ecx]
pop ecx
shl eax, 6
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
sar edx, 5
mov edx, dword [edx*4 + 0x412aa0]
shl eax, 6
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 0x4206d0
test cl, 0x80
je 0x42090a
test byte [ebp + 0x10], 2
je 0x4206d0
push 2
or edi, 0xffffffff
push edi
push dword [esi]
call fcn.00420f0f
add esp, 0xc
mov dword [ebp - 0x18], eax
call 0x19b7cdb1
call fcn.00417751
cmp dword [eax], 0x83
je 0x4206d0
push 1
lea eax, [ebp - 4]
push eax
push dword [esi]
mov byte [ebp - 4], bl
call fcn.0041fc31
add esp, 0xc
test eax, eax
jne 0x4206c0
cmp byte [ebp - 4], 0x1a
jne 0x4206c0
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
push dword [esi]
call fcn.00420d59
add esp, 0xc
cmp eax, edi
je 0x420683
push ebx
push ebx
push dword [esi]
call fcn.00420f0f
add esp, 0xc
cmp eax, edi
je 0x420683
test byte [ebp - 1], 0x80
je 0x42090a
mov edi, 0x74000
mov ecx, 0x4000
test dword [ebp + 0x10], edi
jne 0x4206f8
mov eax, dword [ebp - 0x20]
and eax, edi
jne 0x4206f5
or dword [ebp + 0x10], ecx
jmp 0x4206f8
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
and eax, edi
cmp eax, ecx
je 0x420745
cmp eax, 0x10000
je 0x420731
cmp eax, 0x14000
je 0x420731
cmp eax, 0x20000
je 0x42073f
cmp eax, 0x24000
je 0x42073f
cmp eax, 0x40000
je 0x42072b
cmp eax, 0x44000
jne 0x420748
mov byte [ebp - 2], 1
jmp 0x420748
mov ecx, dword [ebp + 0x10]
mov eax, 0x301
and ecx, eax
cmp ecx, eax
jne 0x420748
mov byte [ebp - 2], 2
jmp 0x420748
mov byte [ebp - 2], bl
test dword [ebp + 0x10], 0x70000
je 0x42090a
test byte [ebp - 1], 0x40
mov dword [ebp - 0x18], ebx
jne 0x42090a
mov eax, dword [ebp - 8]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, 0x40000000
je 0x42082e
cmp eax, 0x80000000
je 0x4207f5
cmp eax, ecx
jne 0x42090a
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x42090a
cmp eax, 2
jbe 0x4207a4
cmp eax, 4
jbe 0x4207cb
cmp eax, 5
jne 0x42090a
movsx eax, byte [ebp - 2]
xor edi, edi
dec eax
je 0x4208d7
dec eax
jne 0x42090a
mov dword [ebp - 0x18], 0xfeff
mov dword [ebp - 0x14], 2
jmp 0x4208e5
push 2
push ebx
push ebx
push dword [esi]
call fcn.0041d40e
add esp, 0x10
or eax, edx
je 0x4207a4
push ebx
push ebx
push ebx
push dword [esi]
invalid