Function at 0x64de60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x174]
mov dword [ebp - 0x1c], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x64e09e
jb 0x64de95
cmp eax, 0xffffffe0
ja 0x64e09e
cmp dword [edi + 0x16c], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
je 0x64debe
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0064ec00
add esp, 8
mov dword [edi + 0x16c], 0
movzx ecx, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
push esi
mov esi, dword [edi + 0x168]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x64df49
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebx]
test ebx, ebx
je 0x64df2c
mov cl, byte [eax]
dec ebx
inc eax
mov dword [ebp + 0x14], ebx
mov dword [ebp - 4], eax
mov al, byte [esi + edi + 0x10]
xor al, cl
mov byte [edx], al
inc edx
xor byte [esi + edi + 0x40], cl
inc esi
mov eax, dword [ebp - 4]
and esi, 0xf
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], esi
jne 0x64df00
jmp 0x64df34
test esi, esi
jne 0x64e08c
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0064ec00
mov eax, dword [ebp - 4]
add esp, 8
jmp 0x64df55
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, ebx
and ecx, 0xfffffff0
mov dword [ebp - 0x18], ecx
je 0x64e023
shr ecx, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x64dfdd
mov ebx, dword [ebp - 0x20]
lea ecx, [edi + 0x60]
mov dword [ebp - 0x24], ecx
lea edx, [edi + 0x41]
mov esi, dword [ebp - 0x24]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ecx, edx
dec ebx
lea edx, [eax + 1]
mov edi, 4
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 3]
xor byte [ecx - 3], al
movzx eax, byte [edx - 2]
xor byte [ecx - 2], al
dec edi
jne 0x64df93
push esi
push dword [ebp - 0x28]
call fcn.0064ec00
mov eax, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x64df88
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
sub eax, dword [ebp - 0x18]
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push eax
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
add ecx, dword [ebp - 0x14]
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], eax
add dword [ebp - 4], eax
sub ebx, eax
mov byte [edi + 0xf], cl
test ebx, ebx
je 0x64e08c
push dword [ebp - 0x1c]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov ecx, dword [ebp - 0xc]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [ebp - 8]
sub dword [ebp - 4], eax
lea edx, [esi + eax]
lea eax, [edi + 0x40]
mov edi, dword [ebp - 4]
mov dword [ebp + 0x14], eax
jmp 0x64e070
mov cl, byte [edx + edi]
lea edx, [edx + 1]
xor byte [eax + esi], cl
mov al, byte [eax + esi - 0x30]
inc esi
xor al, cl
mov byte [edx - 1], al
mov eax, dword [ebp + 0x14]
dec ebx
jne 0x64e070
mov edi, dword [ebp + 8]
mov dword [edi + 0x168], esi
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret