Function at 0x47a35b
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
jmp 0x47a37d
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1a
jg 0x47a780
mov eax, dword [ebp - 0x2c]
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
test eax, eax
jne 0x47a3f8
cmp dword [ebp - 0x2c], 0
je 0x47a3f8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x18]
mov dword [ebp + 0xc], edx
push 0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + eax - 1]
mov edx, dword [ebp - 0x3c]
imul ecx, dword [edx + 0x18]
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + ecx - 1]
mov eax, dword [ebp - 0x3c]
imul edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, edx
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
cmp dword [ebp - 0x2c], 0x17
jg 0x47a451
mov edx, dword [ebp - 0x2c]
push edx
push 0x58b2e0
lea eax, [ebp - 0x28]
push eax
call fcn.004cf7e0
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
shl eax, 1
mov ecx, dword [ebp - 0x3c]
imul eax, dword [ecx + 0x18]
mov edx, dword [ebp + 0xc]
add edx, eax
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x14]
imul ecx, ecx, 5
mov edx, dword [ebp + 8]
add edx, ecx
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x47a53c
cmp dword [ebp - 0x2c], 0x18
jne 0x47a4a4
push 0x58b2e8
lea edx, [ebp - 0x28]
push edx
call fcn.004cf7e0
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
shl edx, 1
mov eax, dword [ebp - 0x3c]
imul edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, edx
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x47a53c
cmp dword [ebp - 0x2c], 0x19
jne 0x47a4f4
push 0x58b2f4
lea edx, [ebp - 0x28]
push edx
call fcn.004cf7e0
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
shl edx, 1
mov eax, dword [ebp - 0x3c]
imul edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, edx
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x47a53c
push 0x58b300
lea edx, [ebp - 0x28]
push edx
call fcn.004cf7e0
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
shl edx, 1
mov eax, dword [ebp - 0x3c]
imul edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, edx
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov dword [ebp - 0x30], 0
jmp 0x47a555
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 8
jg 0x47a77b
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0x9c], 0xffffffff
jne 0x47a594
push 0x58b30c
lea edx, [ebp - 0x28]
push edx
call fcn.004cfd40
add esp, 8
push eax
call fcn.004cfcc0
add esp, 4
mov dword [ebp - 0x38], eax
jmp 0x47a737
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0xa0], 4
je 0x47a5be
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
cmp dword [eax + edx + 0xa0], 5
jne 0x47a649
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
cmp dword [edx + ecx + 0xa0], 5
jne 0x47a60a
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x140
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + ecx + 0x9c]
shl ecx, 4
lea edx, [eax + ecx + 5]
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + eax + 0xa0]
lea ecx, [edx + eax*2 + 2]
mov dword [ebp - 0x34], ecx
jmp 0x47a640
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x140
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + eax + 0x9c]
shl eax, 4
lea ecx, [edx + eax + 5]
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + edx + 0xa0]
lea eax, [ecx + edx*2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 4
jmp 0x47a686
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0x140
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + edx + 0x9c]
shl edx, 4
lea eax, [ecx + edx + 5]
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + ecx + 0xa0]
lea edx, [eax + ecx*2]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], 2
push 0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x4c
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x4c]
call dword [eax + 0x30]
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x4c
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x4c]
call dword [edx + 0x3c]
cmp eax, dword [ebp - 0x38]
je 0x47a6cd
push 0x58b314
lea eax, [ebp - 0x28]
push eax
call fcn.004cf7e0
add esp, 8
mov dword [ebp - 0x38], eax
jmp 0x47a737
cmp dword [ebp - 0x2c], 0x1a
jne 0x47a6ee
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
fild qword [ebp - 0x44]
fdiv qword [0x562e40]
fstp dword [ebp - 8]
jmp 0x47a713
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + eax + 0x98]
push edx
push 0x60ca18
mov ecx, dword [ebp - 0x3c]
call fcn.00477855
fstp dword [ebp - 8]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx + 0x98]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004806c5
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 1
mov edx, dword [ebp - 0x3c]
imul ecx, dword [edx + 0x18]
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ecx*4 + 0x58aba8]
imul eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x3c]
add eax, dword [ecx + 0x6c]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x47a545
jmp 0x47a374
mov esp, ebp
pop ebp
ret 0x10