Function at 0x829150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
fld qword [0x882578]
fld qword [0x882578]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8b1878]
fsub st(1)
fxch st(1)
fmul qword [0x890f70]
fadd qword [0x892528]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8b1870]
fnstsw ax
test ah, 0x41
jne 0x8291a8
fld st(0)
fmul qword [0x8b1868]
fsubp st(2)
fadd qword [0x8894a0]
fcom qword [0x8b1860]
fnstsw ax
test ah, 1
jne 0x82916f
fxch st(1)
fst qword [ebp - 0x44]
fxch st(1)
fstp st(0)
fcomp qword [0x882578]
fnstsw ax
test ah, 1
je 0x829226
jb 0x82921c
insd dword es:[edi], dx
and eax, 0x3d256a56
dec esi
dec edx
pop edi
xor ah, byte [eax + 0x23]
and eax, 0x214a3565
cmp ah, byte [eax + 0x7d]
jns 0x82920b
push ebp
inc edi
je 0x829267
aas
cmp byte [eax], dh
inc ebp
xchg edx, eax
in eax, 0x87
in al, dx
invalid
invalid
in al, 0x85
in al, dx
invalid
mov dword [ebp - 0x2c], 0x8291f1
mov dword [ebp - 0x14], 0x8291d1
xor eax, eax
mov byte [ebp + eax - 0x15c], al
inc eax
cmp eax, 0x100
jb 0x829236
fld qword [ebp - 0x44]
mov byte [ebp - 4], 0
mov eax, 0xff
mov esi, dword [ebp - 4]
push ebx
mov dword [ebp - 0x20], eax
mov ebx, 1
mov dword [ebp - 0x10], 0
cmp eax, ebx
jbe 0x829270
or byte [ebp + 0x3b011b5c], cl
fdiv dword [edx - 8]
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x829268
cmp edi, 3
ja case.default.0x829275
jmp dword [edi*4 + 0x82978c]
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x15c]
jmp 0x8292f1
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x15c]
shr eax, 8
jmp 0x8292f1
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x15c]
shr eax, 0x10
jmp 0x8292f1
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x15c]
shr eax, 0x18
jmp 0x8292f1
mov eax, dword [ebp - 0x14]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x15c]
add cl, al
inc edi
cmp edi, 0x24
mov byte [ebp - 4], cl
jb 0x829304
xor edi, edi
add cl, 0x24
mov byte [ebp - 4], cl
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x10], eax
jbe 0x829324
mov eax, edx
xor edx, edx
div dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, edx
jb 0x829270
je 0x82935c
mov bl, byte [ebp + eax - 0x15c]
lea edx, [ebp + edx - 0x15c]
lea ecx, [ebp + eax - 0x15c]
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 - 0x20]
dec eax
mov dword [ebp - 0x20], eax
jne 0x829258
mov cl, byte [ebp - 0x157]
mov dl, byte [ebp - 0x155]
and esi, 0xff
mov byte [ebp - 4], cl
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x24], dl
mov al, byte [ebp + esi - 0x15c]
mov bl, byte [ebp - 0x159]
mov byte [ebp - 0x28], al
mov al, byte [ecx]
mov cl, byte [ecx + 1]
mov edx, dword [ebp - 0x28]
add al, 0xd
add cl, 0x1f
shl al, 4
or al, cl
and edx, 0xff
mov byte [ebp - 0x15], al
xor edi, edi
mov cl, byte [ebp + edx - 0x15c]
lea eax, [ebp + edx - 0x15c]
mov edx, dword [ebp - 0x15b]
mov byte [ebp - 0xc], cl
mov ecx, edx
and ecx, 0xff
fstp st(0)
mov cl, byte [ebp + ecx - 0x15c]
add cl, bl
inc dl
mov byte [ebp - 0x30], cl
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
lea esi, [ebp + edx - 0x15c]
mov dword [ebp - 0x34], esi
mov dl, byte [esi]
mov byte [eax], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x15c]
lea edx, [ebp + edx - 0x15c]
mov byte [esi], bl
mov esi, dword [ebp - 8]
and esi, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + esi - 0x15c]
lea esi, [ebp + esi - 0x15c]
mov byte [edx], bl
mov dl, byte [ebp - 0xc]
mov bl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 0xc]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov dl, byte [ebp + edx - 0x15c]
add bl, dl
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
and edx, 0xff
mov dl, byte [ebp + edx - 0x15c]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add edx, eax
xor eax, eax
and edx, 0xff
mov al, byte [ebp + edx - 0x15c]
mov edx, dword [ebp - 0x34]
mov dl, byte [edx]
add edx, ebx
mov bl, byte [ebp + eax - 0x15c]
and edx, 0xff
mov al, byte [ebp + edx - 0x15c]
mov edx, dword [ebp - 0x2c]
xor bl, al
mov al, byte [ebp - 0x15]
xor bl, al
mov byte [ebp - 0x28], al
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x14], 0xb
jmp 0x8294b3
mov edx, dword [ebp - 0x40]
mov al, byte [edx + 3]
add edx, 2
mov dword [ebp - 0x40], edx
add al, 0x1f
mov dl, byte [edx]
inc edi
add dl, 0xd
mov dword [ebp - 0x20], edi
shl dl, 4
or al, dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp - 8]
mov byte [ebp - 0x28], al
lea edi, [ebp + edx - 0x15c]
mov dl, byte [ebp + edx - 0x15c]
mov byte [ebp - 0xc], dl
mov dl, byte [esi]
add cl, dl
inc bl
mov byte [ebp - 0x30], cl
mov byte [ebp - 8], bl
mov edx, dword [ebp - 0x30]
and edx, 0xff
lea esi, [ebp + edx - 0x15c]
mov dword [ebp - 0x34], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x15c]
lea edx, [ebp + edx - 0x15c]
mov byte [esi], bl
mov esi, dword [ebp - 8]
and esi, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + esi - 0x15c]
lea esi, [ebp + esi - 0x15c]
mov byte [edx], bl
mov dl, byte [ebp - 0xc]
mov bl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov dl, byte [ebp + edx - 0x15c]
add bl, dl
mov byte [ebp - 4], bl
mov bl, byte [edi]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x15c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x15c]
mov edx, dword [ebp - 0x34]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x15c]
mov edi, dword [ebp - 0x20]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x15c]
xor dl, al
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x8295be
mov byte [ebp + edi - 0x5d], dl
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
jne 0x8294b0
lea ebx, [edi + 1]
cmp ebx, 0x19
jge 0x829710
mov eax, dword [ebp - 8]
and eax, 0xff
lea edx, [ebp + eax - 0x15c]
mov eax, dword [ebp - 0x2c]
lea esi, [eax + edi*2]
mov eax, 0x19
sub eax, ebx
mov dword [ebp - 0x2c], eax
jmp 0x8295fe
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov al, byte [esi + 3]
mov bl, byte [esi + 2]
add esi, 2
add bl, 0xd
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x28]
and esi, 0xff
add al, 0x1f
shl bl, 4
lea esi, [ebp + esi - 0x15c]
or al, bl
inc edi
mov byte [ebp - 0x28], al
mov bl, byte [esi]
mov byte [ebp - 0xc], bl
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add cl, bl
inc dl
mov byte [ebp - 0x30], cl
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov bl, byte [ebp + edx - 0x15c]
lea edx, [ebp + edx - 0x15c]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x34], edx
lea ebx, [ebp + ebx - 0x15c]
mov dword [ebp - 0x1c], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
and edx, 0xff
lea edx, [ebp + edx - 0x15c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov dl, byte [ebp + edx - 0x15c]
add bl, dl
mov byte [ebp - 4], bl
mov bl, byte [esi]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x15c]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x15c]
mov edx, dword [ebp - 0x34]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + esi - 0x15c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x15c]
xor dl, al
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x829703
mov byte [ebp + edi - 0x5d], dl
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
jne 0x8295f8
mov byte [ebp - 0x45], 0
pop ebx
call fcn.00839020
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push 0x2712
push esi
call fcn.0083c9e0
push 0x8297a0
push 0x4e2b
push esi
call fcn.0083c9e0
lea ecx, [ebp - 0x3c]
push ecx
push 0x2711
push esi
call fcn.0083c9e0
push 0
push 0x40
push esi
call fcn.0083c9e0
lea edx, [ebp - 0x5c]
push edx
push 0x2722
push esi
call fcn.0083c9e0
push 1
push 0x34
push esi
call fcn.0083c9e0
add esp, 0x48
push esi
call fcn.00839060
push esi
call fcn.008391d0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret