Function at 0x401a60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea esi, [eax + 0x64]
push esi
mov dword [ebp - 0x50], esi
call fcn.00841608
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x77]
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x48], al
rep stosd dword es:[edi], eax
fld qword [0x893578]
fld qword [0x893578]
mov ecx, esi
mov edi, ebx
mov edx, ecx
mov byte [ebp - 0x47], al
shr ecx, 2
mov byte [ebp - 0x46], al
mov byte [ebp - 0x45], al
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], al
mov byte [ebp - 0x42], al
mov byte [ebp - 0x41], al
mov byte [ebp - 0x40], al
mov byte [ebp - 0x3f], al
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], al
mov byte [ebp - 0x3c], al
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x39], al
mov dword [ebp - 0x28], eax
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
mov esi, edx
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov edi, ebx
mov eax, ecx
mov dword [ebp - 0x4c], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov edi, edx
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esi + 0xf]
shr edx, 4
and ecx, 3
shl edx, 4
rep stosb byte es:[edi], al
mov dword [ebp - 0x54], edx
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x893570]
fsub st(1)
fxch st(1)
fmul qword [0x893568]
fadd qword [0x893560]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x893558]
fnstsw ax
test ah, 0x41
jne 0x401b57
fld st(0)
fmul qword [0x893550]
fsubp st(2)
fadd qword [0x893548]
fcom qword [0x893540]
fnstsw ax
test ah, 1
jne 0x401b1e
fxch st(1)
fst qword [ebp - 0x38]
fxch st(1)
fstp st(0)
fcomp qword [0x893578]
fnstsw ax
test ah, 1
je 0x401bde
dec ecx
sbb dword [ecx + 0x48], ecx
and al, 0x52
and cl, byte [edx + 0x15]
push edx
pop ss
dec edi
push ss
inc edi
sbb dword [ecx + 0x1e], ecx
dec ecx
pop ds
dec ebp
sbb eax, 0x1e4c1f4b
inc esi
sbb cl, byte [edi + 0x1a]
dec edi
sbb al, byte [edi + 0x20]
dec edx
sbb al, byte [esi + 0x19]
push ecx
and byte [ebp + ebx + 0x4d], cl
and al, byte [esi + 0x1a]
push eax
push ss
dec ebp
and ecx, dword [esi + 0x17]
push ecx
and al, 0x46
sbb eax, 0x19461b4b
dec edi
pop ds
inc esi
sbb cl, byte [ecx + 0x1a]
dec ecx
xor edi, dword [ecx + 0x75]
cmp al, 0x21
outsb dx, byte [esi]
xor eax, 0x4c224769
dec ebx
cmp bh, byte [ebx + 0x4f]
sub ebx, dword [edx + edx*2 + 0x54]
dec edx
inc ecx
pop esp
jmp 0x402315
mov dword [ebp - 0x30], 0x401b80
mov dword [ebp - 0x2c], 0x401bc2
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x401bee
fld qword [ebp - 0x38]
mov byte [ebp + 0xc], 0
mov eax, 0xff
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x24], eax
mov ebx, 1
mov dword [ebp + 8], 0
cmp eax, ebx
jbe 0x401c29
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x401c21
cmp edi, 3
ja case.default.0x401c2e
jmp dword [edi*4 + 0x402378]
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
jmp 0x401caa
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
shr eax, 8
jmp 0x401caa
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x10
jmp 0x401caa
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x18
jmp 0x401caa
mov eax, dword [ebp - 0x2c]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x178]
add cl, al
inc edi
cmp edi, 0x1b
mov byte [ebp + 0xc], cl
jb 0x401cbd
xor edi, edi
add cl, 0x1b
mov byte [ebp + 0xc], cl
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp + 8], eax
jbe 0x401cdd
mov eax, edx
xor edx, edx
div dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, edx
jb 0x401c29
je 0x401d15
mov bl, byte [ebp + eax - 0x178]
lea edx, [ebp + edx - 0x178]
lea ecx, [ebp + eax - 0x178]
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 - 0x24]
dec eax
mov dword [ebp - 0x24], eax
jne 0x401c11
mov dl, byte [ebp - 0x171]
and esi, 0xff
mov byte [ebp - 0x14], dl
xor edx, edx
mov al, byte [ebp + esi - 0x178]
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0x10], al
xor eax, eax
mov al, byte [esi]
mov dl, byte [esi + 1]
sub eax, 0x44
add edx, 0xffffffeb
shl eax, 4
or eax, edx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp + 0xc], eax
mov bl, byte [ebp - 0x175]
mov cl, byte [ebp - 0x173]
mov al, byte [ebp + edx - 0x178]
lea edi, [ebp + edx - 0x178]
mov edx, dword [ebp - 0x177]
mov byte [ebp - 4], al
mov eax, edx
and eax, 0xff
fstp st(0)
mov al, byte [ebp + eax - 0x178]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x34], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x34]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x178]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp + 0xc]
mov byte [ebp - 0x10], dl
xor bl, dl
mov byte [ebp - 0x14], bl
xor edx, edx
mov dword [ebp - 0x24], 2
mov dl, byte [esi + 3]
add esi, 4
mov edi, edx
xor edx, edx
mov dl, byte [esi - 2]
sub edi, 0x15
sub edx, 0x44
shl edx, 4
or edi, edx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp + 0xc], edi
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x34], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x34]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp + 0xc]
mov byte [ebp - 0x10], bl
xor dl, bl
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x19c], dl
xor edx, edx
mov dl, byte [esi + 1]
mov edi, edx
sub edi, 0x15
xor edx, edx
mov dl, byte [esi]
mov dword [ebp - 0x2c], 0xf
sub edx, 0x44
shl edx, 4
or edi, edx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp + 0xc], edi
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp + 8]
mov byte [ebp - 0x1c], al
inc bl
mov edx, dword [ebp - 0x1c]
mov byte [ebp + 8], bl
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dword [ebp - 0x20], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov esi, dword [ebp + 8]
and esi, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + esi - 0x178]
lea esi, [ebp + esi - 0x178]
mov byte [edx], bl
mov dl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x34], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x34]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
mov edi, dword [ebp - 0x24]
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp + 0xc]
mov byte [ebp - 0x10], bl
xor dl, bl
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x19b], dl
mov edx, dword [ebp - 0x30]
add edx, 4
jmp 0x402091
mov edx, dword [ebp - 0xc]
add edx, 2
inc edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0xc]
mov dl, byte [edx + 1]
sub dl, 0x15
mov bl, byte [edi]
add bl, 0xc
shl bl, 4
or dl, bl
mov bl, byte [ebp + 8]
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 4], dl
mov dl, byte [esi]
add al, dl
inc bl
mov byte [ebp - 0x1c], al
mov byte [ebp + 8], bl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dword [ebp - 0x20], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov esi, dword [ebp + 8]
and esi, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + esi - 0x178]
lea esi, [ebp + esi - 0x178]
mov byte [edx], bl
mov dl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x34], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x34]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
mov edi, dword [ebp - 0x24]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x10], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x14], dl
jbe 0x4021a6
mov byte [ebp + edi - 0x19d], dl
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jne 0x40208e
lea ebx, [edi + 1]
cmp ebx, 0x22
jge 0x402308
mov edx, dword [ebp + 8]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x30]
lea esi, [edx + edi*2]
mov edx, 0x22
sub edx, ebx
mov dword [ebp - 0x2c], edx
jmp 0x4021e7
mov esi, dword [ebp - 0x30]
mov bl, byte [esi + 2]
mov dl, byte [esi + 3]
add esi, 2
add bl, 0xc
sub dl, 0x15
mov dword [ebp - 0x30], esi
shl bl, 4
or dl, bl
inc edi
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x34], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x34]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x10], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x14], dl
jbe 0x4022fb
mov byte [ebp + edi - 0x19d], dl
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jne 0x4021e4
mov edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x4c]
mov byte [ebp - 0x17c], 0
mov eax, dword [ebp + 0x10]
mov ecx, 8
lea esi, [ebp - 0x19c]
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x28]
push eax
push ecx
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x78]
push eax
push ecx
push edx
push ebx
movsb byte es:[edi], byte [esi]
call section..text
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x28]
push eax
push esi
call fcn.00401870
push ebx
mov edi, eax
call fcn.008415c0
push esi
call fcn.008415c0
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret