Function at 0x67bcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], 2
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0xa8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + esi*4 + 0xb18]
mov dword [esp + 0x28], eax
lea eax, [esi + 2]
shl eax, 8
add eax, ebx
mov ecx, dword [edi + 0xd108]
mov dword [esp + 0x1c], eax
lea eax, [esi + 8]
shl eax, 8
add eax, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
lea eax, [esi + esi*2]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x40]
lea eax, [ebx + eax*8 + 0xb30]
mov ebp, dword [eax]
add eax, 4
add edx, 2
mov bp, word [ebp]
mov word [edx - 2], bp
mov ebp, dword [esp + 0x18]
dec ebp
mov dword [esp + 0x18], ebp
jne 0x67bd17
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x67beda
lea edx, [esi + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + esi*4 + 0xb00]
mov dword [esp + 0x18], edx
jmp 0x67bd5a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [edx + eax*4]
xor edx, edx
mov ebp, eax
and ebp, 0x700
cmp ebp, 0x100
mov ebp, dword [esp + 0x2c]
setne dl
shr eax, 2
and eax, 0xf
mov dword [esp + 0x3c], edx
add eax, ebp
lea eax, [edx + eax*2 + 0x2cc]
mov edx, dword [ebx + eax*4]
xor eax, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
jmp 0x67bdb4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
mov ebp, dword [edx + eax*4]
mov dword [esp + 0x44], eax
test ebp, ebp
jne 0x67be8d
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + eax*4]
xor edx, edx
mov dl, byte [edi + ecx]
inc edi
mov ebp, edx
cmp ebp, 0xf
mov esi, dword [ebp*4 + 0x6bf768]
jge 0x67be0a
xor edx, edx
cmp ebp, 0xc
setl dl
neg edx
and edx, 0x15
xor ebx, ebx
cmp ebp, 2
setl bl
neg ebx
and ebx, 0xfffffff3
add edx, ebx
xor ebx, ebx
mov bl, byte [edi + ecx]
mov ecx, edx
shl ebx, cl
add esi, ebx
mov ebx, dword [esp + 0x50]
inc edi
mov ecx, esi
sar ecx, 8
and ecx, 0xfff
test ebp, ebp
jne 0x67be31
mov ebp, dword [esp + 0x10]
xor edx, edx
mov dl, byte [edi + ebp]
shl edx, 8
add ecx, edx
inc edi
test ecx, ecx
jne 0x67be31
mov ecx, 0x7fffffff
mov edx, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
mov edx, dword [esp + 0x1c]
mov dword [edx + eax*4], edi
mov edi, esi
and edi, 0x100000
mov edx, esi
neg edi
sar edi, 0x15
sar esi, 0x15
and edx, 0xff
xor edi, esi
mov esi, dword [esp + 0x30]
add eax, edx
xor edx, edx
imul di, word [esi + eax*2]
mov esi, dword [esp + 0x34]
mov dl, byte [eax + esi]
mov word [ebx + edx*2], di
xor edx, edx
test ecx, ecx
sete dl
add eax, edx
cmp eax, 0x40
jl 0x67bda4
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
jmp 0x67be90
dec dword [edx + eax*4]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x3c]
sar edx, 0x10
mov word [ebx], dx
mov dx, word [esp + ecx*2 + 0x40]
mov ecx, dword [esp + 0x44]
push edx
push ecx
push ebx
push esi
push eax
push edi
call fcn.0067e2f0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
add esp, 0x18
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jne 0x67bd56
mov eax, dword [esp + 0x28]
mov ebp, dword [ebx + esi*4 + 0xb00]
lea edx, [eax*4]
add ebp, edx
mov dword [ebx + esi*4 + 0xb00], ebp
mov eax, dword [ebx + esi*4 + 0xb24]
test eax, eax
jle 0x67bf41
mov ebp, dword [ebx + esi*4 + 0xb0c]
neg eax
shl eax, 2
add ebp, eax
mov dword [ebx + esi*4 + 0xb0c], ebp
mov ecx, dword [edi + 0xac]
mov edx, dword [ebx + esi*4 + 0xb24]
mov eax, ebp
push ecx
mov ecx, dword [edi + 0x228]
push edx
mov edx, dword [edi + 0x22c]
push eax
mov eax, dword [edi + esi*4 + 0x240]
push eax
push ecx
push edx
call fcn.0067fae0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret