Function at 0x8208d0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
push ebx
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x953]
mov byte [ebp - 0x954], 0
rep stosd dword es:[edi], eax
fld qword [0x88b578]
fld qword [0x88b578]
stosw word es:[edi], ax
stosb byte es:[edi], al
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8a57c0]
fsub st(1)
fxch st(1)
fmul qword [0x89a838]
fadd qword [0x8a57b8]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8a57b0]
fnstsw ax
test ah, 0x41
jne 0x82093a
fld st(0)
fmul qword [0x8a57a8]
fsubp st(2)
fadd qword [0x892528]
fcom qword [0x8a57a0]
fnstsw ax
test ah, 1
jne 0x820901
fxch st(1)
fst qword [ebp - 0x3c]
fxch st(1)
fstp st(0)
fcomp qword [0x88b578]
fnstsw ax
test ah, 1
je 0x8209a8
and dword [eax], esi
xor ecx, dword [edi + 0x73]
inc ecx
dec esp
bound esp, qword [ecx + 0x55]
pop ebp
push esi
cmp edx, dword [esi + 0x6d]
cmp eax, 0x7b253359
push ebp
dec esi
sub ebp, esi
sub edi, esp
xor ebp, esi
sub esi, ebx
xor dh, dh
xor eax, 0x2aef2cf8
imul dword [edi]
invalid
mov dword [ebp - 0x34], 0x820979
mov dword [ebp - 0x30], 0x820963
xor eax, eax
mov byte [ebp + eax - 0x154], al
inc eax
cmp eax, 0x100
jb 0x8209b8
fld qword [ebp - 0x3c]
mov byte [ebp - 0xc], 0
mov eax, 0xff
mov esi, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x18], eax
mov ebx, 1
mov dword [ebp - 0x1c], 0
cmp eax, ebx
jbe 0x8209f3
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x8209eb
cmp edi, 3
ja case.default.0x8209f8
jmp dword [edi*4 + 0x821354]
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x154]
jmp 0x820a74
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x154]
shr eax, 8
jmp 0x820a74
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x154]
shr eax, 0x10
jmp 0x820a74
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x154]
shr eax, 0x18
jmp 0x820a74
mov eax, dword [ebp - 0x30]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x154]
add cl, al
inc edi
cmp edi, 0x1a
mov byte [ebp - 0xc], cl
jb 0x820a87
xor edi, edi
add cl, 0x1a
mov byte [ebp - 0xc], cl
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jbe 0x820aa7
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jb 0x8209f3
je 0x820adf
mov bl, byte [ebp + eax - 0x154]
lea edx, [ebp + edx - 0x154]
lea ecx, [ebp + eax - 0x154]
mov al, byte [edx]
xor bl, al
mov byte [ecx], bl
mov al, bl
mov bl, byte [edx]
xor bl, al
mov byte [edx], bl
mov al, byte [ecx]
mov dl, bl
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x8209db
mov edi, dword [ebp - 0x34]
mov dl, byte [ebp - 0x14d]
and esi, 0xff
mov byte [ebp - 0x28], dl
mov dl, byte [edi + 1]
mov bl, byte [ebp - 0x151]
mov al, byte [ebp + esi - 0x154]
add dl, 0x13
mov byte [ebp - 0x1c], al
mov al, byte [edi]
add al, 7
xor esi, esi
shl al, 4
or al, dl
mov cl, byte [ebp - 0x14f]
mov byte [ebp - 0x2c], al
mov eax, dword [ebp - 0x1c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x154]
lea edi, [ebp + eax - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x153]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x154]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x20]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x154]
add edx, edi
mov edi, dword [ebp - 0x34]
and edx, 0xff
xor bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], dl
xor bl, dl
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x30], 8
jmp 0x820c30
mov edi, dword [ebp - 0x38]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 7
add dl, 0x13
mov dword [ebp - 0x38], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x820d41
mov byte [ebp + esi - 0x55], dl
mov edx, dword [ebp - 0x30]
dec edx
mov dword [ebp - 0x30], edx
jne 0x820c2d
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 7
add dl, 0x13
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x820e68
mov byte [ebp + esi - 0x55], dl
mov edx, dword [ebp - 0x34]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
add bl, 7
mov dl, byte [edi + 1]
add dl, 0x13
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x820f79
mov byte [ebp + esi - 0x55], dl
lea ebx, [esi + 1]
cmp ebx, 0x14
jge 0x8210b8
mov edx, dword [ebp - 0x34]
lea edi, [edx + esi*2]
mov edx, 0x14
sub edx, ebx
mov dword [ebp - 0x30], edx
jmp 0x820f9a
mov edi, dword [ebp - 0x38]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 7
add dl, 0x13
mov dword [ebp - 0x38], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x8210ab
mov byte [ebp + esi - 0x55], dl
mov edx, dword [ebp - 0x30]
dec edx
mov dword [ebp - 0x30], edx
jne 0x820f97
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 7
add dl, 0x13
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp - 0x2c]
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x8211cf
mov byte [ebp + esi - 0x55], dl
mov edx, dword [ebp - 0x2c]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp - 4]
mov byte [ebp - 0x24], al
inc bl
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x154]
lea eax, [ebp + eax - 0x154]
mov byte [edi], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x10], edx
test esi, esi
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
jbe 0x8212c9
mov edx, dword [ebp - 8]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x34]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
add dl, 7
add bl, 0x13
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x20]
mov dl, byte [ebp + edx - 0x154]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x154]
mov dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
mov dl, byte [edx]
add eax, edi
add ecx, edx
xor edx, edx
and ecx, 0xff
and eax, 0xff
mov dl, byte [ebp + ecx - 0x154]
mov cl, byte [ebp + edx - 0x154]
xor bl, cl
mov cl, byte [ebp + eax - 0x154]
xor bl, cl
mov byte [ebp + esi - 0x55], bl
mov byte [ebp - 0x40], 0
mov eax, dword [0x8cd090]
test eax, eax
jle 0x821317
mov edx, 0x8ccfd8
mov dword [ebp - 0x30], eax
mov edi, dword [edx]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp - 0x954]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 4
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x30]
mov ecx, ebx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x30], eax
jne 0x8212de
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x954]
push ecx
push edx
call fcn.0082dd90
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x8cd018
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret