Function at 0x5f26cc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa10
push 0
push 0
dec ecx
jne 0x5f26d5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fa4
xor eax, eax
push ebp
push 0x5f2e29
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x28]
call fcn.00404ae4
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [0x669f14]
cmp dword [eax], 0
je 0x5f2dfb
xor eax, eax
push ebp
push 0x5f2d54
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x5f2742
mov eax, dword [0x669f14]
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x5f2748
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
jne 0x5f2755
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x5f275b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x5058]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x5058]
lea edx, [ebp - 0x5054]
call fcn.0040ae94
lea eax, [ebp - 0x5054]
mov edx, 0x5f2e44
call fcn.00404dbc
mov eax, dword [ebp - 0x5054]
call fcn.0040ab6c
test al, al
jne 0x5f27e5
lea edx, [ebp - 0x5060]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x5060]
lea edx, [ebp - 0x505c]
call fcn.0040ae94
lea eax, [ebp - 0x505c]
mov edx, 0x5f2e44
call fcn.00404dbc
mov eax, dword [ebp - 0x505c]
call fcn.00402a0c
call fcn.004028f4
lea edx, [ebp - 0x5068]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x5068]
lea edx, [ebp - 0x5064]
call fcn.0040ae94
push dword [ebp - 0x5064]
push 0x5f2e44
push dword [ebp - 4]
push 0x5f2e64
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404e74
push 0xffff
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x41aa18]
call fcn.00420ab8
mov dword [ebp - 0x1c], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
xor edx, edx
div dword [ebp + 8]
mov edx, eax
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
call fcn.004d0a08
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov edx, 0x5f2e74
call fcn.0052fa8c
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.0044e464
mov edx, 0x5f2e9c
call fcn.0044e36c
push 0x5f2ec0
mov eax, dword [ebp - 0x18]
shr eax, 0xa
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x5070]
call fcn.0040a5dc
push dword [ebp - 0x5070]
push 0x5f2edc
lea eax, [ebp - 0x506c]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x506c]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
xor edx, edx
call fcn.004d0ab8
mov byte [ebp - 0x41], 0
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x18], 0
jbe 0x5f2c5f
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp + 8]
shr eax, 0x18
mov edx, dword [0x669850]
mov byte [edx + 0x18], al
mov eax, dword [ebp + 8]
shr eax, 0x10
mov edx, dword [0x669850]
mov byte [edx + 0x19], al
mov eax, dword [ebp + 8]
shr eax, 8
mov edx, dword [0x669850]
mov byte [edx + 0x1a], al
mov eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [0x669850]
mov byte [edx + 0x1b], al
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov edx, dword [0x669850]
mov byte [edx + 0x1c], al
mov eax, dword [ebp - 0x14]
shr eax, 0x10
mov edx, dword [0x669850]
mov byte [edx + 0x1d], al
mov eax, dword [ebp - 0x14]
shr eax, 8
mov edx, dword [0x669850]
mov byte [edx + 0x1e], al
mov eax, dword [ebp - 0x14]
and eax, 0xff
mov edx, dword [0x669850]
mov byte [edx + 0x1f], al
mov eax, dword [0x669850]
add eax, 0x11
mov edx, 0xf
call fcn.005d5aa8
mov edx, dword [0x669850]
mov byte [edx + 0x20], al
mov edx, dword [0x6691f8]
mov eax, dword [0x669850]
mov ecx, 0x21
call fcn.0049b428
xor ecx, ecx
mov edx, 0x21
mov eax, 0x222040
call fcn.005c7d90
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0x80
call fcn.005e6700
mov eax, dword [0x66a180]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x504d]
mov eax, dword [0x66a180]
mov eax, dword [eax]
mov ecx, 0x80
call fcn.0049b428
lea eax, [ebp - 0x2c]
call fcn.0049b538
cmp dword [ebp - 0x2c], 0x81
jae 0x5f2a29
mov byte [ebp - 0x41], 1
jmp 0x5f2a2d
mov byte [ebp - 0x41], 0
mov al, byte [ebp - 0x41]
sub al, 1
jb 0x5f2a3f
je 0x5f2b5a
jmp 0x5f2b60
xor eax, eax
mov dword [ebp - 0x48], eax
sub dword [ebp - 0x2c], 0x80
mov eax, dword [ebp - 0x2c]
shr eax, 7
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
and eax, 0x7f
test eax, eax
jbe 0x5f2a61
inc dword [ebp - 0x34]
mov dword [ebp - 0x38], 0x80
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0x34]
dec eax
test eax, eax
jl 0x5f2b05
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov dword [ebp - 0x38], 0x80
mov eax, dword [ebp - 0x38]
call fcn.005e6700
mov eax, dword [0x66a180]
mov eax, dword [eax]
call fcn.004061f0
mov ecx, eax
mov eax, dword [ebp - 0x3c]
add eax, 0x80
lea edx, [ebp + eax - 0x504d]
mov eax, dword [0x66a180]
mov eax, dword [eax]
call fcn.0049b428
mov eax, dword [0x66a180]
mov eax, dword [eax]
call fcn.004061f0
add dword [ebp - 0x3c], eax
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x66a180]
mov eax, dword [eax]
call fcn.004061f0
cmp eax, 0x80
jl 0x5f2b05
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x5f2a8b
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp byte [ebp - 0x5044], 0x41
jne 0x5f2b60
cmp byte [ebp - 0x5043], 0x56
jne 0x5f2b60
mov dword [ebp - 0x24], 0xb
mov eax, dword [ebp - 0x24]
mov al, byte [ebp + eax - 0x504d]
mov byte [ebp - 0x1d], al
xor ecx, ecx
mov cl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
lea edx, [ebp + eax - 0x504c]
mov eax, dword [ebp - 0x1c]
call fcn.0042074c
xor eax, eax
mov al, byte [ebp - 0x1d]
add eax, 2
add dword [ebp - 0x24], eax
cmp byte [ebp - 0x1d], 0xff
jae 0x5f2b23
jmp 0x5f2b60
inc dword [ebp - 0x40]
inc dword [ebp - 0x48]
lea eax, [ebp - 0x504d]
xor ecx, ecx
mov edx, 0x4fff
call fcn.00408374
mov eax, dword [ebp + 8]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add dword [ebp - 0x14], eax
mov eax, dword [0x669f14]
mov eax, dword [eax]
inc eax
cmp eax, dword [ebp - 0x14]
jbe 0x5f2c5f
cmp dword [ebp - 0x48], 0xa
jle 0x5f2c23
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [0x669f14]
mov eax, dword [eax]
inc eax
sub eax, 0x1400000
cmp eax, dword [ebp - 0x14]
jbe 0x5f2beb
add dword [ebp - 0x14], 0x400000
sub dword [ebp - 0x18], 0x400000
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax + 0x170]
add edx, 0x100
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
call fcn.004d0ab8
jmp 0x5f2c49
add dword [ebp - 0x14], 0x80000
sub dword [ebp - 0x18], 0x80000
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax + 0x170]
add edx, 0x20
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
call fcn.004d0ab8
jmp 0x5f2c49
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax + 0x170]
inc edx
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
call fcn.004d0ab8
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
cmp dword [ebp - 0x18], 0
ja 0x5f2910
push 0x5f2ee8
push 0
push 0x400
push 0
push 0x400
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
call fcn.00405e88
call fcn.00405e88
push edx
push eax
lea eax, [ebp - 0x5078]
call fcn.0040a5dc
push dword [ebp - 0x5078]
push 0x5f2f00
lea eax, [ebp - 0x5074]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x5074]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
cmp dword [ebp - 0x40], 0
jle 0x5f2cfe
lea ecx, [ebp - 0x5080]
mov edx, 8
mov eax, dword [ebp - 0x40]
call fcn.0040a604
mov ecx, dword [ebp - 0x5080]
lea eax, [ebp - 0x507c]
mov edx, 0x5f2f18
call fcn.00404e00
mov edx, dword [ebp - 0x507c]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x66a00c]
mov eax, dword [eax]
xor edx, edx
call fcn.0052fa8c
lea edx, [ebp - 0x5088]
mov eax, dword [ebp - 0x28]
call fcn.0040af40
mov ecx, dword [ebp - 0x5088]
lea eax, [ebp - 0x5084]
mov edx, 0x5f2f30
call fcn.00404e00
mov edx, dword [ebp - 0x5084]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [ebp - 0x1c]
call fcn.00403c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f2d9a
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
xor edx, edx
call fcn.004d0ab8
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x39c]
mov edx, 0x64
call fcn.004d0a08
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.0044e464
xor edx, edx
call fcn.0044e36c
mov eax, dword [0x66a00c]
mov eax, dword [eax]
xor edx, edx
call fcn.0052fa8c
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2e30
lea eax, [ebp - 0x5088]
mov edx, 0xe
call fcn.00404b08
lea eax, [ebp - 0x28]
call fcn.00404ae4
lea eax, [ebp - 4]
call fcn.00404ae4
ret