Function at 0x1c006770
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebp
mov ebp, dword [ebx + 0x38]
push esi
push edi
mov esi, eax
lea eax, [edx + ebp]
mov edi, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
cmp eax, 0x10
ja 0x1c0067b4
push edx
lea eax, [ebx + ebp + 0x28]
push edi
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add dword [ebx + 0x38], ecx
mov edx, dword [esp + 0x24]
add esp, 0xc
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
pop ebp
pop ecx
ret
cmp edi, esi
jne 0x1c0067c2
pop edi
pop esi
mov eax, 0x1001
pop ebp
pop ecx
ret
mov dword [ecx], eax
mov eax, 0x10
sub eax, ebp
push eax
mov dword [esp + 0x10], eax
lea eax, [ebx + ebp + 0x28]
push edi
push eax
call fcn.1c02b5c0
mov edx, dword [ebx + 0x28]
mov ecx, dword [esp + 0x20]
add edi, dword [esp + 0x18]
mov dword [esi], edx
mov eax, dword [ebx + 0x2c]
mov dword [esi + 4], eax
lea ebp, [ecx + ebp - 0x10]
mov ecx, dword [ebx + 0x30]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0x34]
push esi
lea eax, [ebx + 0x3c]
mov dword [esi + 0xc], edx
call fcn.1c004d20
mov eax, dword [ebx + 0x18]
xor dword [esi], eax
mov ecx, dword [ebx + 0x1c]
xor dword [esi + 4], ecx
mov edx, dword [ebx + 0x20]
xor dword [esi + 8], edx
mov eax, dword [ebx + 0x24]
xor dword [esi + 0xc], eax
add esp, 0x10
add esi, 0x10
cmp ebp, 0x10
ja 0x1c006846
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
jmp 0x1c0068f9
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push esi
lea eax, [ebx + 0x3c]
mov dword [esi + 0xc], edx
call fcn.1c004d20
mov eax, dword [ebx + 0x28]
xor dword [esi], eax
mov ecx, dword [ebx + 0x2c]
xor dword [esi + 4], ecx
mov edx, dword [ebx + 0x30]
xor dword [esi + 8], edx
mov eax, dword [ebx + 0x34]
xor dword [esi + 0xc], eax
sub ebp, 0x10
add esp, 4
add edi, 0x10
add esi, 0x10
cmp ebp, 0x10
jbe 0x1c0068e1
lea eax, [ebp - 0x11]
shr eax, 4
inc eax
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
push esi
lea eax, [ebx + 0x3c]
mov dword [esi + 0xc], ecx
call fcn.1c004d20
mov edx, dword [edi - 0x10]
xor dword [esi], edx
mov eax, dword [edi - 0xc]
xor dword [esi + 4], eax
mov ecx, dword [edi - 8]
xor dword [esi + 8], ecx
mov edx, dword [edi - 4]
xor dword [esi + 0xc], edx
add esp, 4
add edi, 0x10
add esi, 0x10
sub ebp, 0x10
sub dword [esp + 0x14], 1
jne 0x1c006898
mov eax, dword [edi - 0x10]
mov dword [ebx + 0x18], eax
mov ecx, dword [edi - 0xc]
mov dword [ebx + 0x1c], ecx
mov edx, dword [edi - 8]
mov dword [ebx + 0x20], edx
mov eax, dword [edi - 4]
mov dword [ebx + 0x24], eax
push ebp
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.1c02b5c0
mov ecx, dword [ebx + 0x38]
mov eax, dword [esp + 0x24]
add esp, 0xc
and ecx, 0xf0000000
add ecx, ebp
pop edi
mov dword [ebx + 0x38], ecx
sub dword [eax], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret