Function at 0x683c4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 0xc], edx
xor eax, eax
push ebp
push 0x683e3a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, 1
test ebx, ebx
jle 0x683e15
mov edi, 1
mov eax, esi
test eax, eax
je 0x683c94
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00407de0
cmp ebx, dword [ebp - 0x14]
jg 0x683e08
cmp word [esi + ebx*2 - 2], 0x7b
sete byte [ebp - 0x21]
mov byte [ebp - 0x22], 0
cmp byte [ebp - 0x21], 0
je 0x683cce
cmp word [esi + ebx*2], 0x7b
sete byte [ebp - 0x22]
movzx eax, byte [ebp - 0x21]
xor al, 1
or al, byte [ebp - 0x22]
je 0x683cfd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx edx, word [esi + ebx*2 - 2]
mov word [eax + edi*2 - 2], dx
inc ebx
inc edi
inc dword [ebp - 0x1c]
cmp byte [ebp - 0x22], 0
je 0x683dff
inc ebx
jmp 0x683dff
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x2c], 0
je 0x683d13
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x2c]
call fcn.00407de0
mov dword [ebp - 0x20], 1
inc ebx
jmp 0x683d3c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
movzx ecx, word [esi + ebx*2 - 2]
mov word [eax + edx*2 - 2], cx
inc ebx
inc dword [ebp - 0x20]
cmp ebx, dword [ebp - 0x14]
jg 0x683d49
cmp word [esi + ebx*2 - 2], 0x7d
jne 0x683d28
mov edx, dword [ebp - 0x20]
dec edx
lea eax, [ebp - 8]
call fcn.00407de0
inc ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.0056a46c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x683d87
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x683da6
mov eax, dword [ebp - 0x34]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00407de0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x683dd0
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
test eax, eax
jle 0x683dff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
movzx eax, word [eax + edx*2 - 2]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov word [edx + edi*2 - 2], ax
inc edi
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x683de1
cmp ebx, dword [ebp - 0x14]
jle 0x683cb1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
call fcn.00407de0
jmp 0x683e1f
mov eax, dword [ebp + 8]
mov edx, esi
call fcn.004073ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x683e41
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407058
ret