Function at 0x10c1670
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10c16ba
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x10c1690
sar ecx, 1
mov edx, ecx
or edx, 2
mov esi, ecx
and esi, 2
imul edx, esi
xor esi, 2
and ecx, 0xfffd
imul ecx, esi
add ecx, edx
jmp 0x10c16bc
xor ecx, ecx
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x10c16cc
add ecx, 2
mov edx, ecx
mov edi, dword [esp + 0x40]
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0x585b5a45
mov byte [esp + 4], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx]
mov esi, ecx
xor esi, 0xe43ac66f
add esi, eax
xor esi, edx
mov edx, esi
and edx, 1
xor esi, 1
lea edx, [esi + edx*2]
add dl, 0xd4
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 5
jne 0x10c16f0
mov ebx, dword [esp]
mov eax, dword [0x10ccdc4]
test eax, eax
je 0x10c176f
xor ecx, ecx
mov edx, dword [0x10ccdc8]
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x10c1740
inc ecx
cmp eax, ecx
jne 0x10c1730
jmp 0x10c176f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x10c176f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 0x18
push eax
push dword [0x10ccdcc]
call fcn.010bdb70
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xc1868769
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
movzx ecx, byte [esp + eax]
lea edx, [eax + 0x61]
and edx, ecx
add ecx, eax
add ecx, 0x61
add edx, edx
sub ecx, edx
add cl, 0x1b
mov byte [esp + eax], cl
mov ecx, eax
mov edx, eax
xor edx, 1
add edx, eax
and eax, 1
and ecx, 6
mov esi, edx
sub esi, ecx
and edx, eax
xor esi, eax
lea eax, [esi + edx*2]
cmp eax, 5
jb 0x10c1780
cmp ebx, dword [esp]
jne 0x10c192a
mov dword [esp + 8], edi
push dword [esp + 0x10]
call fcn.010bb2e0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], 0x979699e6
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
add bl, 0x26
xor bl, byte [esp + edx + 0xc]
add bl, 0x42
mov byte [esp + edx + 0xc], bl
inc edx
cmp edx, 4
jne 0x10c17f0
mov edx, dword [esp + 0xc]
mov dword [esp], 0x585b5a45
mov byte [esp + 4], 0
xor ebx, ebx
xor ebp, ebp
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ebp]
mov edi, ebp
xor edi, 0xe43ac66f
add edi, ebx
xor edi, esi
mov esi, edi
and esi, 1
xor edi, 1
lea ecx, [edi + esi*2]
add cl, 0xd4
mov byte [esp + ebp], cl
inc ebp
add ebx, 2
cmp ebp, 5
jne 0x10c1820
mov ebx, dword [esp]
mov ebp, dword [0x10ccdc4]
test ebp, ebp
je 0x10c18a3
xor edi, edi
mov esi, dword [0x10ccdc8]
nop
cmp dword [esi + edi*8], 0x877f203a
je 0x10c1870
inc edi
cmp ebp, edi
jne 0x10c1860
jmp 0x10c18a3
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
je 0x10c18a3
lea ecx, [esp + 0x10]
lea esi, [esp + 0x14]
push ecx
push dword [esp + 0x20]
push eax
push edx
push esi
push dword [esp + 0x48]
push 0x18
push ebp
push dword [0x10ccdcc]
mov esi, eax
call fcn.010bdb70
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
js 0x10c1921
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x10c18bc
mov ecx, dword [eax + 4]
mov dword [edi], ecx
test esi, esi
je 0x10c1921
test edx, edx
je 0x10c191c
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x10c18cf
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, dword [esp + 0x40]
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add dword [esp + 8], ecx
lea ebp, [eax + ecx]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov esi, ebp
mov edi, dword [esp + 8]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov edi, dword [esp + 8]
test dl, 1
mov esi, dword [esp + 0x44]
je 0x10c191c
and edx, 2
movzx ecx, byte [ebp + edx]
mov byte [edi + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.010bb380
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret