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.0082fdf8
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x77]
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x40], al
rep stosd dword es:[edi], eax
fld qword [0x882578]
fld qword [0x882578]
mov ecx, esi
mov edi, ebx
mov edx, ecx
mov byte [ebp - 0x3f], al
shr ecx, 2
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 byte [ebp - 0x38], al
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], al
mov byte [ebp - 0x35], al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 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 - 0x54], 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 - 0x4c], edx
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x882570]
fsub st(1)
fxch st(1)
fmul qword [0x882568]
fadd qword [0x882560]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x882558]
fnstsw ax
test ah, 0x41
jne 0x401b57
fld st(0)
fmul qword [0x882550]
fsubp st(2)
fadd qword [0x882548]
fcom qword [0x882540]
fnstsw ax
test ah, 1
jne 0x401b1e
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x882578]
fnstsw ax
test ah, 1
je 0x401be0
sub dword [edx], esp
js 0x401bbb
pop edx
imul ebx, dword [ecx + 0x36], 0x50
dec esi
cmp byte fs:[esi + esi*2 + 0x7a], bl
and edi, dword [ebx + edi*2]
jae 0x401bbe
and al, 0x4b
push ebp
dec ecx
pop esi
mov byte [0xa721a322], al
and dword [edi - 0x58d05dd3], ebx
and eax, 0x2ea0239e
mov eax, dword [0xac22a923]
and dword [eax - 0x5ddd52d5], esp
and byte [eax + ebp + 0x2ba32cad], ah
mov byte [0xab20ad29], al
and byte [eax - 0x5ada5de0], ah
sub ah, byte [edi - 0x5dd258d2]
and byte [ebp - 0x55d65fd1], ch
and al, 0xa8
and byte [ebx - 0x5ddf5fe0], ch
and eax, 0x2ea72aa5
cmpsd dword [esi], dword es:[edi]
sub eax, 0x2fad20a2
mov al, byte [0xa824aa29]
and al, 0xac
sub byte [ecx - 0x16d55bd2], ah
xor byte [eax], cl
add byte [eax], al
mov dword [ebp - 0x30], 0x401b99
mov dword [ebp - 0x2c], 0x401b80
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x401bf0
fld qword [ebp - 0x48]
mov byte [ebp + 0xc], 0
mov eax, 0xff
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp + 8], eax
mov ebx, 1
mov dword [ebp - 0xc], 0
cmp eax, ebx
jbe 0x401c2b
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x401c23
cmp edi, 3
ja case.default.0x401c30
jmp dword [edi*4 + 0x402474]
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
jmp 0x401cac
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
shr eax, 8
jmp 0x401cac
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x10
jmp 0x401cac
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x18
jmp 0x401cac
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, 0x1d
mov byte [ebp + 0xc], cl
jb 0x401cbf
xor edi, edi
add cl, 0x1d
mov byte [ebp + 0xc], cl
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0xc], eax
jbe 0x401cdf
mov eax, edx
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, edx
jb 0x401c2b
je 0x401d17
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 + 8]
dec eax
mov dword [ebp + 8], eax
jne 0x401c13
mov dl, byte [ebp - 0x171]
and esi, 0xff
mov byte [ebp - 0x14], dl
mov bl, byte [ebp - 0x175]
mov al, byte [ebp + esi - 0x178]
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0x24], al
xor eax, eax
mov al, byte [esi]
mov dl, byte [esi + 1]
add al, 2
sub dl, 0x20
shl al, 4
or al, dl
mov cl, byte [ebp - 0x173]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x24]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x178]
lea esi, [ebp + eax - 0x178]
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x177]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x178]
add al, bl
inc dl
mov byte [ebp - 0x10], al
mov byte [ebp + 0xc], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [esi], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp + 0xc]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 8]
mov dl, byte [ebp + 8]
mov byte [ebx], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 4]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
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 esi, 1
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [edi]
mov edi, dword [ebp - 0x1c]
mov bl, byte [ebp + ebx - 0x178]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x24], dl
xor bl, dl
mov edx, dword [ebp - 0x30]
mov byte [ebp - 0x14], bl
lea edi, [edx + 2]
mov dl, byte [edx + 3]
mov bl, byte [edi]
sub dl, 0x20
add bl, 2
mov dword [ebp - 0x2c], 0xe
shl bl, 4
or dl, bl
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp + 8], dl
mov edx, dword [ebp - 8]
mov bl, byte [edx]
mov dl, byte [ebp + 0xc]
add al, bl
inc dl
mov byte [ebp - 0x10], al
mov byte [ebp + 0xc], dl
mov edx, dword [ebp - 0x10]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 8], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 8]
mov dl, byte [ebp + 8]
mov byte [ebx], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
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 - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x24], bl
xor dl, bl
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x19c], dl
mov edx, dword [ebp - 0x30]
lea edi, [edx + 2]
jmp 0x401f79
mov edi, dword [ebp - 0x44]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 2
sub dl, 0x20
mov dword [ebp - 0x44], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp + 8], dl
mov edx, dword [ebp - 8]
mov bl, byte [edx]
mov dl, byte [ebp + 0xc]
add al, bl
inc dl
mov byte [ebp - 0x10], al
mov byte [ebp + 0xc], dl
mov edx, dword [ebp - 0x10]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 8], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 8]
mov dl, byte [ebp + 8]
mov byte [ebx], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
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 - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x14], dl
jbe 0x40208d
mov byte [ebp + esi - 0x19d], dl
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jne 0x401f76
lea ebx, [esi + 1]
cmp ebx, 0x20
jge 0x4021ef
mov edx, dword [ebp + 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x30]
lea edi, [edx + esi*2]
mov edx, 0x20
sub edx, ebx
mov dword [ebp - 0x2c], edx
jmp 0x4020ce
mov edi, dword [ebp - 0x44]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 2
sub dl, 0x20
mov dword [ebp - 0x44], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp + 8], dl
mov edx, dword [ebp - 8]
mov bl, byte [edx]
mov dl, byte [ebp + 0xc]
add al, bl
inc dl
mov byte [ebp - 0x10], al
mov byte [ebp + 0xc], dl
mov edx, dword [ebp - 0x10]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 8], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 8]
mov dl, byte [ebp + 8]
mov byte [ebx], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
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 - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x14], dl
jbe 0x4021e2
mov byte [ebp + esi - 0x19d], dl
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jne 0x4020cb
mov edi, dword [ebp - 0x30]
inc esi
xor edx, edx
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 2
sub bl, 0x20
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov byte [ebp - 0x18], bl
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp + 8], dl
mov edx, dword [ebp + 0xc]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp + 0xc]
add al, bl
inc dl
mov byte [ebp - 0x10], al
mov byte [ebp + 0xc], dl
mov edx, dword [ebp - 0x10]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 8], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 8]
mov dl, byte [ebp + 8]
mov byte [ebx], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
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 - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x18]
xor dl, bl
test esi, esi
mov byte [ebp - 0x14], dl
jbe 0x40230b
mov byte [ebp + esi - 0x19d], dl
mov edi, dword [ebp - 0x30]
inc esi
xor edx, edx
mov dl, byte [edi + esi*2]
mov edi, dword [ebp - 0x18]
and edi, 0xff
mov bl, byte [ebp + edi - 0x178]
lea edi, [ebp + edi - 0x178]
mov byte [ebp + 8], bl
mov ebx, dword [ebp - 8]
add al, byte [ebx]
mov byte [ebp - 0x10], al
mov al, byte [ebp + 0xc]
inc al
mov byte [ebp + 0xc], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov bl, byte [ebp + eax - 0x178]
lea eax, [ebp + eax - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
mov dword [ebp - 0xc], eax
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
and eax, 0xff
test esi, esi
lea eax, [ebp + eax - 0x178]
mov dword [ebp - 8], eax
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 8]
mov al, byte [ebp + 8]
mov byte [ebx], al
jbe 0x402403
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
add dl, 2
and eax, 0xff
mov bl, byte [ebx + esi*2 + 1]
sub bl, 0x20
shl dl, 4
or bl, dl
mov dl, byte [ebp + eax - 0x178]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x178]
mov dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 4]
mov dl, byte [edx]
add ecx, edx
xor edx, edx
and ecx, 0xff
mov dl, byte [ebp + ecx - 0x178]
mov cl, byte [ebp + edx - 0x178]
xor bl, cl
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
add edx, eax
and edx, 0xff
xor bl, byte [ebp + edx - 0x178]
mov byte [ebp + esi - 0x19d], bl
mov ebx, dword [ebp - 0x54]
mov edx, 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 - 0x40]
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.0082fdb0
push esi
call fcn.0082fdb0
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret