Function at 0x6c6540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x9727c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx]
movzx ecx, byte [ebx + 0x1ca]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
test dword [esi + 0x18], 0x40000
mov dword [ebp - 0x30], ecx
je 0x6c6a39
mov ecx, dword [eax + 0x40]
mov edi, 0xfff0bdc0
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x6c65af
mov edx, dword [esi + 0x14]
xor edi, edi
mov dword [ebp - 0x20], edi
test edx, edx
jle 0x6c65af
mov eax, dword [esi + 0x10]
add eax, 0xc
lea ebx, [ebx]
cmp dword [eax], ecx
je 0x6c65ac
inc edi
add eax, 0x10
cmp edi, edx
jl 0x6c65a0
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edi, dword [ebp - 0x1c]
add ecx, ecx
mov edi, dword [edi + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x6c684a
lea ebx, [ebx]
cmp byte [ebx + 0x1ca], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
push eax
je 0x6c65fe
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.006bbcc0
add esp, 4
jmp 0x6c660d
push dword [edi + 8]
xor edx, edx
mov ecx, ebx
call fcn.006bbe00
add esp, 8
mov esi, eax
test esi, esi
je 0x6c6724
lea eax, [ebp - 0xc]
mov edx, esi
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push edi
call fcn.006c5220
add esp, 0xc
test eax, eax
jne 0x6c6724
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x6c6642
mov ecx, eax
mov dword [ebp - 0x24], eax
jmp 0x6c664e
mov eax, dword [edi + 0x24]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x6c66b4
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax + 0x24]
cmp dword [ecx + ebx*4], eax
jne 0x6c6668
mov dword [ecx + ebx*4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10c], 0
je 0x6c66ae
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x6c6683
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
jmp 0x6c6687
movsx eax, word [esi + 0x24]
push dword [ebp - 0x20]
mov edx, dword [esi]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 4]
push dword [eax + ecx*8]
mov ecx, dword [ebp - 0x28]
call fcn.006bb520
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x6c6655
push dword [esi]
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
mov edx, dword [ebp - 0x20]
push 0
push dword [esi + 0x20]
call fcn.006bb770
inc dword [ebx + 0x48]
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x6c66f0
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x14]
push esi
call fcn.006c5490
add esp, 0x1c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6c6712
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, ebx
push 1
push eax
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x14]
push esi
call fcn.006c5490
add esp, 0x1c
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [ebp - 0xc]
call fcn.00687650
jmp 0x6c683c
cmp dword [ebp - 0x30], 0
je 0x6c6a39
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
jne 0x6c6a39
test esi, esi
jne 0x6c683a
mov esi, dword [ebx + 8]
test esi, esi
jne 0x6c6766
mov ecx, dword [ebx]
call fcn.006a2c50
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
je 0x6c6766
mov edx, 0x94
mov ecx, esi
call fcn.006a2e30
mov eax, dword [esi + 0x1c]
xor ebx, ebx
mov ecx, dword [edi + 0x14]
inc eax
add eax, ecx
mov dword [ebp - 0x24], eax
test ecx, ecx
jle 0x6c67e5
lea eax, [edi + 0x24]
mov dword [ebp - 0xc], eax
mov edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
inc ecx
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x20], eax
jg 0x6c67a4
mov ecx, esi
call fcn.006a2d50
test eax, eax
jne 0x6c67d6
mov eax, dword [ebp - 0x18]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x24]
mov word [eax + ecx*4], 0x49
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 8
mov dword [ebp - 0xc], eax
cmp ebx, dword [edi + 0x14]
jl 0x6c6780
movzx eax, byte [edi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x20], ebx
jg 0x6c67ff
mov ecx, esi
call fcn.006a2d50
test eax, eax
jne 0x6c6832
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x1c]
mov edx, dword [ebp - 0xc]
mov word [eax + ecx*4], 0x75
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
jmp 0x6c683c
mov esi, eax
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
test edi, edi
jne 0x6c65d0
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi]
mov esi, ecx
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x6c686e
cmp byte [ecx], 0
je 0x6c6866
lea ecx, [ecx]
inc esi
cmp byte [esi], 0
jne 0x6c6860
sub esi, ecx
and esi, 0x3fffffff
mov eax, dword [edi + 0x40]
add eax, 0x38
mov dword [ebp - 0x18], eax
cmp dword [eax + 0xc], 0
je 0x6c68c7
mov eax, ecx
xor edi, edi
mov dword [ebp - 0xc], eax
test esi, esi
jle 0x6c68b7
mov ebx, esi
lea ebx, [ebx]
movzx eax, byte [eax]
lea ecx, [edi*8]
dec ebx
movzx edx, byte [eax + 0x8c1b50]
mov eax, dword [ebp - 0xc]
xor edx, ecx
inc eax
xor edi, edx
mov dword [ebp - 0xc], eax
test ebx, ebx
jg 0x6c6890
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov eax, edi
xor edx, edx
mov edi, dword [ebp - 0x18]
div dword [edi]
mov eax, edi
mov edi, dword [ebp - 0x1c]
jmp 0x6c68c9
xor edx, edx
push edx
mov edx, ecx
mov ecx, eax
push esi
call fcn.0068ac10
add esp, 8
test eax, eax
je 0x6c6a39
mov esi, dword [eax + 8]
test esi, esi
je 0x6c6a39
lea ebx, [ebx]
cmp byte [esi + 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jne 0x6c6917
cmp dword [ebx + 0x1b0], 0
jne 0x6c6917
cmp byte [ebx + 0x17], 0
je 0x6c6a2b
lea eax, [ebp - 0x14]
mov edx, edi
push eax
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
push esi
call fcn.006c5220
add esp, 0xc
test eax, eax
je 0x6c694c
cmp dword [ebp - 0x30], 0
je 0x6c6a39
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
jne 0x6c6a39
jmp 0x6c6a2b
mov ecx, dword [ebp - 0x10]
mov edx, 0x50
call fcn.006878a0
mov edi, eax
test edi, edi
je 0x6c6a20
push 0x50
push 0
push edi
call fcn.007389c0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov eax, 1
mov edx, edi
mov word [edi + 2], ax
movsx eax, word [edi]
push eax
push 1
call fcn.006bfbb0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
je 0x6c699b
mov ecx, eax
jmp 0x6c6a19
movsx eax, word [edi]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*8]
mov dword [edi + eax*8 - 0x38], 0
mov dword [edi + eax*8 - 0x3c], 0
mov eax, dword [esi]
mov dword [edi + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
inc word [eax + 0x28]
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x34], eax
inc dword [ebx + 0x48]
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x6c69f1
push 0xffffffffffffffff
push ecx
push dword [ebp - 0x14]
mov edx, edi
mov ecx, ebx
push esi
push eax
push dword [ebp - 0x1c]
call fcn.006c5d10
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x6c6a0f
push 1
push ecx
push dword [ebp - 0x14]
mov edx, edi
mov ecx, ebx
push esi
push eax
push dword [ebp - 0x1c]
call fcn.006c5d10
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x10], 0
mov edx, edi
call fcn.006bfdf0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00687650
mov esi, dword [esi + 0xc]
mov edi, dword [ebp - 0x1c]
test esi, esi
jne 0x6c68f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0073167f
mov esp, ebp
pop ebp
ret