Function at 0x82f3b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + edi + 8]
push eax
call fcn.0082fdf8
fld qword [0x882578]
fld qword [0x882578]
mov edx, eax
add esp, 4
mov dword [ebp - 0x40], edx
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8b1988]
fsub st(1)
fxch st(1)
fmul qword [0x8895b0]
fadd qword [0x8920d0]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8b1980]
fnstsw ax
test ah, 0x41
jne 0x82f416
fld st(0)
fmul qword [0x8b1978]
fsubp st(2)
fadd qword [0x882548]
fcom qword [0x8b1970]
fnstsw ax
test ah, 1
jne 0x82f3dd
fxch st(1)
fst qword [ebp - 0x3c]
fxch st(1)
fstp st(0)
fcomp qword [0x882578]
fnstsw ax
test ah, 1
je 0x82f478
push esp
pop ecx
inc esp
arpl word [eax + 0x64], si
dec ebx
bound esi, qword [edi + 0x4f]
daa
dec eax
dec edi
jnp 0x82f4a6
pop eax
daa
xor ebx, esp
int 0xde
rcr edx, cl
iretd
mov dword [ebp - 0x30], 0x82f451
mov dword [ebp - 0x24], 0x82f43f
xor eax, eax
mov byte [ebp + eax - 0x154], al
inc eax
cmp eax, 0x100
jb 0x82f488
fld qword [ebp - 0x3c]
mov byte [ebp - 4], 0
mov eax, 0xff
mov esi, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov ebx, 1
mov dword [ebp - 0x18], 0
cmp eax, ebx
jbe 0x82f4c3
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x82f4bb
cmp edi, 3
ja case.default.0x82f4c8
jmp dword [edi*4 + 0x82fbd4]
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x154]
jmp 0x82f544
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x154]
shr eax, 8
jmp 0x82f544
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x154]
shr eax, 0x10
jmp 0x82f544
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x154]
shr eax, 0x18
jmp 0x82f544
mov ecx, dword [ebp - 0x24]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x154]
add cl, al
inc edi
cmp edi, 0x16
mov byte [ebp - 4], cl
jb 0x82f557
xor edi, edi
add cl, 0x16
mov byte [ebp - 4], cl
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x18], eax
jbe 0x82f577
mov eax, edx
xor edx, edx
div dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, edx
jb 0x82f4c3
je 0x82f5af
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 - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
jne 0x82f4ab
mov dl, byte [ebp - 0x14d]
and esi, 0xff
mov byte [ebp - 4], dl
mov bl, byte [ebp - 0x151]
mov al, byte [ebp + esi - 0x154]
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0x2c], al
mov cl, byte [ebp - 0x14f]
mov al, byte [esi]
mov dl, byte [esi + 1]
add al, 9
add dl, 0x3c
shl al, 4
or al, dl
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x2c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x154]
lea esi, [ebp + eax - 0x154]
mov byte [ebp - 0xc], 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 - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [esi], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 8]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov esi, 1
mov bl, byte [ebp + edx - 0x154]
mov dl, byte [edi]
mov edi, dword [ebp - 0x20]
mov bl, byte [ebp + ebx - 0x154]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x2c], dl
xor bl, dl
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], bl
lea edi, [edx + 2]
mov dl, byte [edx + 3]
add dl, 0x3c
mov bl, byte [edi]
mov dword [ebp - 0x34], 7
add bl, 9
shl bl, 4
or dl, bl
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
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 - 0x1c]
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 - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
mov byte [ebp - 4], dl
mov byte [ebp - 0x54], dl
mov edx, dword [ebp - 0x30]
lea edi, [edx + 2]
jmp 0x82f80c
mov edi, dword [ebp - 0x38]
mov dl, byte [edi + 2]
mov bl, byte [edi + 3]
add edi, 2
add dl, 9
shl dl, 4
add bl, 0x3c
mov dword [ebp - 0x38], edi
or dl, bl
inc esi
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
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 - 0x1c]
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 - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 4], dl
jbe 0x82f91d
mov byte [ebp + esi - 0x55], dl
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x82f809
lea ebx, [esi + 1]
cmp ebx, 0x11
jge 0x82fa7c
mov edx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x30]
lea edi, [edx + esi*2]
mov edx, 0x11
sub edx, ebx
mov dword [ebp - 0x34], edx
jmp 0x82f95e
mov edi, dword [ebp - 0x38]
mov dl, byte [edi + 2]
mov bl, byte [edi + 3]
add edi, 2
add dl, 9
shl dl, 4
add bl, 0x3c
mov dword [ebp - 0x38], edi
or dl, bl
inc esi
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
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 - 0x1c]
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 - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 4], dl
jbe 0x82fa6f
mov byte [ebp + esi - 0x55], dl
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x82f95b
mov edx, dword [ebp - 0x18]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
add al, bl
mov bl, byte [ebp - 8]
mov byte [ebp - 0x28], al
inc bl
mov eax, dword [ebp - 0x28]
mov byte [ebp - 8], bl
and eax, 0xff
lea edx, [ebp + eax - 0x154]
mov al, byte [ebp + eax - 0x154]
mov byte [edi], al
mov eax, dword [ebp - 4]
and eax, 0xff
mov bl, byte [ebp + eax - 0x154]
lea eax, [ebp + eax - 0x154]
mov byte [edx], bl
mov ebx, dword [ebp - 8]
and ebx, 0xff
mov dword [ebp - 0x14], eax
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov ebx, dword [ebp - 0x10]
mov al, byte [ebp - 0xc]
mov byte [ebx], al
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x30]
and eax, 0xff
mov dword [ebp - 0x20], eax
mov dl, byte [edx]
mov al, byte [ebx + esi*2]
mov bl, byte [ebx + esi*2 + 1]
add al, 9
add bl, 0x3c
shl al, 4
or al, bl
mov ebx, dword [ebp - 0x20]
mov bl, byte [ebp + ebx - 0x154]
add bl, cl
and ebx, 0xff
mov cl, byte [ebp + ebx - 0x154]
mov ebx, dword [ebp - 0x14]
mov bl, byte [ebx]
add ecx, ebx
mov bl, byte [edi]
mov edi, dword [ebp - 0x20]
add ecx, ebx
and ecx, 0xff
xor ebx, ebx
add edx, edi
mov bl, byte [ebp + ecx - 0x154]
and edx, 0xff
mov cl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + edx - 0x154]
xor al, cl
xor al, bl
test esi, esi
jbe 0x82fb7f
mov byte [ebp + esi - 0x55], al
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov byte [ebp - 0x44], 0
test edx, edx
jne 0x82fb96
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
jbe 0x82fbc5
mov esi, dword [ebp + 8]
mov ecx, edx
xor ebx, ebx
add ecx, 2
mov bl, byte [eax + esi]
shr ebx, 4
mov bl, byte [ebp + ebx - 0x54]
mov byte [ecx - 2], bl
mov bl, byte [eax + esi]
and ebx, 0xf
inc eax
cmp eax, edi
mov bl, byte [ebp + ebx - 0x54]
mov byte [ecx - 1], bl
jb 0x82fba1
pop edi
mov byte [edx + eax*2], 0
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret