Function at 0x64dc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x64de53
jb 0x64dc7e
cmp eax, 0xffffffe0
ja 0x64de53
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
je 0x64dca7
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0064ec00
add esp, 8
mov dword [esi + 0x16c], 0
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
push edi
mov edi, dword [esi + 0x168]
or ecx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x64dd26
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], eax
test ebx, ebx
je 0x64dd0c
mov cl, byte [eax]
dec ebx
inc eax
mov dword [ebp + 0x14], eax
mov al, byte [edi + esi + 0x10]
xor al, cl
mov byte [edx], al
inc edx
xor byte [edi + esi + 0x40], cl
inc edi
mov eax, dword [ebp + 0x14]
and edi, 0xf
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
jne 0x64dce3
jmp 0x64dd14
test edi, edi
jne 0x64de41
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0064ec00
add esp, 8
jmp 0x64dd32
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
cmp ebx, 0x10
jb 0x64dddf
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0x10]
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
lea esp, [esp]
push dword [ebp - 0x14]
push ecx
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [edi]
xor eax, ecx
mov dword [edx], eax
xor dword [esi + 0x40], ecx
mov ecx, dword [edi + 4]
mov eax, dword [esi + 0x14]
xor eax, ecx
mov dword [edx + 4], eax
xor dword [esi + 0x44], ecx
mov ecx, dword [edi + 8]
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [edx + 8], eax
xor dword [esi + 0x48], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [edx + 0xc], eax
lea eax, [esi + 0x60]
xor dword [esi + 0x4c], ecx
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0064ec00
add dword [ebp - 4], 0x10
lea ecx, [esi + 0x10]
add esp, 0x14
add edi, 0x10
sub ebx, 0x10
dec dword [ebp - 0xc]
jne 0x64dd50
mov dword [ebp + 0x14], edi
mov edi, dword [ebp - 0x10]
test ebx, ebx
je 0x64de41
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [ebp - 4]
sub dword [ebp + 0x14], eax
lea edx, [edi + eax]
lea eax, [esi + 0x40]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov cl, byte [esi + edx]
lea edx, [edx + 1]
xor byte [eax + edi], cl
mov eax, dword [ebp - 0x18]
mov al, byte [eax + edi - 0x30]
inc edi
xor al, cl
mov byte [edx - 1], al
mov eax, dword [ebp - 0x18]
dec ebx
jne 0x64de22
mov esi, dword [ebp + 8]
mov dword [esi + 0x168], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret