Function at 0x10062680
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov dword [esp + 0x1c], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov dword [esp + 0x14], edx
mov ebx, eax
mov edx, ecx
mov dword [esp + 0x24], ecx
xor ecx, 0x6c796765
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
xor eax, 0x6e657261
xor ebx, 0x70736575
xor edx, 0x736f6d65
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov dword [esp + 0x38], eax
mov edx, esi
xor esi, 0x79746573
xor edi, 0x74656462
xor ecx, 0x646f7261
xor edx, 0x6e646f6d
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.10062170
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
shl edx, 0x18
xor esi, edi
mov dword [esp + 0x10], edi
mov edi, eax
or edx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
xor ecx, edx
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
adc ebx, edx
shld edi, edx, 0xd
shld edx, eax, 0xd
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebx
xor edx, ebx
mov ebx, dword [esp + 0xc]
xor edi, ebx
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
adc eax, ecx
mov dword [esp + 0x70], eax
mov eax, esi
shrd esi, ecx, 0x10
shld eax, ecx, 0x10
xor esi, dword [esp + 0x70]
xor eax, dword [esp + 8]
add dword [esp + 4], eax
mov ecx, eax
adc ebx, esi
shld ecx, esi, 0x15
shrd eax, esi, 0xb
mov esi, edi
xor eax, ebx
xor ecx, dword [esp + 4]
add dword [esp + 8], edi
adc dword [esp + 0x70], edx
shld esi, edx, 0x11
shrd edi, edx, 0xf
mov edx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], 0x10
xor esi, dword [esp + 8]
xor edx, dword [esp + 0x18]
xor dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
xor edi, ebx
xor ebx, 0xff
add dword [esp + 4], esi
adc edx, edi
mov dword [esp + 0xc], edx
mov edx, esi
shrd esi, edi, 0x13
shld edx, edi, 0xd
xor esi, dword [esp + 0xc]
mov edi, ecx
xor edx, dword [esp + 4]
add ebx, ecx
adc dword [esp + 8], eax
shld edi, eax, 0x10
shrd ecx, eax, 0x10
xor edi, ebx
xor ecx, dword [esp + 8]
add dword [esp + 0xc], edi
mov eax, edi
adc dword [esp + 4], ecx
shld eax, ecx, 0x15
shrd edi, ecx, 0xb
mov ecx, edx
xor edi, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edx
adc dword [esp + 8], esi
shld ecx, esi, 0x11
shrd edx, esi, 0xf
xor ecx, ebx
xor edx, dword [esp + 8]
add dword [esp + 0xc], ecx
mov esi, ecx
adc dword [esp + 4], edx
shld esi, edx, 0xd
shrd ecx, edx, 0x13
mov edx, eax
xor ecx, dword [esp + 4]
xor esi, dword [esp + 0xc]
add dword [esp + 8], eax
adc ebx, edi
shld edx, edi, 0x10
shrd eax, edi, 0x10
xor edx, dword [esp + 8]
xor eax, ebx
add dword [esp + 4], edx
mov edi, edx
adc dword [esp + 0xc], eax
shld edi, eax, 0x15
shrd edx, eax, 0xb
mov eax, esi
xor edx, dword [esp + 0xc]
xor edi, dword [esp + 4]
add dword [esp + 8], esi
adc ebx, ecx
shld eax, ecx, 0x11
shrd esi, ecx, 0xf
xor eax, dword [esp + 8]
xor esi, ebx
add dword [esp + 4], eax
mov ecx, eax
adc dword [esp + 0xc], esi
shld ecx, esi, 0xd
shrd eax, esi, 0x13
mov esi, edi
xor ecx, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edi
adc dword [esp + 8], edx
shld esi, edx, 0x10
shrd edi, edx, 0x10
mov edx, dword [esp + 8]
xor esi, ebx
xor edi, edx
shld esi, edi, 0x15
add ebx, ecx
adc edx, eax
shrd eax, ecx, 0xf
mov ecx, dword [esp + 0x14]
xor eax, esi
xor eax, edx
xor eax, ebx
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov ecx, edi
mov dword [esp + 4], esi
and ecx, eax
shr eax, 0x19
movd xmm0, eax
movdqu xmm1, xmmword [esi + ecx]
lea edx, [ecx + 0x10]
mov dword [esp + 8], ecx
punpcklbw xmm0, xmm0
and edx, edi
pshuflw xmm0, xmm0, 0xe0
mov dword [esp + 0xc], edx
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x80], xmm0
pcmpeqb xmm0, xmm1
movdqa xmmword [esp + 0x70], xmm1
pcmpeqd xmm1, xmm1
pmovmskb ebx, xmm0
test bx, bx
je 0x10062a20
mov ecx, dword [esp + 8]
mov eax, ebx
mov dword [esp + 8], ecx
lea ebx, [eax - 1]
and ebx, eax
bsf ax, ax
movzx eax, ax
add eax, ecx
mov ecx, dword [ebp + 8]
and eax, edi
neg eax
lea esi, [eax + eax*4]
mov eax, dword [esp + 4]
lea edx, [eax + esi*8 - 0x28]
mov dword [esp + 0x18], edx
call fcn.10035240
pcmpeqd xmm1, xmm1
test al, al
je 0x10062954
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + esi*8 - 0x1c]
jne 0x10062954
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x64], ebx
xor ebx, ebx
mov edi, dword [ecx + 8]
mov esi, dword [edx + esi*8 - 0x20]
nop dword [eax]
cmp eax, ebx
je 0x10062a8e
movzx edx, byte [edi + ebx]
mov ch, byte [esi + ebx]
inc ebx
mov cl, dl
add cl, 0xbf
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, dl
mov dl, ch
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, ch
cmp cl, dl
je 0x100629d0
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
jmp 0x10062954
movdqa xmm0, xmmword [esp + 0x70]
mov ecx, dword [esp + 0xc]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
test ax, ax
jne 0x10062a76
mov edx, dword [esp + 0x10]
movdqa xmm0, xmmword [esp + 0x80]
lea eax, [ecx + edx + 0x10]
add edx, 0x10
mov dword [esp + 0x10], edx
mov edx, dword [esp + 4]
and eax, edi
mov dword [esp + 0xc], eax
movdqu xmm2, xmmword [edx + ecx]
pcmpeqb xmm0, xmm2
movdqa xmmword [esp + 0x70], xmm2
pmovmskb ebx, xmm0
test bx, bx
je 0x10062a20
jmp 0x10062961
mov byte [esp + 0x20], 3
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x14]
pcmpeqd xmm1, xmm1
lea ecx, [eax + ecx*8]
mov eax, dword [esi + 0x14]
mov edx, eax
sub edx, ecx
sar edx, 3
imul edi, edx, 0xcccccccd
lea edx, [edi - 0x10]
movdqu xmm2, xmmword [eax + edi]
mov dword [esp + 8], edi
mov di, 0x10
and edx, dword [esi + 0x10]
mov si, 0x10
pcmpeqb xmm2, xmm1
movdqu xmm0, xmmword [eax + edx]
pmovmskb ebx, xmm2
pcmpeqb xmm0, xmm1
pmovmskb ecx, xmm0
test cx, cx
je 0x10062ae9
bsr si, cx
xor esi, 0xf
test bx, bx
je 0x10062af2
bsf di, bx
movzx edi, di
mov cl, 0x80
add edi, esi
cmp di, 0xf
ja 0x10062b08
mov ecx, dword [esp + 0x14]
inc dword [ecx + 0x18]
mov cl, 0xff
mov esi, dword [esp + 8]
mov byte [eax + esi], cl
mov byte [edx + eax + 0x10], cl
mov eax, dword [esp + 0x14]
dec dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
movsd xmm0, qword [eax]
movq xmm1, qword [eax + 8]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x38], xmm0
movq xmm0, qword [eax + 0x10]
mov al, byte [esp + 0x20]
movq qword [esp + 0x28], xmm1
cmp al, 3
movq qword [esp + 0x30], xmm0
je 0x10062a7b
movq xmm0, qword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
movq xmm1, qword [esp + 0x40]
cmp al, 2
movq qword [ecx + 8], xmm1
movq qword [ecx], xmm0
jb 0x10062ba1
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 8]
push dword [esi + 4]
push dword [esi]
push ecx
call dword [eax + 4]
add esp, 0xc
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
call dword [eax + 4]
add esp, 0xc
jmp 0x10062a86