Function at 0x54f167
Capabilities:
Encrypt data using speck
Packed with generic packer

Disassembly:
xor ecx, ecx
pop esi
xchg dword [esi], ecx
jecxz 0x54f162
sub esi, ecx
mov ebx, esi
lodsd eax, dword [esi]
sub ebx, eax
lodsd eax, dword [esi]
add eax, ebx
push eax
xchg edi, eax
lodsd eax, dword [esi]
xchg ecx, eax
rep movsd dword es:[edi], dword [esi]
pop esi
lodsd eax, dword [esi]
push esi
xchg ecx, eax
add dword [esi], ebx
lodsd eax, dword [esi]
loop 0x54f182
lodsd eax, dword [esi]
lea ebp, [esi + 0x10]
add dword [ebp], ebx
lea edi, [ebp + 0x1c]
mov ch, 0x1c
rep stosd dword es:[edi], eax
pop esi
lodsd eax, dword [esi]
push ebx
push eax
push ecx
xchg edi, eax
pop eax
lea edx, [ebp + eax*4 + 0x5c]
call dword [esi]
jb 0x54f1fb
sub al, 3
jae 0x54f1aa
mov al, 0
cmp al, 7
jb 0x54f1b0
sub al, 3
push eax
movzx ebx, byte [edi - 1]
shl ebx, 3
mov bl, 0
lea ebx, [ebx + ebx*2]
lea ebx, [ebp + ebx*4 + 0x100c]
mov al, 1
jecxz 0x54f1f1
mov edx, edi
sub edx, dword [ebp + 0xc]
mov ch, byte [edx]
xor edx, edx
test cl, ch
setne dh
push edx
inc dh
mov dl, al
lea edx, [ebx + edx*4]
call dword [esi]
pop edx
lahf
adc al, al
shr cl, 1
je 0x54f1f6
sahf
sbb dh, dl
je 0x54f1d1
mov ah, 0
xor ecx, ecx
mov ch, 1
call dword [esi + 8]
xor ecx, ecx
jmp dword [esi + GetProcAddress]
mov cl, 0x30
mov ebx, dword [ebp + 0xc]
add edx, ecx
call dword [esi]
jae 0x54f252
add edx, ecx
call dword [esi]
jb 0x54f225
add edx, ecx
call dword [esi]
jb 0x54f23b
cmp al, 7
mov al, 9
jb 0x54f21a
mov al, 0xb
push eax
mov eax, edi
sub eax, dword [ebp + 0xc]
mov al, byte [eax]
jmp dword [esi + 0x18]
add edx, 0x60
call dword [esi]
xchg dword [ebp + 0x10], ebx
jae 0x54f23b
add edx, ecx
call dword [esi]
xchg dword [ebp + 0x14], ebx
jae 0x54f23b
xchg dword [ebp + 0x18], ebx
cmp al, 7
mov al, 8
jb 0x54f243
mov al, 0xb
push eax
push ebx
mov edx, ebp
add edx, dword [esi + 0x38]
call dword [esi + LoadLibraryA]
pop ebx
xchg ecx, eax
jmp dword [esi + 0x30]
cmp al, 7
mov al, 7
jb 0x54f25a
mov al, 0xa
push eax
xchg dword [ebp + 0x10], ebx
xchg dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov edx, ebp
add edx, dword [esi + 0x3c]
call dword [esi + LoadLibraryA]
push 3
pop ecx
push eax
dec eax
cmp eax, ecx
jb 0x54f277
mov eax, ecx
shl eax, 6
mov cl, pe_nt_image_headers32
lea ebx, [ebp + eax*4 + 0x37c]
call dword [esi + 4]
cmp al, 4
mov ebx, eax
jb 0x54f2eb
xor ebx, ebx
shr eax, 1
adc ebx, ebx
dec eax
inc ebx
xchg ecx, eax
inc ebx
shl ebx, cl
cmp cl, 5
lea edx, [ebp + ebx*4 + 0x17c]
jbe 0x54f2d2
sub cl, 4
xor eax, eax
mov edx, dword [ebp]
shr dword [ebp + 8], 1
mov edx, dword [edx]
bswap edx
sub edx, dword [ebp + 4]
add eax, eax
cmp edx, dword [ebp + 8]
jb 0x54f2c4
mov edx, dword [ebp + 8]
inc eax
add dword [ebp + 4], edx
call dword [esi + 0x10]
loop 0x54f2a9
mov cl, 4
shl eax, cl
add ebx, eax
lea edx, [ebp + 0x1c]
xor eax, eax
push ebx
inc eax
push ecx
shl eax, cl
mov ebx, edx
xchg ecx, eax
call dword [esi + 4]
xor edx, edx
pop ecx
shr eax, 1
adc edx, edx
loop 0x54f2e2
pop ebx
add ebx, edx
inc ebx
pop ecx
mov dword [ebp + 0xc], ebx
push esi
mov esi, edi
sub esi, ebx
rep movsb byte es:[edi], byte [esi]
lodsb al, byte [esi]
pop esi
mov cl, 0x80
stosb byte es:[edi], al
cmp edi, dword [esi + 0x24]
jae 0x54f304
jmp dword [esi + 0x20]
pop eax
mov ecx, dword [esi + 0x40]
pop edi
pop edx
push edi
jecxz 0x54f328
mov al, byte [edi]
inc edi
add al, 0x18
cmp al, 2
jae 0x54f30d
mov eax, dword [edi]
cmp al, 0x1b
jne 0x54f30d
mov al, 0
bswap eax
add eax, dword [esi + 0x14]
sub eax, edi
stosd dword es:[edi], eax
loop 0x54f30d
mov ebx, dword [esi + 0x28]
push esi
push edx
mov esi, dword [esi + 0x2c]
inc esi
lodsd eax, dword [esi]
test eax, eax
pop edx
je 0x54f359
add eax, edx
push edx
push esi
xchg edi, eax
call dword [ebx - 4]
xchg ebp, eax
lodsb al, byte [esi]
test al, al
jne 0x54f340
cmp byte [esi], al
je 0x54f330
mov eax, esi
jns 0x54f352
inc esi
xor eax, eax
lodsw ax, word [esi]
push eax
push ebp
call dword [ebx]
stosd dword es:[edi], eax
jmp 0x54f340
pop ecx
pop edi
mov ecx, dword [ecx + 0x44]
jecxz 0x54f36d
xor eax, eax
lodsb al, byte [esi]
cmp al, 4
jb 0x54f373
add edi, eax
add dword [edi], edx
loop 0x54f360
sub al, 1
jb 0x54f37f
je 0x54f383
shl eax, 8
lodsb al, byte [esi]
jmp 0x54f367
lodsw ax, word [esi]
jmp 0x54f367
lodsd eax, dword [esi]
jmp 0x54f367