Function at 0x6b6f3d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd8
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x1c]
add eax, 4
mov dword [ebp - 0xb0], eax
cmp dword [ebp + 0x20], 0
jne 0x6b6f3da1
mov dword [ebp - 0x10], 6
jmp 0x6b6f40aa
cmp dword [ebp + 0x28], 0
jne 0x6b6f3db7
mov dword [ebp - 0x10], 7
jmp 0x6b6f40aa
cmp dword [ebp + 0x28], 0xffffffff
jbe 0x6b6f3dcd
mov dword [ebp - 0x10], 8
jmp 0x6b6f40aa
mov eax, dword [ebp + 0x28]
sub eax, 1
xor edx, edx
div dword [ebp + 0xc]
add eax, 1
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x98]
sub ecx, 1
imul ecx, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x6b6f3e26
mov dword [ebp - 0x10], 1
jmp 0x6b6f40aa
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x98]
ja 0x6b6f4095
xor eax, eax
lea ecx, [ebp - 0x90]
mov edx, dword [ebp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [ebp - 0xc4], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp + 0x20]
ja 0x6b6f400f
cmp dword [ebp - 0x94], 1
jne 0x6b6f3f54
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0xa0]
and ecx, 0xff000000
shr ecx, 0x18
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp + 0x1c]
mov byte [edx + esi], cl
mov edx, dword [ebp - 0xa0]
and edx, 0xff0000
shr edx, 0x10
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp + 0x1c]
mov byte [esi + edi + 1], dl
mov esi, dword [ebp - 0xa0]
and esi, 0xff00
mov ebx, esi
shr ebx, 8
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp + 0x1c]
mov byte [esi + edi + 2], bl
mov esi, dword [ebp - 0xa0]
and esi, 0xff
mov ecx, esi
shr ecx, 0
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp + 0x1c]
mov byte [esi + edi + 3], cl
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call esi
mov dword [ebp - 0xa8], eax
jmp 0x6b6f3f7e
lea eax, [ebp - 0x50]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
call ecx
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x6b6f3fa7
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call fcn.6b721a48
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x10], eax
jmp 0x6b6f40aa
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp + 0xc]
jae 0x6b6f3ff6
mov eax, dword [ebp - 0xa4]
movsx eax, byte [ebp + eax - 0x50]
mov ecx, dword [ebp - 0xa4]
movsx edx, byte [ebp + ecx - 0x90]
xor edx, eax
mov byte [ebp + ecx - 0x90], dl
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
jmp 0x6b6f3fb1
jmp 0x6b6f3ffb
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
jmp 0x6b6f3e8d
lea eax, [ebp - 0x90]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0xa0]
sub edx, 1
imul edx, dword [ebp + 0xc]
add ecx, edx
mov edx, dword [ebp - 0xa0]
cmp edx, dword [ebp - 0x98]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xcc], ecx
jne 0x6b6f4056
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xd0], eax
jmp 0x6b6f405f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
mov dword [esp], ecx
mov edx, dword [ebp - 0xc8]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
jmp 0x6b6f3e4c
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call fcn.6b721a48
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0xd8
pop esi
pop edi
pop ebx
pop ebp
ret