Function at 0x64e2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
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 - 0x18], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x64e4f3
jb 0x64e2f5
cmp eax, 0xffffffe0
ja 0x64e4f3
cmp dword [edi + 0x16c], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
je 0x64e31e
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 - 0x14], esi
test esi, esi
je 0x64e3a9
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 0x64e389
mov cl, byte [esi + edi + 0x10]
dec ebx
xor cl, byte [eax]
lea eax, [esi + edi]
mov byte [edx], cl
inc esi
xor byte [eax + 0x40], cl
inc edx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 8], edx
and esi, 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esi
jne 0x64e360
jmp 0x64e391
test esi, esi
jne 0x64e4e1
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0064ec00
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 4]
jmp 0x64e3b5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov edx, ebx
and edx, 0xfffffff0
mov dword [ebp + 0x14], edx
je 0x64e47a
push edi
push dword [ebp - 0x18]
shr edx, 4
push edx
push eax
push ecx
mov dword [ebp - 0x10], edx
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov edx, dword [ebp - 0x10]
add ecx, edx
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 + 0x14]
sub ebx, eax
add dword [ebp - 4], eax
mov byte [edi + 0xf], cl
mov dword [ebp + 0x14], ebx
test edx, edx
je 0x64e47a
lea eax, [edi + 0x60]
mov esi, edx
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 0x41]
mov ebx, dword [ebp - 0x1c]
lea eax, [edi + 0x40]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
lea edx, [edi + 1]
dec esi
mov eax, ecx
mov edi, 4
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
dec edi
jne 0x64e430
push ebx
push dword [ebp - 0x20]
call fcn.0064ec00
mov edi, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 0x24]
add edi, 0x10
mov dword [ebp - 8], edi
test esi, esi
jne 0x64e425
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x64e4e1
push dword [ebp - 0x18]
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
movzx ecx, byte [eax + esi - 0x30]
lea edx, [edx + 1]
movzx eax, byte [edi + edx - 1]
xor ecx, eax
mov eax, dword [ebp + 0x14]
mov byte [edx - 1], cl
xor byte [eax + esi], cl
inc esi
dec ebx
jne 0x64e4c2
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