Function at 0x5f1e7c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x5f1e84
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fa4
xor eax, eax
push ebp
push 0x5f230d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x24]
call fcn.00404ae4
mov eax, dword [0x669f14]
cmp dword [eax], 0
je 0x5f22e2
xor eax, eax
push ebp
push 0x5f2252
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x669f14]
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x30]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040ae94
lea eax, [ebp - 0x2c]
mov edx, 0x5f2328
call fcn.00404dbc
mov eax, dword [ebp - 0x2c]
call fcn.0040ab6c
test al, al
jne 0x5f1f49
lea edx, [ebp - 0x38]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040ae94
lea eax, [ebp - 0x34]
mov edx, 0x5f2328
call fcn.00404dbc
mov eax, dword [ebp - 0x34]
call fcn.00402a0c
call fcn.004028f4
lea edx, [ebp - 0x40]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040ae94
push dword [ebp - 0x3c]
push 0x5f2328
push dword [ebp - 4]
push 0x5f2348
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404e74
push 0xffff
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x41aa18]
call fcn.00420ab8
mov dword [ebp - 0x18], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
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, 0x5f2358
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, 0x5f2380
call fcn.0044e36c
push 0x5f23a4
mov eax, dword [ebp - 0x14]
shr eax, 0xa
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0040a5dc
push dword [ebp - 0x48]
push 0x5f23c0
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x44]
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
cmp dword [ebp - 0x14], 0
jbe 0x5f21b6
mov eax, dword [ebp - 8]
shr eax, 0x18
mov edx, dword [0x66989c]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 8]
shr eax, 0x10
mov edx, dword [0x66989c]
mov byte [edx + 0x11], al
mov eax, dword [ebp - 8]
shr eax, 8
mov edx, dword [0x66989c]
mov byte [edx + 0x12], al
mov eax, dword [ebp - 8]
and eax, 0xff
mov edx, dword [0x66989c]
mov byte [edx + 0x13], al
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov edx, dword [0x66989c]
mov byte [edx + 0x14], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov edx, dword [0x66989c]
mov byte [edx + 0x15], al
mov eax, dword [ebp - 0x10]
shr eax, 8
mov edx, dword [0x66989c]
mov byte [edx + 0x16], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [0x66989c]
mov byte [edx + 0x17], al
mov eax, dword [0x66989c]
add eax, 9
mov edx, 0x10
call fcn.005d5aa8
mov edx, dword [0x66989c]
mov byte [edx + 0x18], al
mov eax, dword [0x66989c]
mov edx, 0x19
call fcn.0064afcc
mov eax, 0xffff
call fcn.0064b010
mov eax, dword [0x66a180]
mov eax, dword [eax]
cmp byte [eax + 9], 0x41
jne 0x5f2160
mov eax, dword [0x66a180]
mov eax, dword [eax]
cmp byte [eax + 0xa], 0x56
jne 0x5f2160
mov dword [ebp - 0x20], 0xb
mov eax, dword [0x66a180]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
mov byte [ebp - 0x19], al
mov eax, dword [0x66a180]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
lea edx, [eax + edx + 1]
xor ecx, ecx
mov cl, byte [ebp - 0x19]
mov eax, dword [ebp - 0x18]
call fcn.0042074c
xor eax, eax
mov al, byte [ebp - 0x19]
add eax, 2
add dword [ebp - 0x20], eax
cmp byte [ebp - 0x19], 0xff
jae 0x5f2124
sub dword [ebp - 0x14], 0x4000
add dword [ebp - 0x10], 0x4000
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
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 - 0x14], 0
ja 0x5f2053
push 0x5f23cc
push 0
push 0x400
push 0
push 0x400
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
call fcn.00405e88
call fcn.00405e88
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.0040a5dc
push dword [ebp - 0x50]
push 0x5f23e4
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x4c]
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 - 0x58]
mov eax, dword [ebp - 0x24]
call fcn.0040af40
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x5f23fc
call fcn.00404e00
mov edx, dword [ebp - 0x54]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [ebp - 0x18]
call fcn.00403c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f2298
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 + 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 - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2314
lea eax, [ebp - 0x58]
mov edx, 0xc
call fcn.00404b08
lea eax, [ebp - 0x24]
call fcn.00404ae4
lea eax, [ebp - 4]
call fcn.00404ae4
ret