Function at 0x82e750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
fld qword [0x893578]
fld qword [0x893578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8b4850]
fsub st(1)
fxch st(1)
fmul qword [0x89a4a8]
fadd qword [0x8a3040]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8b4848]
fnstsw ax
test ah, 0x41
jne 0x82e79e
fld st(0)
fmul qword [0x8b4840]
fsubp st(2)
fadd qword [0x89a450]
fcom qword [0x8b4838]
fnstsw ax
test ah, 1
jne 0x82e765
fxch st(1)
fst qword [ebp - 0x40]
fxch st(1)
fstp st(0)
fcomp qword [0x893578]
fnstsw ax
test ah, 1
je 0x82e815
in eax, dx
xchg edi, eax
in eax, dx
cdq
jmp 0xe420ca68
mov dword [ebp - 0x34], 0x82e7c7
mov dword [ebp - 0x30], 0x82e7fd
xor eax, eax
mov byte [ebp + eax - 0x140], al
inc eax
cmp eax, 0x100
jb 0x82e825
fld qword [ebp - 0x40]
push ebx
push esi
mov byte [ebp - 0x10], 0
mov eax, 0xff
mov esi, dword [ebp - 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov ebx, 1
mov dword [ebp - 0x1c], 0
cmp eax, ebx
jbe 0x82e863
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x82e85b
cmp edi, 3
ja case.default.0x82e868
jmp dword [edi*4 + 0x82f1b8]
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x140]
jmp 0x82e8e4
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x140]
shr eax, 8
jmp 0x82e8e4
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x140]
shr eax, 0x10
jmp 0x82e8e4
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x140]
shr eax, 0x18
jmp 0x82e8e4
mov eax, dword [ebp - 0x30]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x140]
add cl, al
inc edi
cmp edi, 0x17
mov byte [ebp - 0x10], cl
jb 0x82e8f7
xor edi, edi
add cl, 0x17
mov byte [ebp - 0x10], cl
mov esi, dword [ebp - 0x10]
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 0x82e917
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jb 0x82e863
je 0x82e94f
mov bl, byte [ebp + eax - 0x140]
lea edx, [ebp + edx - 0x140]
lea ecx, [ebp + eax - 0x140]
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 0x82e84b
mov dl, byte [ebp - 0x139]
and esi, 0xff
mov byte [ebp - 0x28], dl
mov bl, byte [ebp - 0x13d]
mov al, byte [ebp + esi - 0x140]
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x1c], al
mov cl, byte [ebp - 0x13b]
mov al, byte [esi + 1]
mov dl, byte [esi]
add al, 0x70
inc dl
shl dl, 4
or al, dl
mov byte [ebp - 0x2c], al
mov eax, dword [ebp - 0x1c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x140]
lea esi, [ebp + eax - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x13f]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x140]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [esi], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x140]
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
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov esi, 1
mov bl, byte [ebp + edx - 0x140]
mov dl, byte [edi]
mov edi, dword [ebp - 0x20]
mov bl, byte [ebp + ebx - 0x140]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], dl
xor bl, dl
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x28], bl
lea edi, [edx + 2]
mov dl, byte [edx + 3]
add dl, 0x70
mov bl, byte [edi]
mov dword [ebp - 0x38], 0xb
inc bl
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
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 - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
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 - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
mov byte [ebp - 0x28], dl
movsx dx, dl
mov word [ebp - 0x178], dx
mov edx, dword [ebp - 0x34]
lea edi, [edx + 2]
lea edx, [ebp - 0x178]
mov dword [ebp - 0x30], edx
jmp 0x82ebbb
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 2]
add edx, 2
add edi, 2
mov dword [ebp - 0x30], edx
inc esi
mov dl, byte [edi + 1]
mov dword [ebp - 0x3c], edi
add dl, 0x70
inc bl
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
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 - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
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 - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x82ecda
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x82ebb8
mov edx, dword [ebp - 0x34]
inc esi
mov bl, byte [edx + esi*2 + 1]
lea edi, [edx + esi*2]
xor edx, edx
add bl, 0x70
mov dl, byte [edi]
sub edx, 0xdf
shl edx, 4
or bl, dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov byte [ebp - 0x2c], bl
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
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 - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
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 - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x82ee10
movsx dx, dl
mov word [ebp + esi*2 - 0x17a], dx
lea ebx, [esi + 1]
cmp ebx, 0x1a
jge 0x82ef71
mov edx, dword [ebp - 0x34]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x17a]
mov dword [ebp - 0x30], edx
mov edx, 0x1a
sub edx, ebx
mov dword [ebp - 0x38], edx
jmp 0x82ee3b
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x30]
add edi, 2
add ebx, 2
xor edx, edx
mov dl, byte [edi]
mov dword [ebp - 0x30], ebx
xor ebx, ebx
sub edx, 0xdf
mov bl, byte [edi + 1]
mov dword [ebp - 0x3c], edi
sub ebx, 0x90
inc esi
shl edx, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
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 - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
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 - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x82ef64
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x82ee38
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2 + 1]
mov bl, byte [edi + esi*2]
add dl, 0x70
inc bl
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
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 - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
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 - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x2c]
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x82f08f
movsx dx, dl
mov word [ebp + esi*2 - 0x17a], dx
mov edx, dword [ebp - 0x2c]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
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 - 0x140]
lea eax, [ebp + eax - 0x140]
mov byte [edi], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0xc], edx
test esi, esi
lea ebx, [ebp + ebx - 0x140]
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 0x82f190
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 bl, 0x70
inc dl
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x20]
mov dl, byte [ebp + edx - 0x140]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x140]
mov dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 0xc]
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 - 0x140]
mov cl, byte [ebp + edx - 0x140]
xor bl, cl
mov cl, byte [ebp + eax - 0x140]
xor bl, cl
movsx cx, bl
mov word [ebp + esi*2 - 0x17a], cx
pop edi
pop esi
mov word [ebp - 0x144], 0
pop ebx
call fcn.0084212c
cdq
mov ecx, 0x1a
idiv ecx
mov ax, word [ebp + edx*2 - 0x178]
mov esp, ebp
pop ebp
ret