Function at 0x4621b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x2c
mov dword [0x7899a4], 0x412d00
mov dword [0x7899ac], 0x412edc
mov dword [0x7899b4], 0x4130cc
mov dword [0x7899bc], 0x41341c
mov dword [0x7899c4], 0x4137a0
mov dword [0x7899cc], 0x413b58
mov dword [0x7899d4], 0x414268
mov dword [0x7899dc], 0x4145ec
mov dword [0x7899e4], 0x413ea0
mov dword [0x7899ec], 0x414970
mov dword [0x7899f4], 0x414d28
mov dword [0x7899fc], 0x4150e0
mov dword [0x789a04], 0x415498
mov dword [0x789a0c], 0x415850
mov dword [0x789a14], 0x415bd4
mov dword [0x789a1c], 0x415f8c
mov dword [0x789a24], 0x416344
mov dword [0x789a2c], 0x4166fc
mov dword [0x789a34], 0x416a80
mov dword [0x7899a0], 0x412d18
mov dword [0x7899a8], 0x412ef4
mov dword [0x7899b0], 0x4130e4
mov dword [0x7899b8], 0x413434
mov dword [0x7899c0], 0x4137ec
mov dword [0x7899c8], 0x413b70
mov dword [0x7899d0], 0x414280
mov dword [0x7899d8], 0x414604
mov dword [0x7899e0], 0x413eec
mov dword [0x7899e8], 0x4149bc
mov dword [0x7899f0], 0x414d74
mov dword [0x7899f8], 0x41512c
mov dword [0x789a00], 0x4154e4
mov dword [0x789a08], 0x415868
mov dword [0x789a10], 0x415c20
mov dword [0x789a18], 0x415fd8
mov dword [0x789a20], 0x416390
mov dword [0x789a28], 0x416714
mov dword [0x789a30], 0x416acc
mov dword [0x789a44], 0x412d34
mov dword [0x789a4c], 0x412f10
mov dword [0x789a54], 0x413134
mov dword [0x789a5c], 0x41348c
mov dword [0x789a64], 0x413844
mov dword [0x789a6c], 0x413b8c
mov dword [0x789a74], 0x4142d8
mov dword [0x789a7c], 0x41465c
mov dword [0x789a84], 0x413f54
mov dword [0x789a8c], 0x414a14
mov dword [0x789a94], 0x414dcc
mov dword [0x789a9c], 0x415184
mov dword [0x789aa4], 0x41553c
mov dword [0x789aac], 0x4158c0
mov dword [0x789ab4], 0x415c78
mov dword [0x789abc], 0x416030
mov dword [0x789ac4], 0x4163e8
mov dword [0x789acc], 0x41676c
mov dword [0x789ad4], 0x416b24
mov dword [0x789a40], 0x412d4c
mov dword [0x789a48], 0x412f2c
mov dword [0x789a50], 0x4131dc
mov dword [0x789a58], 0x413540
mov dword [0x789a60], 0x4138f8
mov dword [0x789a68], 0x413c40
mov dword [0x789a70], 0x41438c
mov dword [0x789a78], 0x414710
mov dword [0x789a80], 0x414008
mov dword [0x789a88], 0x414ac8
mov dword [0x789a90], 0x414e80
mov dword [0x789a98], 0x415238
mov dword [0x789aa0], 0x4155f0
mov dword [0x789aa8], 0x415974
mov dword [0x789ab0], 0x415d2c
mov dword [0x789ab8], 0x4160e4
mov dword [0x789ac0], 0x41649c
mov dword [0x789ac8], 0x416820
mov dword [0x789ad0], 0x416bd8
mov dword [0x789ae0], 0x412d8c
mov dword [0x789ae8], 0x412f48
mov dword [0x789af0], 0x41328c
mov dword [0x789af8], 0x413604
mov dword [0x789b00], 0x4139bc
mov dword [0x789b08], 0x413d04
mov dword [0x789b10], 0x414450
mov dword [0x789b18], 0x4147d4
mov dword [0x789b20], 0x4140cc
mov dword [0x789b28], 0x414b8c
mov dword [0x789b30], 0x414f44
mov dword [0x789b38], 0x4152fc
mov dword [0x789b40], 0x4156b4
mov dword [0x789b48], 0x415a38
mov dword [0x789b50], 0x415df0
mov dword [0x789b58], 0x4161a8
mov dword [0x789b60], 0x416560
mov dword [0x789b68], 0x4168e4
mov dword [0x789b70], 0x416c9c
mov dword [0x789ae4], 0x412d68
mov dword [0x789aec], 0x412f48
mov dword [0x789af4], 0x41328c
mov dword [0x789afc], 0x413604
mov dword [0x789b04], 0x4139bc
mov dword [0x789b0c], 0x413d04
mov dword [0x789b14], 0x414450
mov dword [0x789b1c], 0x4147d4
mov dword [0x789b24], 0x4140cc
mov dword [0x789b2c], 0x414b8c
mov dword [0x789b34], 0x414f44
mov dword [0x789b3c], 0x4152fc
mov dword [0x789b44], 0x4156b4
mov dword [0x789b4c], 0x415a38
mov dword [0x789b54], 0x415df0
mov dword [0x789b5c], 0x4161a8
mov dword [0x789b64], 0x416560
mov dword [0x789b6c], 0x4168e4
mov dword [0x789b74], 0x416c9c
mov dword [0x789b80], 0x412e30
mov dword [0x789b88], 0x413004
mov dword [0x789b90], 0x413350
mov dword [0x789b98], 0x4136cc
mov dword [0x789ba0], 0x413a84
mov dword [0x789ba8], 0x413dcc
mov dword [0x789bb0], 0x414518
mov dword [0x789bb8], 0x41489c
mov dword [0x789bc0], 0x414194
mov dword [0x789bc8], 0x414c54
mov dword [0x789bd0], 0x41500c
mov dword [0x789bd8], 0x4153c4
mov dword [0x789be0], 0x41577c
mov dword [0x789be8], 0x415b00
mov dword [0x789bf0], 0x415eb8
mov dword [0x789bf8], 0x416270
mov dword [0x789c00], 0x416628
mov dword [0x789c08], 0x4169ac
mov dword [0x789c10], 0x416d64
mov ebx, 1
mov ecx, 0x200
mov edi, ecx
xor esi, esi
lea ebp, [ecx + 0x200]
mov eax, esi
cdq
idiv ebx
mov word [edi + 0x7698a0], ax
add esi, 0x100
add edi, 2
cmp ebp, edi
ja 0x4626fd
add ecx, 0x200
inc ebx
cmp ebx, 0x100
jl 0x4626f3
xor eax, eax
mov byte [eax + 0x6680a0], al
jmp 0x462736
mov byte [eax + 0x6680a0], 0xff
inc eax
cmp eax, 0x1ff
jge 0x462747
cmp eax, 0xff
jg 0x46272f
jmp 0x462727
xor eax, eax
xor edx, edx
jmp 0x462753
lea edx, [eax - 0xff]
mov byte [eax + 0x6682a0], dl
inc eax
cmp eax, 0x1ff
jge 0x46276a
cmp eax, 0xff
jge 0x46274d
jmp 0x462749
xor ecx, ecx
xor ebx, ebx
xor esi, esi
xor ebp, ebp
mov eax, 0x80808081
imul ebp
add edx, ebp
sar edx, 7
mov edi, ebp
sar edi, 0x1f
sub edx, edi
mov byte [ebx + esi + 0x6684a0], dl
add ebp, ecx
inc esi
cmp esi, 0x100
jl 0x462772
add ebx, 0x100
inc ecx
cmp ecx, 0x100
jl 0x46276e
xor ebx, ebx
xor ecx, ecx
xor esi, esi
mov ebp, ebx
shl ebp, 8
sub ebp, ebx
mov eax, ebp
jmp 0x4627bc
mov eax, ebp
cdq
idiv esi
cmp eax, 0xff
jle 0x4627c8
mov eax, 0xff
mov byte [ecx + esi + 0x6785a0], al
inc esi
cmp esi, 0x100
jge 0x4627de
test esi, esi
jg 0x4627b7
jmp 0x4627b3
add ecx, 0x100
inc ebx
cmp ebx, 0x100
jl 0x4627aa
xor edi, edi
xor ebp, ebp
xor ebx, ebx
mov ecx, edi
xor edx, edx
movzx eax, word [edx + edi*2 + 0x60ff9e]
neg eax
add eax, ecx
mov byte [ebp + ebx + 0x6886a0], al
inc ecx
add edx, 0x400
inc ebx
cmp ebx, 0x100
jl 0x4627f7
add ebp, 0x100
inc edi
cmp edi, 0x100
jl 0x4627f1
xor ecx, ecx
xor edx, edx
xor eax, eax
cmp ecx, eax
jge 0x462837
mov ebx, eax
jmp 0x462839
mov ebx, ecx
mov byte [edx + eax + 0x7492a0], bl
inc eax
cmp eax, 0x100
jl 0x46282f
add edx, 0x100
inc ecx
cmp ecx, 0x100
jl 0x46282d
xor ecx, ecx
xor edx, edx
xor eax, eax
cmp ecx, eax
jge 0x462865
mov ebx, ecx
jmp 0x462867
mov ebx, eax
mov byte [edx + eax + 0x7593a0], bl
inc eax
cmp eax, 0x100
jl 0x46285d
add edx, 0x100
inc ecx
cmp ecx, 0x100
jl 0x46285b
xor ecx, ecx
xor edx, edx
xor eax, eax
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jge 0x462895
neg ebx
mov byte [edx + eax + 0x6987a0], bl
inc eax
cmp eax, 0x100
jl 0x46288b
add edx, 0x100
inc ecx
cmp ecx, 0x100
jl 0x462889
xor eax, eax
xor ecx, ecx
xor edi, edi
mov ebp, eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, 0x80808081
imul ebx
add edx, ebx
sar edx, 7
mov esi, ebx
sar esi, 0x1f
sub edx, esi
add edx, edx
neg edx
add edx, ebp
mov byte [ecx + edi + 0x6a88a0], dl
inc ebp
add ebx, dword [esp + 0x28]
inc edi
cmp edi, 0x100
jl 0x4628c1
mov eax, dword [esp + 0x28]
add ecx, 0x100
inc eax
cmp eax, 0x100
jl 0x4628b7
xor ebp, ebp
xor ebx, ebx
xor ecx, ecx
mov edx, ebp
shl edx, 0xa
movzx eax, word [edx + ecx*4 + 0x60ff9e]
movzx eax, al
mov byte [ebx + ecx + 0x7290a0], al
inc ecx
cmp ecx, 0x100
jge 0x462951
cmp ecx, 0x80
jl 0x46290c
jle 0x462946
lea edi, [ecx + ecx]
neg edi
movzx eax, word [edx + edi*2 + 0x61039e]
sub eax, edi
dec eax
movzx eax, al
jmp 0x462917
jne 0x462917
mov eax, ebp
and eax, 0xff
jmp 0x462917
add ebx, 0x100
inc ebp
cmp ebp, 0x100
jl 0x462905
xor ebx, ebx
mov ecx, 0x100
xor esi, esi
xor ebp, ebp
mov eax, ebp
cdq
idiv ecx
cmp eax, 0xff
jle 0x46297c
mov eax, 0xff
mov byte [ebx + esi + 0x6b89a0], al
add ebp, 0x100
inc esi
cmp esi, 0x100
jl 0x46296b
add ebx, 0x100
dec ecx
test ecx, ecx
jg 0x462967
xor ecx, ecx
xor ebp, ebp
lea esi, [ecx + 1]
shl ecx, 8
mov ebx, 0xff00
mov eax, ebx
cdq
idiv esi
neg eax
add eax, 0xff
test eax, eax
jge 0x4629be
xor eax, eax
mov byte [ecx + ebp + 0x6c8aa0], al
add ebx, 0xffffff00
inc ebp
cmp ebp, 0x100
jl 0x4629ac
mov ecx, esi
cmp esi, 0x100
jl 0x46299f
xor ecx, ecx
xor edx, edx
xor ebp, ebp
mov ebx, ecx
lea eax, [ebx - 0xff]
cmp eax, 0xff
jle 0x4629fa
mov eax, 0xff
jmp 0x462a00
test eax, eax
jge 0x462a00
xor eax, eax
mov byte [edx + ebp + 0x718fa0], al
inc ebx
inc ebp
cmp ebp, 0x100
jl 0x4629e6
add edx, 0x100
inc ecx
cmp ecx, 0x100
jl 0x4629e2
xor ebp, ebp
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov edi, 0x200
mov dword [esp + 0xc], eax
mov eax, edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
cmp ebp, 0x80
jge 0x462a53
movsx eax, word [esi + ebx*2 + 0x60ff9e]
jmp 0x462a6c
jle 0x462a68
movsx eax, word [esi + edx*2 + 0x61039e]
sub eax, dword [esp + 0x10]
add eax, 0xff
jmp 0x462a6c
jne 0x462a6c
mov eax, edi
mov byte [ecx + edi + 0x6d8ba0], al
add esi, 0x400
inc edi
cmp edi, 0x100
jl 0x462a41
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
add ebx, 2
add ecx, 0x100
add edx, 0xfffffffe
add eax, 0xfffffffe
inc ebp
cmp ebp, 0x100
jl 0x462a35
xor edx, edx
fld qword [0x579d78]
cmp edx, 0x80
jl 0x462abe
xor ebx, ebx
mov ecx, edx
shl ecx, 8
jmp 0x462b4a
xor ebx, ebx
mov ecx, edx
shl ecx, 8
mov eax, ebx
neg eax
add eax, 0x100
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fsqrt
fsubr st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x14]
fldcw word [esp]
mov ebp, dword [esp + 0x14]
mov eax, edx
imul eax, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
neg ebp
add eax, ebp
sar eax, 0xf
add eax, ebx
cmp eax, 0xff
jle 0x462b23
mov eax, 0xff
jmp 0x462b29
test eax, eax
jge 0x462b29
xor eax, eax
mov byte [ecx + ebx + 0x6e8ca0], al
inc ebx
cmp ebx, 0x100
jge 0x462c0d
cmp edx, 0x80
jl 0x462ac5
cmp ebx, 0x20
jg 0x462bb8
mov eax, ebx
neg eax
add eax, 0x100
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fsqrt
lea ebp, [ebx + ebx]
add ebp, ebp
add ebp, ebp
neg ebp
add ebp, 0x300
mov dword [esp + 0x1c], ebp
fild dword [esp + 0x1c]
fmulp st(1)
fsubr st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x14]
fldcw word [esp]
mov edi, dword [esp + 0x14]
mov eax, edx
imul eax, edi
add edi, edi
add edi, edi
add edi, edi
add edi, edi
add edi, edi
add edi, edi
add edi, edi
neg edi
add eax, edi
sar eax, 0xf
add eax, ebx
jmp 0x462b15
mov eax, ebx
neg eax
add eax, 0x100
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fsqrt
fsubr st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x14]
fldcw word [esp]
mov ebp, dword [esp + 0x14]
mov eax, edx
imul eax, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
add ebp, ebp
neg ebp
add eax, ebp
sar eax, 0x10
add eax, ebx
jmp 0x462b15
inc edx
cmp edx, 0x100
jl 0x462aaa
fstp st(0)
xor ecx, ecx
xor edi, edi
xor eax, eax
mov edx, 0x1fe
xor ebx, ebx
mov dword [esp + 0x28], ebx
xor esi, esi
xor ebp, ebp
lea ebx, [eax - 0xfe01]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], edi
cmp ecx, 0x80
jge 0x462c64
test ecx, ecx
jne 0x462c53
xor eax, eax
jmp 0x462c85
mov eax, ebx
cdq
mov edi, dword [esp + 0x10]
idiv edi
test eax, eax
jge 0x462c85
xor eax, eax
jmp 0x462c85
cmp ecx, 0xff
je 0x462d6d
mov eax, ebp
cdq
mov edi, dword [esp + 0x24]
idiv edi
cmp eax, 0xff
jle 0x462c85
mov eax, 0xff
mov edx, dword [esp + 0x28]
mov byte [edx + esi + 0x6f8da0], al
add ebp, 0xff
add ebx, 0xff
inc esi
cmp esi, 0x100
jl 0x462c43
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
add edi, 2
add eax, 0x1fe
add edx, 0xfffffffe
add dword [esp + 0x28], 0x100
inc ecx
cmp ecx, 0x100
jl 0x462c2d
xor edx, edx
xor ecx, ecx
xor ebp, ebp
mov ebx, edx
lea eax, [ebx - 0x100]
cmp eax, 0xff
jle 0x462ced
mov eax, 0xff
jmp 0x462cf3
test eax, eax
jge 0x462cf3
xor eax, eax
mov byte [ecx + ebp + 0x708ea0], al
inc ebx
inc ebp
cmp ebp, 0x100
jl 0x462cd9
add edx, 2
add ecx, 0x100
cmp ecx, 0x10000
jl 0x462cd5
xor ebp, ebp
xor ebx, ebx
mov ecx, 0xffffff01
xor edx, edx
xor edi, edi
cmp ebp, 0x80
jge 0x462d36
cmp edi, ebx
jle 0x462d32
mov eax, ebx
jmp 0x462d40
mov eax, edi
jmp 0x462d40
cmp edi, ecx
jle 0x462d3e
mov eax, edi
jmp 0x462d40
mov eax, ecx
mov byte [edx + edi + 0x7391a0], al
inc edi
cmp edi, 0x100
jl 0x462d22
add ebx, 2
add ecx, 2
add edx, 0x100
inc ebp
cmp ebp, 0x100
jl 0x462d20
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, 0xff
jmp 0x462c85