Function at 0x4ad021eb
Capabilities:
Encrypt data using speck

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.4ad01f01
mov eax, dword [0x4ad2fa24]
mov ax, word [eax - 2]
mov ecx, dword [0x4ad2b9f8]
mov word [0x4ad21080], ax
mov eax, ecx
and eax, 3
cmp eax, 1
mov edi, 0x4ad21082
jne 0x4ad08266
and word [0x4ad25082], 0
push 0x2000
push dword [0x4ad2b9fc]
push edi
call dword [fcn.4ad010c8]
push edi
call dword [fcn.4ad01118]
mov ecx, dword [0x4ad2b9fc]
lea eax, [ecx + eax*2]
add esp, 0x10
mov dword [0x4ad2b9fc], eax
mov dword [0x4ad2fa24], edi
call fcn.4ad022e7
mov eax, dword [0x4ad2fa24]
pop edi
pop esi
mov dword [0x4ad2fa30], eax
pop ebx
leave
ret
jbe 0x4ad02254
cmp eax, 3
ja 0x4ad02254
xor ebx, ebx
cmp eax, 2
je 0x4ad0bec8
cmp dword [0x4ad2b9fc], ebx
je 0x4ad0bec8
call fcn.4ad01f01
cmp dword [0x4ad2b9fc], ebx
mov esi, 0x4ad2fae0
je 0x4ad0badb
lea eax, [ebp - 4]
push eax
push 0x2000
push esi
push dword [0x4ad2b9fc]
call dword [fcn.4ad01104]
pop ecx
push eax
call fcn.4ad0856f
cmp dword [0x4ad2b9e8], ebx
jne 0x4ad14743
cmp eax, ebx
je 0x4ad08794
cmp dword [ebp - 4], ebx
jle 0x4ad08794
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
mov eax, dword [0x4ad2b9fc]
je 0x4ad087a5
cmp dword [0x4ad33b2c], ebx
je 0x4ad08615
push dword [ebp - 4]
push esi
push edi
call fcn.4ad022ab
push edi
mov dword [ebp - 4], eax
mov word [eax*2 + 0x4ad21082], bx
call dword [fcn.4ad01118]
mov dword [esp], 0x4ad083a0
push edi
mov esi, eax
call fcn.4ad029e3
cmp eax, esi
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4ad0875c
lea edx, [eax*2 + 0x4ad21082]
cmp word [edx], 0x1a
je 0x4ad147e1
cmp word [edx], 0xa
jne 0x4ad087b2
inc edx
sub ecx, eax
inc edx
dec ecx
mov esi, ecx
mov dword [ebp - 8], 1
push dword [0x4ad2b9fc]
mov word [edx], bx
call fcn.4ad02c7d
test eax, eax
jne 0x4ad02254
push dword [ebp - 8]
neg esi
push ebx
push esi
push dword [0x4ad2b9fc]
call dword [fcn.4ad01104]
pop ecx
push eax
call dword [fcn.4ad01268]
cmp dword [0x4ad2b9fc], ebx
jne 0x4ad02254
jmp 0x4ad147eb
cmp dword [ebp - 4], ebx
je 0x4ad082f9
cmp eax, ebx
jne 0x4ad082f9
mov dword [0x4ad33b2c], 1
jmp 0x4ad082f9
cmp ecx, ebx
je 0x4ad08332
cmp eax, 0x2000
jae 0x4ad14777
jmp 0x4ad02254
mov dword [ebp - 4], ebx
call dword [fcn.4ad01254]
mov dword [ebp - 8], eax
jmp 0x4ad082df
cmp eax, ebx
je 0x4ad1474d
jmp 0x4ad082ed
xor esi, esi
mov dword [ebp - 8], 2
jmp 0x4ad0835b
adc byte [eax + 0x68], dl
invalid
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x4ad0beef
push esi
call fcn.4ad0d25e
cmp eax, 0xffffffff
jne 0x4ad0bee3
mov ebx, 0x80070057
jmp 0x4ad0beef
test eax, eax
je 0x4ad0beef
mov byte [esi], bl
inc esi
sub eax, 1
jne 0x4ad0bee7
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
add esi, dword [ecx]
cmp byte [ecx + eax*2 - 0x73], bl
cmp ch, byte [ecx]
xchg dword [ecx], edx
pop eax
adc esp, dword [ebx - 0x528252f2]
fdivp st(2)
out 0x6e, al
retf 0xb8d0
add eax, 0x35437bd6
push 0x44
xor ch, ch
mov ebx, 0x4937ed21
and ebp, ebp
aaa
dec ecx
jg 0x4ad14705
inc esp
or dword [ebx + 0x2bc059da], ebx
xchg edx, eax
clc
push cs
shl byte [esi], 0x4b
pop ss
mov ch, bh
or bl, dl
push esp
out 0x8c, eax
or ecx, dword [edi - 0x9ad7276]
mov al, byte [0x664fa879]
push es
xor bh, byte [ecx + 0x2f12a8b]
add eax, dword [ecx]
add byte [ecx], al
mov dword [0x301b0182], eax
mov ebp, dword [edx]
int1
add al, byte [ebx]
add dword [eax], eax
add dword [ebx + 0x301b0182], esp
add byte [ecx], 0x17
xor byte [0x1d550306], bl
push cs
add al, 0x16
add al, 0x14
jl 0x4ad147a1
dec edx
or edi, dword [ebp - 5]
dec edi
call [esi + 0x10]
sub al, 0x3d
jns 0x4ad1480f
and byte [ebp + 0x42], cl
dec ebp
inc edx
push eax
mov byte [ebp + 0x30], bl
pop ds
push es
add edx, dword [ebp + 0x1d]
and eax, dword [eax + ebx]
xor byte [esi], dl
adc byte [edx*8 - 0x75a3c59d], 0x31
nop
inc ebx
jnp 0x4ad1483a
inc esi
sbb eax, ebp
xor ebp, dword [eax + 0x5a]
test dword [ebp + 0x55], ebp
xor byte [esi + 6], dl
add edx, dword [ebp + 0x1d]
pop ds
add al, 0x4f
xor byte [ebp + 0x30], cl
dec ebx
mov al, byte [0x8647a049]
inc ebp
push 0x3a707474
das
das
arpl word [edx + 0x6c], si
insd dword es:[edi], dx
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x4ad1481d
outsd dx, dword [esi]
je 0x4ad1481d
arpl word [edi + 0x6d], bp
das
jo 0x4ad14860
imul ebp, dword [edi], 0x2f6c7263
jo 0x4ad1486f
outsd dx, dword [esi]
jne 0x4ad14864
je 0x4ad14876
das
jb 0x4ad1488b
add al, byte [esi + 0x7474683e]
jo 0x4ad1487c
imul ebp, dword [ebp + 0x53], 0x43506174
or al, 6