Function at 0x6dfb40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [esi + 0x478]
add eax, edi
mov ecx, dword [esi + 0x470]
sub edx, ecx
mov dword [ebp - 0xc], edx
cmp ecx, eax
jb 0x6dfc4d
mov ecx, dword [esi + 0x38]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call fcn.007079f0
mov ebx, dword [esi + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x44]
sub dword [esi + 0x474], edi
sub dword [esi + 0x470], edi
sub dword [esi + 0x460], edi
lea edx, [eax + ebx*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, edi
cmp ecx, edi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x6dfba4
mov eax, dword [esi + 0x40]
mov ebx, edi
lea edx, [eax + edi*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, edi
cmp ecx, edi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x6dfbd0
lea eax, [esi + 0x60]
mov edx, 0x100
nop dword [eax + eax]
mov ecx, dword [eax]
cmp ecx, edi
jbe 0x6dfc0c
sub ecx, edi
mov dword [eax], ecx
jmp 0x6dfc12
mov dword [eax], 0
add eax, 4
sub edx, 1
jne 0x6dfc00
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x6dfc48
mov eax, dword [esi + 0x2c]
shr eax, 3
push eax
add eax, ecx
push eax
push ecx
call fcn.007079f0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x5c]
shr ecx, 3
push ecx
add eax, ecx
push 0
push eax
call fcn.007074c0
add esp, 0x18
mov edx, dword [ebp - 0xc]
add edx, edi
mov ebx, dword [esi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x6dfe69
mov ecx, dword [esi + 0x478]
add ecx, dword [esi + 0x470]
add ecx, dword [esi + 0x38]
cmp eax, edx
mov dword [ebp + 8], ecx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x6dfc7f
mov dword [ebp - 8], ecx
jmp 0x6dfccb
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x6dfc9c
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.006e0100
jmp 0x6dfcac
cmp eax, 2
jne 0x6dfcb5
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.006e0380
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp + 8]
call fcn.007079f0
mov ecx, dword [ebp - 8]
add esp, 0xc
add dword [ebx], ecx
add dword [ebx + 8], ecx
cmp dword [esi + 0x5c], 0
je 0x6dfda6
mov eax, dword [esi]
mov ebx, ecx
mov ecx, dword [esi + 0x478]
add ecx, dword [esi + 0x470]
mov edx, ecx
and ecx, 7
mov eax, dword [eax + 0x38]
shr edx, 3
mov dword [ebp - 4], edx
mov edx, eax
neg edx
mov dword [ebp - 0xc], ecx
sbb dl, dl
test eax, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
setne byte [ebp + 0xb]
test ecx, ecx
je 0x6dfd4c
cmp dword [ebp - 8], 0
je 0x6dfd4c
mov eax, dword [ebp - 0xc]
dec ebx
mov ecx, dword [esi + 0x5c]
movzx eax, byte [eax + 0x99e788]
and byte [ecx + edx], al
add edx, dword [esi + 0x5c]
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp + 0xb]
shl al, cl
inc ecx
or byte [edx], al
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp ecx, 8
je 0x6dfd43
test ebx, ebx
jne 0x6dfd12
jmp 0x6dfda6
xor eax, eax
inc edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
cmp ebx, 8
jb 0x6dfd76
mov ecx, ebx
shr ecx, 3
mov dword [ebp - 4], ecx
nop dword [eax]
mov eax, dword [esi + 0x5c]
sub ebx, 8
mov ecx, dword [ebp - 0x10]
mov byte [edx + eax], cl
inc edx
sub dword [ebp - 4], 1
jne 0x6dfd60
mov dword [ebp - 4], edx
test ebx, ebx
je 0x6dfda6
mov edi, dword [ebp - 0xc]
nop dword [eax]
mov ecx, dword [esi + 0x5c]
movzx eax, byte [edi + 0x99e788]
and byte [ecx + edx], al
mov ecx, edi
add edx, dword [esi + 0x5c]
inc edi
movzx eax, byte [ebp + 0xb]
shl al, cl
or byte [edx], al
mov edx, dword [ebp - 4]
sub ebx, 1
jne 0x6dfd80
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add dword [esi + 0x478], eax
mov ebx, dword [esi + 0x478]
cmp ebx, 3
jb 0x6dfdda
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x470]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp ebx, 0x106
jae 0x6dfdee
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x6dfb52
mov edx, dword [esi + 0x1ac4]
mov edi, dword [esi + 0x3c]
cmp edx, edi
jae 0x6dfe69
mov ecx, dword [esi + 0x470]
add ecx, ebx
mov dword [ebp + 8], ecx
cmp edx, ecx
jae 0x6dfe39
sub edi, ecx
mov eax, 0x102
cmp edi, eax
cmova edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.007074c0
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, edi
mov dword [esi + 0x1ac4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 0x102]
cmp edx, eax
jae 0x6dfe69
sub ecx, edx
sub edi, edx
lea eax, [ecx + 0x102]
cmp eax, edi
cmovbe edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, edx
push 0
push eax
call fcn.007074c0
add esp, 0xc
add dword [esi + 0x1ac4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret