Function at 0x6c1330
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x29c
mov ebx, dword [0x6d7784]
mov ebp, dword [0x6d7780]
mov eax, ebp
or eax, ebx
jne 0x6c1444
mov dword [esp + 0x94], 0x49c64bde
mov dword [esp + 0x98], 0x45d247d4
mov dword [esp + 0x9c], 0x419043d0
mov dword [esp + 0xa0], 0x7dea7fdc
mov dword [esp + 0xa4], 0x797a7be8
mov word [esp + 0xa8], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x54]
cmp eax, 0x15
ja 0x6c141d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
movzx edx, byte [esp + ecx + 0x94]
mov ecx, eax
xor ecx, 0xacaff693
add eax, eax
and eax, 0x595fed26
mov esi, eax
and esi, ecx
xor eax, ecx
lea ecx, [eax + esi*2]
lea eax, [ecx + edx]
and ecx, edx
mov edx, eax
xor edx, ecx
mov esi, ecx
not esi
and eax, esi
add eax, eax
sub eax, edx
mov edx, eax
not edx
and edx, ecx
and eax, esi
sub eax, edx
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x19c]
add al, 0x21
mov ecx, dword [esp + 0x54]
mov byte [esp + ecx + 0x94], al
inc dword [esp + 0x54]
mov eax, dword [esp + 0x54]
cmp eax, 0x16
jb 0x6c13b0
lea eax, [esp + 0x94]
push eax
call fcn.006c0fe0
add esp, 4
mov ebp, eax
mov dword [0x6d7784], edx
mov dword [0x6d7780], eax
or eax, edx
je 0x6c1515
mov ebx, edx
lea eax, [esp + 0x54]
push 0x40
push eax
push ebx
push ebp
call fcn.006c0dc0
add esp, 0x10
test eax, eax
js 0x6c1515
mov eax, dword [esp + 0x90]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
lea edx, [esp + 0x94]
push 0x108
push edx
push ecx
push eax
call fcn.006c0dc0
add esp, 0x10
xor edi, edi
test eax, eax
js 0x6c1517
cmp dword [esp + 0x120], 0
je 0x6c1517
mov eax, dword [esp + 0x11c]
mov esi, 0
test eax, eax
je 0x6c1519
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x2c]
push 0x28
push edx
push ecx
push eax
call fcn.006c0dc0
add esp, 0x10
test eax, eax
js 0x6c1515
mov ecx, dword [esp + 0x40]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x6c14de
mov eax, esi
push eax
call fcn.0068c580
add esp, 4
mov edx, dword [esp + 0x48]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push ecx
push edx
call fcn.006c0dc0
add esp, 0x10
test eax, eax
js 0x6c1528
mov eax, dword [esp + 0x40]
test eax, eax
jns 0x6c1531
mov eax, 0xffffffff
jmp 0x6c1533
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x29c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x6c1737
add eax, eax
push eax
call fcn.0068c580
add esp, 4
mov esi, dword [esp + 0x44]
add esi, esi
mov ecx, dword [esp + 0x50]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push edx
push ecx
call fcn.006c0dc0
add esp, 0x10
test eax, eax
js 0x6c1727
mov ecx, dword [esp + 0x44]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x6c157f
mov eax, esi
push eax
call fcn.0068c580
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.006c0dc0
add esp, 0x10
test eax, eax
mov dword [esp + 4], edi
js 0x6c1715
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
cmp esi, eax
jb 0x6c15bb
mov esi, eax
test esi, esi
je 0x6c1715
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0x6c15fe
mov eax, 0xb14a5e2
cmp eax, dword [esp + 0x2b0]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
je 0x6c1748
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
je 0x6c1715
mov dword [esp + 0x10], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x1a0]
push edx
push ecx
push eax
call fcn.006c0dc0
add esp, 0x10
cmp eax, 0xbfffffff
ja 0x6c15f1
mov ecx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
cmp byte [esp + ecx + 0x19d], 0
lea ecx, [ecx + 1]
lea eax, [eax + 1]
jne 0x6c1640
mov dword [esp + 0x14], 0x62626013
mov word [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x6c169e
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x14]
add eax, 0x24fa3418
xor eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add al, 0x88
mov edx, dword [esp]
mov byte [esp + edx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x6c1670
test ecx, ecx
je 0x6c15d3
mov edx, dword [esp + 0x14]
mov ebp, 0xb14a5e2
lea esi, [esp + 0x19c]
cmp ecx, 4
jb 0x6c16ef
mov eax, ebx
and eax, 0xfffffffc
movsx edi, byte [esi]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 1]
xor ebp, edi
imul ebp, edx
movsx edi, byte [esi + 2]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 3]
add esi, 4
xor ebp, edi
imul ebp, edx
add eax, 0xfffffffc
jne 0x6c16c0
mov edi, dword [esp + 4]
mov eax, ebp
test cl, 3
je 0x6c15d8
and ebx, 3
xor ecx, ecx
nop
movsx eax, byte [esi + ecx]
xor eax, ebp
imul eax, edx
inc ecx
mov ebp, eax
cmp ebx, ecx
jne 0x6c1700
jmp 0x6c15d8
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.0068c590
add esp, 4
jmp 0x6c172b
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0068c590
add esp, 4
push dword [esp + 0xc]
call fcn.0068c590
add esp, 4
jmp 0x6c1519
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x6c1719