Function at 0x47ac34
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
jmp 0x47ac56
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1a
jg 0x47b0f8
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 0x47acd1
cmp dword [ebp - 0x2c], 0
je 0x47acd1
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 0x47ad2a
mov edx, dword [ebp - 0x2c]
push edx
push 0x58b380
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 0x47ae15
cmp dword [ebp - 0x2c], 0x18
jne 0x47ad7d
push 0x58b388
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 0x47ae15
cmp dword [ebp - 0x2c], 0x19
jne 0x47adcd
push 0x58b394
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 0x47ae15
push 0x58b3a0
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 0x47ae2e
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0xa
jg 0x47b0f3
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0x3ac], 0xffffffff
jne 0x47ae6d
push 0x58b3ac
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 0x47b0af
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0x3b0], 4
je 0x47ae97
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
cmp dword [eax + edx + 0x3b0], 5
jne 0x47af22
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
cmp dword [edx + ecx + 0x3b0], 5
jne 0x47aee3
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 + 0x3ac]
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 + 0x3b0]
lea ecx, [edx + eax*2 + 2]
mov dword [ebp - 0x34], ecx
jmp 0x47af19
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 + 0x3ac]
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 + 0x3b0]
lea eax, [ecx + edx*2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 4
jmp 0x47af5f
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 + 0x3ac]
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 + 0x3b0]
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 0x47afa9
push 0x58b3b4
lea eax, [ebp - 0x28]
push eax
call fcn.004cf7e0
add esp, 8
mov dword [ebp - 0x38], eax
jmp 0x47b0af
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx + ecx + 0x3b4]
cmp eax, 1
jne 0x47b02f
cmp dword [ebp - 0x2c], 0x1a
jne 0x47afe1
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 0x47b006
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 + 0x3a8]
push edx
push 0x60c7c8
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 + 0x3a8]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004806c5
mov dword [ebp - 0x38], eax
jmp 0x47b0af
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax + edx + 0x3b4]
test ecx, ecx
jne 0x47b0af
cmp dword [ebp - 0x2c], 0x1a
jne 0x47b066
mov edx, dword [ebp - 4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0
fild qword [ebp - 0x4c]
fdiv qword [0x562e40]
fstp dword [ebp - 8]
jmp 0x47b08b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + ecx + 0x3a8]
push eax
push 0x5ff498
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 - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + eax + 0x3a8]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.004806c5
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 - 0x30]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edx*4 + 0x58abf0]
imul ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x3c]
add ecx, dword [edx + 0x6c]
push ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x47ae1e
jmp 0x47ac4d
mov esp, ebp
pop ebp
ret 0x10