Function at 0x6bf4a0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x14], 0
push esi
mov esi, ecx
jne 0x6bf4d2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x924df0
call fcn.0074c741
push 0x96b598
lea ecx, [esp + 0xc]
push ecx
call fcn.0074cb18
mov ecx, dword [esp + 0x20]
cmp ecx, 0x10
je 0x6bf50a
cmp ecx, 0x18
je 0x6bf50a
cmp ecx, 0x20
je 0x6bf50a
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x921288
call fcn.0074c741
push 0x96b598
lea eax, [esp + 0xc]
push eax
call fcn.0074cb18
mov eax, dword [esp + 0x24]
cmp eax, 0x10
je 0x6bf542
cmp eax, 0x18
je 0x6bf542
cmp eax, 0x20
je 0x6bf542
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x924dd8
call fcn.0074c741
push 0x96b598
lea edx, [esp + 0xc]
push edx
call fcn.0074cb18
push ebx
push ebp
push edi
mov edi, dword [esp + 0x28]
push eax
mov dword [esi + 0x3cc], eax
lea eax, [esi + 0x3d4]
push edi
push eax
mov dword [esi + 0x3c8], ecx
call fcn.0074dfc0
mov ecx, dword [esi + 0x3cc]
push ecx
lea edx, [esi + 0x3f4]
push edi
push edx
call fcn.0074dfc0
mov eax, dword [esi + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x6bf5a8
cmp eax, 0x18
je 0x6bf596
mov dword [esi + 0x3d0], 0xe
jmp 0x6bf5ce
xor eax, eax
cmp dword [esi + 0x3cc], 0x20
sete al
lea eax, [eax + eax + 0xc]
jmp 0x6bf5c8
mov eax, dword [esi + 0x3cc]
cmp eax, 0x10
jne 0x6bf5ba
mov eax, 0xa
jmp 0x6bf5c8
xor ecx, ecx
cmp eax, 0x18
setne cl
lea ecx, [ecx + ecx + 0xc]
mov eax, ecx
mov dword [esi + 0x3d0], eax
mov eax, dword [esi + 0x3cc]
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
xor edx, edx
cmp dword [esi + 0x3d0], edx
mov dword [esp + 0x2c], ebp
jl 0x6bf60a
lea ebx, [esi + 8]
test ebp, ebp
jle 0x6bf5fc
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add edx, 1
add ebx, 0x20
cmp edx, dword [esi + 0x3d0]
jle 0x6bf5f0
xor edx, edx
cmp dword [esi + 0x3d0], edx
jl 0x6bf63a
lea ebx, [esi + 0x1e8]
lea ebx, [ebx]
test ebp, ebp
jle 0x6bf62c
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add edx, 1
add ebx, 0x20
cmp edx, dword [esi + 0x3d0]
jle 0x6bf620
mov eax, dword [esi + 0x3d0]
add eax, 1
imul eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c8]
cdq
and edx, 3
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x24]
sar edi, 2
test edi, edi
lea ecx, [esi + 0x414]
jle 0x6bf6a7
mov ebp, edi
jmp 0x6bf670
movzx edx, byte [eax]
shl edx, 0x18
mov dword [ecx], edx
movzx edx, byte [eax + 1]
add eax, 1
shl edx, 0x10
or dword [ecx], edx
add eax, 1
xor edx, edx
mov dh, byte [eax]
add eax, 1
add eax, 1
add ecx, 4
or dword [ecx - 4], edx
movzx edx, byte [eax - 1]
or dword [ecx - 4], edx
sub ebp, 1
jne 0x6bf670
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x24], ebx
jle 0x6bf702
lea ecx, [esi + 0x414]
mov dword [esp + 0x24], ecx
jmp 0x6bf6c0
cmp ebx, dword [esp + 0x30]
jge 0x6bf6fe
mov eax, ebx
cdq
idiv ebp
mov ecx, dword [ecx]
add ebx, 1
lea ebp, [edx + eax*8]
mov dword [esi + ebp*4 + 8], ecx
mov ecx, dword [esi + 0x3d0]
mov ebp, dword [esp + 0x2c]
sub ecx, eax
lea edx, [edx + ecx*8]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
add ecx, 4
cmp ebx, edi
mov dword [esi + edx*4 + 0x1e8], eax
mov dword [esp + 0x24], ecx
jl 0x6bf6c0
mov dword [esp + 0x24], ebx
cmp ebx, dword [esp + 0x30]
jge 0x6bf894
mov dword [esp + 0x28], 0x924d50
mov eax, dword [esi + edi*4 + 0x410]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x921b50]
mov ecx, dword [esp + 0x28]
movsx ecx, byte [ecx]
xor edx, ecx
add dword [esp + 0x28], 1
movzx ecx, ah
movzx ecx, byte [ecx + 0x921b50]
shl edx, 8
xor edx, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx + 0x921b50]
sar eax, 0x18
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x921b50]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x414], edx
cmp edi, 8
je 0x6bf7a2
cmp edi, 1
jle 0x6bf82d
lea eax, [esi + 0x418]
lea ecx, [edi - 1]
nop
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x6bf790
jmp 0x6bf82d
lea eax, [esi + 0x418]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x6bf7b0
mov eax, dword [esi + 0x420]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x921b50]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x921b50]
shl edx, 8
xor edx, ecx
movzx ecx, ah
movzx ecx, byte [ecx + 0x921b50]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x921b50]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x424], edx
lea eax, [esi + 0x428]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x6bf820
test edi, edi
mov dword [esp + 0x10], 0
jle 0x6bf88a
lea ecx, [esi + 0x414]
nop
cmp ebx, dword [esp + 0x30]
jge 0x6bf894
mov eax, ebx
cdq
idiv ebp
mov ebp, dword [ecx]
add ecx, 4
lea ebx, [edx + eax*8]
mov dword [esi + ebx*4 + 8], ebp
mov ebx, dword [esi + 0x3d0]
mov ebp, dword [esp + 0x2c]
sub ebx, eax
lea eax, [edx + ebx*8]
mov edx, dword [ecx - 4]
mov ebx, dword [esp + 0x24]
mov dword [esi + eax*4 + 0x1e8], edx
mov eax, dword [esp + 0x10]
add eax, 1
add ebx, 1
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
jl 0x6bf840
cmp ebx, dword [esp + 0x30]
jl 0x6bf714
mov eax, 1
cmp dword [esi + 0x3d0], eax
mov dword [esp + 0x24], eax
jle 0x6bf91b
lea ecx, [esi + 0x208]
mov dword [esp + 0x2c], ecx
nop
test ebp, ebp
jle 0x6bf8fd
mov edx, ebp
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x923d50]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x924150]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x924550]
and eax, 0xff
xor edi, dword [eax*4 + 0x924950]
add ecx, 4
sub edx, 1
mov dword [ecx - 4], edi
jne 0x6bf8b6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
add eax, 1
add ecx, 0x20
cmp eax, dword [esi + 0x3d0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
jl 0x6bf8b0
pop edi
pop ebp
pop ebx
mov byte [esi + 4], 1
pop esi
add esp, 0x10
ret 0x10