Function at 0x6fcc4300
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov eax, dword [esp + 0xf0]
mov edx, dword [eax + 0x44]
mov eax, dword [esp + 0xf8]
imul eax, dword [esp + 0xfc]
add eax, dword [esp + 0xf4]
imul eax, eax, 0x1e8
add eax, edx
mov edi, dword [eax + 0xf0]
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 0xec]
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], eax
sub eax, 3
cmp eax, 1
jbe 0x6fcc4360
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
mov ebx, dword [esp + 0x100]
lea edi, [edi + 0xd]
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x70]
shr dword [esp + 0x48], 1
movzx edi, word [esp + 0x48]
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x4e], di
lea edi, [eax + eax]
sub eax, 6
mov dword [esp + 0x50], edi
mov word [esp + 0x5c], di
sub edi, 0x10
mov dword [esp + 0x58], edi
mov word [esp + 0x5e], di
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
lea esi, [edi + 0x20]
mov eax, esi
mov esi, ecx
mov ecx, eax
nop
cmp dword [esp + 0x38], 4
mov edi, 8
mov eax, 8
ja 0x6fcc45f0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 4], eax
call fcn.6fcc3e60
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0x30]
test byte [eax + 0xc], 0x80
je 0x6fcc4538
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ebp, dword [eax + edx*4 + 0xd4]
mov eax, edi
mov edx, 0x7ff
imul ax, word [ebx]
cmp ax, 0x7ff
cmovg eax, edx
mov edx, 0xfffff800
cmp ax, 0xf800
cmovge edx, eax
xor eax, eax
mov word [ecx], dx
movzx edx, word [ebx + eax + 2]
mov word [ecx + eax + 2], dx
movzx edx, word [ebx + eax*8 + 0x10]
mov word [ecx + eax + 0x10], dx
add eax, 2
cmp eax, 0xe
jne 0x6fcc4470
movzx eax, word [esi]
sub word [ebx], ax
mov dword [esp + 4], 0x70751160
mov dword [esp], ebx
mov dword [esp + 0x30], ecx
call fcn.6fca6710
mov ecx, dword [esp + 0x30]
mov edi, eax
xor eax, eax
cmp ebp, 1
je 0x6fcc4730
movzx edx, word [ebx + eax*8 + 0x10]
mov word [esp + eax + 0x62], dx
sub dx, word [esi + eax + 2]
mov word [ebx + eax*8 + 0x10], dx
mov word [esi + eax + 2], dx
add eax, 2
cmp eax, 0xe
jne 0x6fcc44b7
mov eax, ebp
shl eax, 7
add eax, 0x70751160
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x30], ecx
call fcn.6fca6710
mov ecx, dword [esp + 0x30]
xor edx, edx
movzx ebp, word [esp + edx + 0x62]
mov word [ebx + edx*8 + 0x10], bp
add edx, 2
cmp edx, 0xe
jne 0x6fcc44f8
sub edi, eax
add dword [esp + 0x40], edi
add dword [esp + 0x34], 1
sub ebx, 0xffffff80
add esi, 0x10
add ecx, 0x1e
cmp dword [esp + 0x34], 6
je 0x6fcc4638
mov eax, dword [esp + 0xf0]
mov edx, dword [eax + 0x44]
jmp 0x6fcc43c0
imul di, word [ebx]
mov eax, 0x7ff
cmp di, 0x7ff
cmovg edi, eax
mov eax, 0xfffff800
cmp di, 0xf800
cmovge eax, edi
mov word [ecx], ax
xor eax, eax
nop
lea esi, [esi]
movzx edx, word [ebx + eax + 2]
mov word [ecx + eax + 2], dx
movzx edx, word [ebx + eax*8 + 0x10]
mov word [ecx + eax + 0x10], dx
add eax, 2
cmp eax, 0xe
jne 0x6fcc4560
movzx eax, word [esi]
sub word [ebx], ax
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
cmp dword [eax + edi*4 + 0xd4], 1
je 0x6fcc46d5
xor eax, eax
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], ecx
movzx ecx, word [ebx + eax*8 + 0x10]
movsx edx, cx
mov ebp, edx
sub cx, word [esi + eax + 2]
sar ebp, 0x1f
xor edx, ebp
sub edx, ebp
add dword [esp + 0x30], edx
movsx edx, cx
mov ebp, edx
sar ebp, 0x1f
xor edx, ebp
sub edx, ebp
mov word [esi + eax + 2], cx
add eax, 2
add edi, edx
cmp eax, 0xe
jne 0x6fcc45a8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
sub eax, edi
add dword [esp + 0x40], eax
jmp 0x6fcc4510
cmp dword [esp + 0x34], 3
setle al
cmp dword [esp + 0x38], 0x18
mov ebp, eax
setbe al
mov edi, eax
mov eax, ebp
test al, al
je 0x6fcc4786
cmp dword [esp + 0x38], 8
jbe 0x6fcc47b0
mov eax, edi
test al, al
jne 0x6fcc47a0
mov eax, ebp
test al, al
jne 0x6fcc4805
mov edi, dword [esp + 0x54]
mov eax, edi
jmp 0x6fcc43d5
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x6fcc47c0
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x70]
mov ebx, dword [esp + 0x100]
lea edi, [esp + 0xd0]
mov edx, eax
lea esi, [esi]
xor eax, eax
cmp dword [esi + 0xd4], 1
je 0x6fcc46b4
nop
lea esi, [esi]
movzx ecx, word [edx + eax + 2]
mov word [ebx + eax*8 + 0x10], cx
add eax, 2
cmp eax, 0xe
jne 0x6fcc4670
add edx, 0x10
add esi, 4
sub ebx, 0xffffff80
cmp edx, edi
jne 0x6fcc4660
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call dword [0x70fcbfbc]
mov edi, dword [esp + 0x3c]
mov dword [edi + 0x178], eax
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, 1
movzx ecx, word [edx + eax*2]
mov word [ebx + eax*2], cx
add eax, 1
cmp eax, 8
jne 0x6fcc46b6
add edx, 0x10
add esi, 4
sub ebx, 0xffffff80
cmp edx, edi
jne 0x6fcc4660
jmp 0x6fcc468f
xor edi, edi
mov eax, 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], ecx
movzx ecx, word [ebx + eax*2]
movsx edx, cx
mov ebp, edx
sub cx, word [esi + eax*2]
sar ebp, 0x1f
xor edx, ebp
sub edx, ebp
add dword [esp + 0x30], edx
movsx edx, cx
mov ebp, edx
sar ebp, 0x1f
xor edx, ebp
sub edx, ebp
mov word [esi + eax*2], cx
add eax, 1
add edi, edx
cmp eax, 8
jne 0x6fcc46e8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
sub eax, edi
add dword [esp + 0x40], eax
jmp 0x6fcc4510
mov al, 1
movzx edx, word [ebx + eax*2]
mov word [esp + eax*2 + 0x60], dx
sub dx, word [esi + eax*2]
mov word [ebx + eax*2], dx
mov word [esi + eax*2], dx
add eax, 1
cmp eax, 8
jne 0x6fcc4732
mov dword [esp + 4], 0x707511e0
mov dword [esp], ebx
mov dword [esp + 0x30], ecx
call fcn.6fca6710
mov ecx, dword [esp + 0x30]
mov edx, 1
lea esi, [esi]
movzx ebp, word [esp + edx*2 + 0x60]
mov word [ebx + edx*2], bp
add edx, 1
cmp edx, 8
jne 0x6fcc4770
jmp 0x6fcc450a
mov eax, edi
test al, al
je 0x6fcc460e
movzx edi, word [esp + 0x4e]
mov eax, dword [esp + 0x48]
jmp 0x6fcc43d5
mov eax, dword [esp + 0x38]
add eax, 8
mov edi, eax
jmp 0x6fcc43d5
movzx edi, word [esp + 0x5c]
mov eax, dword [esp + 0x50]
jmp 0x6fcc43d5
mov eax, dword [esp + 0x3c]
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
jmp 0x6fcc468f
movzx edi, word [esp + 0x5e]
mov eax, dword [esp + 0x58]
jmp 0x6fcc43d5