Function at 0x47a786
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 0x47a7a8
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1a
jg 0x47ac2e
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 0x47a823
cmp dword [ebp - 0x2c], 0
je 0x47a823
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 0x47a87c
mov edx, dword [ebp - 0x2c]
push edx
push 0x58b330
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 0x47a967
cmp dword [ebp - 0x2c], 0x18
jne 0x47a8cf
push 0x58b338
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 0x47a967
cmp dword [ebp - 0x2c], 0x19
jne 0x47a91f
push 0x58b344
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 0x47a967
push 0x58b350
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 0x47a980
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 7
jg 0x47ac29
mov eax, dword [ebp + 0x18]
shl eax, 7
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x128]
mov eax, dword [ebp - 0x30]
shl eax, 4
cmp dword [edx + eax + 4], 0xffffffff
jne 0x47a9c9
push 0x58b35c
lea ecx, [ebp - 0x28]
push ecx
call fcn.004cfd40
add esp, 8
push eax
call fcn.004cfcc0
add esp, 4
mov dword [ebp - 0x38], eax
jmp 0x47abe5
mov edx, dword [ebp + 0x18]
shl edx, 7
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edx + 0x128]
mov edx, dword [ebp - 0x30]
shl edx, 4
cmp dword [ecx + edx + 8], 4
je 0x47aa07
mov eax, dword [ebp + 0x18]
shl eax, 7
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x128]
mov eax, dword [ebp - 0x30]
shl eax, 4
cmp dword [edx + eax + 8], 5
jne 0x47aac4
mov ecx, dword [ebp + 0x18]
shl ecx, 7
mov edx, dword [ebp - 0x3c]
lea eax, [edx + ecx + 0x128]
mov ecx, dword [ebp - 0x30]
shl ecx, 4
cmp dword [eax + ecx + 8], 5
jne 0x47aa71
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x140
mov eax, dword [ebp + 0x18]
shl eax, 7
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax + 0x128]
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov eax, dword [eax + ecx + 4]
shl eax, 4
lea ecx, [edx + eax + 5]
mov edx, dword [ebp + 0x18]
shl edx, 7
mov eax, dword [ebp - 0x3c]
lea edx, [eax + edx + 0x128]
mov eax, dword [ebp - 0x30]
shl eax, 4
mov edx, dword [edx + eax + 8]
lea eax, [ecx + edx*2 + 2]
mov dword [ebp - 0x34], eax
jmp 0x47aabb
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0x140
mov edx, dword [ebp + 0x18]
shl edx, 7
mov eax, dword [ebp - 0x3c]
lea edx, [eax + edx + 0x128]
mov eax, dword [ebp - 0x30]
shl eax, 4
mov edx, dword [edx + eax + 4]
shl edx, 4
lea eax, [ecx + edx + 5]
mov ecx, dword [ebp + 0x18]
shl ecx, 7
mov edx, dword [ebp - 0x3c]
lea ecx, [edx + ecx + 0x128]
mov edx, dword [ebp - 0x30]
shl edx, 4
mov ecx, dword [ecx + edx + 8]
lea edx, [eax + ecx*2]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], 4
jmp 0x47ab15
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x140
mov ecx, dword [ebp + 0x18]
shl ecx, 7
mov edx, dword [ebp - 0x3c]
lea ecx, [edx + ecx + 0x128]
mov edx, dword [ebp - 0x30]
shl edx, 4
mov ecx, dword [ecx + edx + 4]
shl ecx, 4
lea edx, [eax + ecx + 5]
mov eax, dword [ebp + 0x18]
shl eax, 7
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax + 0x128]
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov eax, dword [eax + ecx + 8]
lea ecx, [edx + eax*2]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 2
push 0
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x4c
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x4c]
call dword [edx + 0x30]
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x4c
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x4c]
call dword [eax + 0x3c]
cmp eax, dword [ebp - 0x38]
je 0x47ab5f
push 0x58b364
lea ecx, [ebp - 0x28]
push ecx
call fcn.004cf7e0
add esp, 8
mov dword [ebp - 0x38], eax
jmp 0x47abe5
cmp dword [ebp - 0x2c], 0x1a
jne 0x47ab80
mov edx, dword [ebp - 4]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0
fild qword [ebp - 0x44]
fdiv qword [0x562e40]
fstp dword [ebp - 8]
jmp 0x47abb8
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
shl ecx, 7
mov edx, dword [ebp - 0x3c]
lea eax, [edx + ecx + 0x128]
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [eax + ecx]
push edx
mov eax, dword [ebp + 0x18]
imul eax, eax, 0xdc
add eax, 0x5ff048
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00477855
fstp dword [ebp - 8]
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x18]
shl eax, 7
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x128]
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [edx + eax]
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 + 0x58abd0]
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 0x47a970
jmp 0x47a79f
mov esp, ebp
pop ebp
ret 0x14